/* Casino Challenges – isolated from Elementor and other casino plugins. */
.cch-root {
    --cch-bg: #0b0614;
    --cch-card: #231f2c;
    --cch-green: #00bb1f;
    --cch-pink: #ff2b8a;
    display: block;
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    left: auto;
    transform: none;
    box-sizing: border-box;
    color: #fff;
    font-family: 'Funnel Display', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    container-type: inline-size;
}
.cch-root *, .cch-root *::before, .cch-root *::after { box-sizing: border-box; }
.cch-root [hidden] { display: none !important; }
.cch-root :is(p,ol,ul) { margin: 0; padding: 0; }
.cch-root a { text-decoration: none; }
.cch-root :is(button,a) { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.cch-root button { cursor: pointer; }
.cch-root img { display: block; max-width: 100%; }
.cch-shell {
    display: block;
    position: static;
    width: 100%;
    max-width: 1240px;
    min-width: 0;
    margin: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    transform: none;
}
.cch-intro, .cch-detail-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.cch-breadcrumb { display: block; width: 100%; min-width: 0; }
.cch-breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; list-style: none; }
.cch-breadcrumb li { list-style: none; display: inline-flex; align-items: center; min-width: 0; }
.cch-breadcrumb :is(a, span, button) {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    padding: 0;
}
.cch-breadcrumb a:hover, .cch-breadcrumb button:hover { color: #fff; }
.cch-breadcrumb button { border: 0; background: transparent; box-shadow: none; }
.cch-breadcrumb .cch-crumb:last-child span { color: #fff; }
.cch-breadcrumb .cch-separator { color: rgba(255,255,255,.5); margin: 0 1px; }
.cch-page-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -.5px;
    color: #fff;
}
.cch-tabs {
    display: inline-flex;
    gap: 4px;
    max-width: 100%;
    padding: 4px;
    border-radius: 16px;
    background: rgba(255,255,255,.05);
    margin: 0 0 20px;
}
.cch-root .cch-tab {
    border: 0;
    box-shadow: none;
    outline-offset: 3px;
    border-radius: 12px;
    background: transparent;
    color: rgba(255,255,255,.7);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    height: 48px;
    padding: 0 16px;
    transition: color .15s ease, background .15s ease;
}
.cch-root .cch-tab:hover { color: #fff; }
.cch-root .cch-tab.is-active { color: var(--cch-pink); background: var(--cch-card); }
.cch-root :is(.cch-tab,.cch-card,.cch-play-button,.cch-breadcrumb button,.cch-back-button):focus-visible { outline: 2px solid var(--cch-pink); outline-offset: 3px; }
/* Mobile taps can produce :focus-visible too; limit the pink ring to keyboard use. */
.cch-root[data-cch-input="pointer"] :is(.cch-tab,.cch-card,.cch-play-button,.cch-breadcrumb button,.cch-back-button):focus-visible {
    outline: none;
}

.cch-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.cch-root .cch-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    color: #fff;
    text-align: left;
    box-shadow: none;
    overflow: hidden;
    transition: background .22s ease;
}
.cch-root .cch-card:hover { background: rgba(255,255,255,.10); }
/* Background-fill is independent of IMG height overrides from Elementor.
   The inline image URL and sizing remain effective even with a stale CSS cache. */
.cch-card-art { position: relative; width: 100%; display: block; flex: 0 0 auto; aspect-ratio: 427/575; background-color: rgba(255,255,255,.1); background-size: 125% 125%; background-position: center; background-repeat: no-repeat; overflow: hidden; transition: filter .3s ease; }
.cch-card:hover .cch-card-art { filter: brightness(1.25); }
.cch-card-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; width: 100%; }
.cch-card-description {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.cch-info-block { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cch-info-label { display: block; color: rgba(255,255,255,.5); font-weight: 400; font-size: 12px; line-height: 14px; }
.cch-money { display: inline-flex; align-items: center; gap: 4px; color: var(--cch-green); font-size: 14px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.cch-money-coin { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: 0 0 16px; background: #65ad62; color: #fff; font-size: 10px; font-weight: 700; border-radius: 50%; }
.cch-creator { font-size: 14px; line-height: 20px; color: #fff; }
.cch-empty { width: 100%; min-height: 210px; background: rgba(255,255,255,.05); border-radius: 16px; text-align: center; padding: 48px 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; }
.cch-empty-icon { color: rgba(255,255,255,.45); }
.cch-empty-title { color: #fff; font-size: 16px; font-weight: 700; }
.cch-empty-description { color: rgba(255,255,255,.6); font-size: 14px; }
/* In-place challenge details */
.cch-detail { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cch-detail-heading { margin-bottom: 0; gap: 10px; }
/* Match the understated text-only back control in the Winnex blog reader. */
.cch-root button.cch-back-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    width: auto;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255,255,255,.55);
    box-shadow: none;
    text-transform: none;
    font: 500 14px/20px 'Funnel Display', sans-serif;
    transition: color .18s ease;
}
.cch-root button.cch-back-button:hover,
.cch-root button.cch-back-button:focus-visible {
    background: transparent;
    color: #fff;
    border: 0;
    box-shadow: none;
}
.cch-back-button svg { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
.cch-detail-main { display: flex; flex-direction: row; gap: 20px; width: 100%; min-width: 0; align-items: flex-start; }
.cch-detail-image { position: relative; flex: 0 0 160px; width: 160px; aspect-ratio: 427/575; border-radius: 16px; overflow: hidden; background-color: rgba(255,255,255,.10); background-size: 125% 125%; background-position: center; background-repeat: no-repeat; }
.cch-detail-info { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; align-items: flex-start; gap: 20px; }
.cch-detail-top { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cch-status { display: inline-flex; border-radius: 999px; padding: 6px 10px; font-size: 12px; line-height: 14px; font-weight: 700; }
.cch-status-live { color: var(--cch-green); background: rgba(0,187,31,.15); }
.cch-status-finished { color: rgba(255,255,255,.7); background: rgba(255,255,255,.10); }
.cch-detail-description { color: #fff; font-size: 20px; line-height: 25px; font-weight: 700; }
.cch-detail-reward { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cch-detail-reward .cch-info-label, .cch-stat .cch-info-label { font-size: 14px; line-height: 18px; }
.cch-money-large { color: var(--cch-green); font-size: 30px; line-height: 32px; gap: 8px; }
.cch-money-large .cch-money-coin { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; }
.cch-root .cch-play-button { display: inline-flex; justify-content: center; align-items: center; border: 0; box-shadow: none; border-radius: 12px; background: #00d900; color: #fff; min-height: 48px; padding: 12px 18px; font-size: 16px; font-weight: 700; line-height: 24px; transition: background .2s ease; }
.cch-root .cch-play-button:hover { color: #fff; background: #00ad00; }
.cch-stats {
    display: inline-flex;
    flex-wrap: wrap;
    align-self: flex-start;
    gap: 16px 28px;
    width: fit-content;
    max-width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--cch-card);
}
.cch-stat { display: flex; flex-direction: column; gap: 6px; }
.cch-stat-value { font-size: 16px; line-height: 20px; font-weight: 700; color: #fff; }
@container (max-width: 1179px) { .cch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 829px) { .cch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* On narrow Elementor columns, keep the image and challenge copy together
   instead of stacking a large portrait above every other piece of information. */
@container (max-width: 599px) {
    .cch-shell { padding-top: 0; padding-bottom: 0; }
    .cch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cch-card-body { padding: 14px; gap: 10px; }
    .cch-detail { gap: 14px; }
    .cch-detail-heading { gap: 8px; }
    .cch-detail-heading .cch-breadcrumb { display: none; }
    .cch-detail-heading .cch-page-title { font-size: 22px; line-height: 27px; overflow-wrap: anywhere; }
    .cch-detail-main {
        display: grid;
        grid-template-columns: clamp(100px, 32%, 128px) minmax(0, 1fr);
        align-items: start;
        column-gap: 14px;
        row-gap: 12px;
        width: 100%;
        padding: 14px;
        background: linear-gradient(140deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 16px;
    }
    .cch-detail-image {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 100%;
        height: auto;
        aspect-ratio: 427 / 575;
        border-radius: 12px;
        align-self: start;
    }
    .cch-detail-info { display: contents; }
    .cch-detail-top { grid-column: 2; grid-row: 1; gap: 8px; min-width: 0; }
    .cch-detail-description { font-size: 16px; line-height: 1.38; font-weight: 650; overflow-wrap: anywhere; }
    .cch-status { font-size: 11px; padding: 5px 9px; }
    .cch-detail-reward { grid-column: 2; grid-row: 2; gap: 4px; min-width: 0; align-self: end; }
    .cch-detail-reward .cch-info-label { font-size: 12px; line-height: 16px; }
    .cch-money-large { font-size: 24px; line-height: 28px; gap: 6px; }
    .cch-money-large .cch-money-coin { width: 19px; height: 19px; flex-basis: 19px; font-size: 10px; }
    .cch-root .cch-play-button {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        min-height: 44px;
        padding: 10px 16px;
        font-size: 15px;
        line-height: 22px;
        border-radius: 10px;
    }
    .cch-stats { gap: 12px 18px; padding: 13px 16px; border-radius: 13px; }
    .cch-stat { gap: 4px; }
    .cch-stat .cch-info-label { font-size: 12px; line-height: 16px; }
    .cch-stat-value { font-size: 14px; line-height: 18px; }
}
@container (max-width: 365px) {
    .cch-card-body { padding: 10px; }
    .cch-card-description { font-size: 13px; }
    .cch-money { font-size: 13px; }
    .cch-detail-main { grid-template-columns: 94px minmax(0,1fr); column-gap: 12px; padding: 12px; }
    .cch-detail-description { font-size: 15px; line-height: 1.35; }
    .cch-money-large { font-size: 22px; }
    .cch-stats { gap: 10px 14px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .cch-root *, .cch-root *::before, .cch-root *::after { transition-duration: .01ms !important; } }

/* Bets & Wins-inspired results: flat, clear row spacing, subtle stripe and USD badge. */
.cch-results { width:100%; min-width:0; margin:16px 0 0; padding:0; background:transparent; color:#fff; }
.cch-results-heading { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:0 0 20px; padding:0; }
.cch-results-title { display:block; margin:0; padding:0; color:#fff; font-size:25px; font-weight:700; line-height:1.3; letter-spacing:-.025em; }
.cch-results-desktop { display:block; min-width:0; width:100%; }
.cch-results-row { display:grid; grid-template-columns:74px minmax(155px,2fr) minmax(130px,1.2fr) minmax(130px,1.2fr); align-items:center; gap:clamp(10px,2cqi,26px); min-width:0; width:100%; padding:0 16px; min-height:50px; border-radius:12px; color:#fff; font-size:15px; line-height:22px; }
.cch-results-header { min-height:32px; padding-bottom:10px; color:rgba(255,255,255,.52); font-size:13px; font-weight:500; }
.cch-results-rows { display:flex; flex-direction:column; gap:8px; }
.cch-results-rows .cch-results-row:nth-child(even) { background:rgba(255,255,255,.055); }
.cch-results-rows .cch-results-row:hover { background:rgba(255,255,255,.10); }
.cch-results-row > span { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cch-results-rank { color:rgba(255,255,255,.52); font-variant-numeric:tabular-nums; }
.cch-results-player { color:#fff; font-weight:600; }
.cch-results-money { display:inline-flex; align-items:center; gap:6px; max-width:100%; white-space:nowrap; color:#fff; }
.cch-results-money.is-highlight { color:#ff2b8a; }
.cch-results-money-value { overflow:hidden; min-width:0; text-overflow:ellipsis; font-variant-numeric:tabular-nums; }
.cch-results-coin { display:inline-flex; flex:0 0 auto; justify-content:center; align-items:center; width:19px; height:19px; border-radius:50%; background:#65ad62; color:#fff; font-size:11px; font-weight:700; line-height:1; }
.cch-results-mobile { display:none; }
.cch-results-empty { display:flex; align-items:center; min-height:65px; padding:16px; border-radius:12px; background:rgba(255,255,255,.055); color:rgba(255,255,255,.55); font-size:14px; }
@container (min-width:750px) {
  .cch-results-title { font-size:30px; }
  .cch-results-row { font-size:16px; }
}
@container (max-width:749px) {
  .cch-results { margin-top:12px; }
  .cch-results-heading { align-items:center; gap:10px; margin-bottom:12px; }
  .cch-results-title { font-size:21px; }
  .cch-results-desktop { display:none; }
  .cch-results-mobile { display:flex; flex-direction:column; gap:5px; width:100%; min-width:0; }
  .cch-results-mobile-row { display:grid; grid-template-columns:65px minmax(0,1fr) minmax(0,1fr); column-gap:12px; row-gap:13px; align-items:start; padding:13px 14px; border-radius:12px; }
  .cch-results-mobile-row:nth-child(odd) { background:rgba(255,255,255,.10); }
  .cch-results-mobile-cell { display:flex; flex-direction:column; gap:5px; min-width:0; }
  .cch-results-mobile-rank { grid-column:1; }
  .cch-results-mobile-player { grid-column:2 / -1; }
  .cch-results-mobile-cell:nth-child(3) { grid-column:1 / 3; }
  .cch-results-mobile-cell:nth-child(4) { grid-column:3; }
  .cch-results-mobile-label { color:rgba(255,255,255,.50); font-size:11px; line-height:14px; font-weight:500; }
  .cch-results-mobile-value { color:#fff; font-size:13px; line-height:20px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cch-results-money { font-size:13px; }
  .cch-results-coin { width:16px; height:16px; font-size:10px; }
}

/* Paginated results: show one page at a time (10 desktop / 5 mobile).
   Controls inherit Winnex's flat dark styling and pink active state. */
.cch-root .cch-results-pagination {
    display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:12px 16px; margin-top:20px; padding:8px 0 0;
    min-width:0; width:100%;
}
.cch-results-page-summary { color:rgba(255,255,255,.52); font:500 13px/20px 'Funnel Display',sans-serif; white-space:nowrap; }
.cch-results-page-buttons { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px; }
.cch-root button.cch-results-page-btn {
    appearance:none; display:inline-flex; align-items:center; justify-content:center;
    width:34px; min-width:34px; height:34px; min-height:34px; margin:0; padding:0;
    border:1px solid rgba(255,255,255,.08); border-radius:9px;
    background:#231f2c; color:rgba(255,255,255,.75);
    box-shadow:none; text-transform:none; text-decoration:none;
    font:600 13px/1 'Funnel Display',sans-serif;
    transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.cch-root button.cch-results-page-btn.is-arrow { font-size:22px; font-weight:500; padding-bottom:2px; }
.cch-root button.cch-results-page-btn:hover:not(:disabled) { background:rgba(255,43,138,.16); border-color:rgba(255,43,138,.55); color:#fff; }
.cch-root button.cch-results-page-btn.is-active,
.cch-root button.cch-results-page-btn.is-active:hover { background:#ff2b8a; border-color:#ff2b8a; color:#fff; }
.cch-root button.cch-results-page-btn:focus-visible { outline:2px solid #ff2b8a; outline-offset:3px; }
.cch-root button.cch-results-page-btn:disabled { cursor:default; opacity:.35; }
.cch-results-page-ellipsis { display:inline-flex; justify-content:center; align-items:center; width:18px; height:34px; color:rgba(255,255,255,.50); font:600 14px/1 'Funnel Display',sans-serif; }
@container (max-width:749px) {
  .cch-root .cch-results-pagination { gap:10px; justify-content:center; margin-top:14px; padding-top:6px; }
  .cch-results-page-summary { width:100%; text-align:center; font-size:12px; }
  .cch-results-page-buttons { justify-content:center; gap:5px; }
  .cch-root button.cch-results-page-btn { width:32px; min-width:32px; height:32px; min-height:32px; border-radius:8px; }
}
