/* casinostown.com — витрина `cstv` «Outback Ledger». Своя геометрия и палитра:
   шестиугольный ранг + песочные строки + эвкалиптовый CTA. У соседа по гео (grcv) —
   семиконечная звезда и золотой рельс, не повторяем. Фильтры без JS, на :checked. */
.cstv-wrap{margin:26px 0 30px;font-family:cstUi,Inter,system-ui,Arial,sans-serif}
.cstv-wrap *{box-sizing:border-box}
.cstv-h2{font-family:cstDisp,cstUi,sans-serif!important;font-size:30px!important;margin:0 0 6px!important;
  border:0!important;padding:0!important;color:#23180f!important}
.cstv-lead{margin:0 0 14px!important;font-size:15px!important;color:#5d4d3c!important;max-width:860px}

/* фильтры */
.cstv-fi{position:absolute;opacity:0;pointer-events:none}
.cstv-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.cstv-filters label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;
  background:#fff!important;border:1px solid #e7dbc6!important;border-radius:999px;
  padding:7px 14px;font-size:13.5px;font-weight:700;color:#23180f!important;user-select:none}
.cstv-filters label b{color:#b4441c!important;font-weight:700}
.cstv-filters label:hover{border-color:#b4441c!important}
.cstv-wrap input[id^="cstv-aud"]:checked~.cstv-filters label[for^="cstv-aud"],
.cstv-wrap input[id^="cstv-loc"]:checked~.cstv-filters label[for^="cstv-loc"],
.cstv-wrap input[id^="cstv-cry"]:checked~.cstv-filters label[for^="cstv-cry"],
.cstv-wrap input[id^="cstv-big"]:checked~.cstv-filters label[for^="cstv-big"],
.cstv-wrap input[id^="cstv-wag"]:checked~.cstv-filters label[for^="cstv-wag"],
.cstv-wrap input[id^="cstv-fs"]:checked~.cstv-filters label[for^="cstv-fs"]{
  background:#2c5d4f!important;border-color:#2c5d4f!important;color:#fff!important}
.cstv-wrap input[id^="cstv-aud"]:checked~.cstv-filters label[for^="cstv-aud"] b,
.cstv-wrap input[id^="cstv-loc"]:checked~.cstv-filters label[for^="cstv-loc"] b,
.cstv-wrap input[id^="cstv-cry"]:checked~.cstv-filters label[for^="cstv-cry"] b,
.cstv-wrap input[id^="cstv-big"]:checked~.cstv-filters label[for^="cstv-big"] b,
.cstv-wrap input[id^="cstv-wag"]:checked~.cstv-filters label[for^="cstv-wag"] b,
.cstv-wrap input[id^="cstv-fs"]:checked~.cstv-filters label[for^="cstv-fs"] b{color:#f3e3c8!important}

/* список */
ol.cstv-list{list-style:none!important;margin:0!important;padding:0!important;
  border:1px solid #e7dbc6;border-radius:16px;overflow:hidden;background:#fff}
ol.cstv-list>li{display:grid!important;grid-template-columns:52px 208px minmax(150px,1fr) minmax(232px,282px) minmax(150px,176px);
  gap:14px;align-items:center;padding:14px 16px!important;margin:0!important;
  border-bottom:1px solid #f0e8da;background:#fff}
ol.cstv-list>li:nth-child(even){background:#fdfaf3}
ol.cstv-list>li:last-child{border-bottom:0}
ol.cstv-list>li.cstv-top{background:#fbf3e6}
ol.cstv-list>li.cstv-hid{display:none!important}
.cstv-all:checked~ol.cstv-list>li.cstv-hid{display:grid!important}
/* активный фильтр режет строки */
.cstv-wrap input[id^="cstv-aud"]:checked~ol.cstv-list>li:not(.cstv-f-aud),
.cstv-wrap input[id^="cstv-loc"]:checked~ol.cstv-list>li:not(.cstv-f-loc),
.cstv-wrap input[id^="cstv-cry"]:checked~ol.cstv-list>li:not(.cstv-f-cry),
.cstv-wrap input[id^="cstv-big"]:checked~ol.cstv-list>li:not(.cstv-f-big),
.cstv-wrap input[id^="cstv-wag"]:checked~ol.cstv-list>li:not(.cstv-f-wag),
.cstv-wrap input[id^="cstv-fs"]:checked~ol.cstv-list>li:not(.cstv-f-fs){display:none!important}

/* ранг — шестиугольник */
.cstv-rank{width:44px;height:48px;display:flex;align-items:center;justify-content:center;
  background:#b4441c!important;color:#fff!important;font-family:cstDisp,cstUi,sans-serif;font-size:22px;
  clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
li.cstv-top .cstv-rank{background:#2c5d4f!important}
/* плашка логотипа */
.cstv-plate{width:208px;height:76px;display:flex;align-items:center;justify-content:center;
  background:#fff!important;border:1px solid #f0e8da;border-radius:10px;overflow:hidden}
.cstv-plate img{max-width:196px!important;max-height:68px!important;width:auto!important;height:auto!important;display:block}
.cstv-noplate{font-weight:700;font-size:15px;color:#23180f!important;text-align:center;padding:0 8px}
/* бренд и чипы */
.cstv-name{font-size:17px;font-weight:700;line-height:1.2}
.cstv-name a{color:#23180f!important;text-decoration:none!important}
.cstv-name a:hover{color:#b4441c!important;text-decoration:underline!important}
.cstv-score{display:inline-block;margin-left:8px;background:#d8992f!important;color:#23180f!important;
  border-radius:7px;padding:1px 7px;font-size:13px;font-weight:700}
.cstv-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.cstv-chip{font-size:11.5px;font-weight:700;letter-spacing:.2px;border-radius:6px;padding:3px 8px;
  background:#f6efe2!important;color:#5d4d3c!important;border:1px solid #eadfcb!important}
.cstv-chip--aud{background:#e8f2ec!important;color:#215744!important;border-color:#cfe4d8!important}
.cstv-chip--lic{background:#f0eef8!important;color:#3b3268!important;border-color:#ddd8ee!important}
/* оффер */
.cstv-offer{background:#fbf6ec!important;border:1px solid #eadfcb!important;border-left:4px solid #d8992f!important;
  border-radius:10px;padding:10px 12px}
.cstv-offer b{display:block;font-size:15.5px;line-height:1.28;color:#8e3413!important}
.cstv-offer i{display:block;margin-top:4px;font-style:normal;font-size:12px;color:#5d4d3c!important}
/* CTA */
.cstv-act{display:flex;flex-direction:column;gap:7px;align-items:stretch;text-align:center}
a.cstv-cta{display:block;background:#2c6b4a!important;color:#fff!important;border-radius:999px;
  padding:12px 14px;font-weight:700;font-size:15.5px;text-decoration:none!important;letter-spacing:.2px}
a.cstv-cta:hover{background:#20563a!important}
a.cstv-rev{font-size:13px;color:#2c5d4f!important;text-decoration:underline!important}
.cstv-norev{font-size:12.5px;color:#5d4d3c!important}
/* кнопка «показать все» и сноска */
.cstv-all{position:absolute;opacity:0;pointer-events:none}
.cstv-morebtn{display:block;margin:14px auto 0;max-width:340px;text-align:center;cursor:pointer;
  background:#fff!important;border:1px dashed #b4441c!important;border-radius:999px;padding:11px 18px;
  font-weight:700;color:#b4441c!important}
.cstv-all:checked~.cstv-morebtn{display:none}
.cstv-note{margin:14px 0 0!important;font-size:12.5px!important;line-height:1.6!important;color:#5d4d3c!important}
.cstv-note a{color:#2c5d4f!important}
/* детали оператора */
details.cstv-more{grid-column:1/-1;margin-top:10px}
details.cstv-more>summary{cursor:pointer;font-size:13.5px;color:#5d4d3c!important;list-style:none}
details.cstv-more>summary::-webkit-details-marker{display:none}
details.cstv-more>summary:after{content:" ▾";color:#b4441c}
details.cstv-more[open]>summary:after{content:" ▴"}
dl.cstv-dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px 16px;margin:10px 0 0}
dl.cstv-dl div{background:#fbf6ec!important;border:1px solid #f0e8da!important;border-radius:8px;padding:8px 10px}
dl.cstv-dl dt{font-size:11.5px;text-transform:uppercase;letter-spacing:.6px;color:#6b5b4a!important;margin:0}
dl.cstv-dl dd{margin:2px 0 0;font-size:13.5px;color:#23180f!important}
/* перенос слов: у донора бывает word-break:break-all на контейнерах */
.cstv-wrap,.cstv-wrap *{word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}

@media (max-width:1100px){
  ol.cstv-list>li{grid-template-columns:44px 168px minmax(120px,1fr) minmax(200px,240px);}
  .cstv-plate{width:168px;height:64px}
  .cstv-plate img{max-width:156px!important;max-height:56px!important}
  .cstv-act{grid-column:1/-1}
  a.cstv-cta{max-width:320px;margin:0 auto}
}
@media (max-width:720px){
  ol.cstv-list>li{grid-template-columns:44px 1fr;row-gap:10px}
  .cstv-plate{grid-column:2;width:100%;max-width:220px;height:62px}
  .cstv-main{grid-column:1/-1}
  .cstv-offer{grid-column:1/-1}
  .cstv-act{grid-column:1/-1}
  .cstv-h2{font-size:25px!important}
}

/* ── мобилка: чипы не должны распирать строку (overflow 28–48px в рендер-чекере) ── */
.cstv-main,.cstv-chips,.cstv-offer,.cstv-act{min-width:0!important}
.cstv-chips{max-width:100%!important;overflow:hidden}
.cstv-chip{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
ol.cstv-list>li{overflow:hidden}

/* ── мобильная строка компактнее: рендер-чекер принимает 150–290px ── */
@media (max-width:720px){
  ol.cstv-list>li{padding:10px 12px!important;row-gap:7px}
  .cstv-plate{height:52px;max-width:180px}
  .cstv-plate img{max-height:44px!important}
  .cstv-name{font-size:16px}
  .cstv-chips .cstv-chip:nth-child(n+3){display:none}
  .cstv-offer{padding:8px 10px}
  .cstv-offer b{font-size:14.5px}
  .cstv-offer i{font-size:11.5px}
  a.cstv-cta{padding:10px 12px;font-size:15px}
  details.cstv-more{margin-top:4px}
  details.cstv-more>summary{font-size:12.5px}
  .cstv-rank{width:38px;height:40px;font-size:19px}
}

/* ── мобильная строка: ранг+плашка+имя в одну линию (было 330px, надо ≤290) ── */
@media (max-width:720px){
  ol.cstv-list>li{grid-template-columns:38px 124px 1fr!important;
    grid-template-areas:"rank plate main" "offer offer offer" "act act act" "more more more"!important;
    row-gap:6px!important}
  .cstv-rank{grid-area:rank}
  .cstv-plate{grid-area:plate;width:124px!important;max-width:124px;height:46px}
  .cstv-plate img{max-width:116px!important;max-height:40px!important}
  .cstv-main{grid-area:main;min-width:0}
  .cstv-offer{grid-area:offer}
  .cstv-act{grid-area:act}
  details.cstv-more{grid-area:more}
  .cstv-chips .cstv-chip:nth-child(n+3){display:none}
  .cstv-name{font-size:15.5px}
}
