/* CH Tools styling — matches the approved mockup (cbg-redesign-mockup.html).
   Accent vars come from ch-redesign.css (--green/--surface/--line/--purple/--gold…). */
:root{ --ch-accent:#7c6cff; --ch-cyan:#35d6e8; --ch-wrap:1140px; }

/* ============ "why this score" transparency panel ============ */
.ch-why-t{margin-top:7px;display:inline-flex;align-items:center;gap:5px;background:rgba(30,224,122,.12);
  border:1px solid rgba(30,224,122,.4);color:#49e58e;font:inherit;font-size:.68rem;font-weight:700;
  padding:3px 10px;border-radius:999px;cursor:pointer;transition:.15s}
.ch-why-t:hover{background:rgba(30,224,122,.2)}
.ch-why-t i{font-size:.6em;transition:transform .2s}.ch-why-t.open i{transform:rotate(180deg)}
.ch-why{margin:2px 24px 22px;padding:16px 18px;background:linear-gradient(180deg,rgba(124,108,255,.08),rgba(255,255,255,.02));
  border:1px solid var(--line);border-radius:14px}
.ch-why-h{font-size:.82rem;font-weight:800;color:#f2f6fc;margin-bottom:12px}
.ch-why-h span{font-weight:600;color:#9fb0cc;font-size:.74rem}
.ch-why-bars{display:grid;gap:9px}
.ch-why-row{display:grid;grid-template-columns:minmax(150px,230px) 1fr auto;align-items:center;gap:14px}
.ch-why-l{font-size:.76rem;color:#dde6f4;font-weight:600}
.ch-why-l em{font-style:normal;color:#8a9ab8;font-weight:700;font-size:.68rem;margin-left:4px}
.ch-why-bar{height:8px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.ch-why-bar i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,var(--ch-accent),var(--green));transition:width .8s cubic-bezier(.22,1,.36,1)}
.ch-why-v{font-size:.78rem;font-weight:800;color:#f2f6fc;min-width:48px;text-align:right}
.ch-why-v small{color:#8a9ab8;font-weight:600;font-size:.72em}

/* ============ live filter + sort toolbar ============ */
.ch-fbar{display:flex;flex-wrap:wrap;gap:14px 20px;align-items:center;justify-content:space-between;
  margin:28px 0 4px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.ch-fchips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ch-flabel{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#8a9ab8}
.ch-chip{font:inherit;font-size:.78rem;font-weight:600;color:#cfd9ea;background:var(--surface2);
  border:1.5px solid var(--line);border-radius:999px;padding:8px 14px;cursor:pointer;transition:.15s}
.ch-chip:hover{border-color:var(--ch-accent);color:#fff}
.ch-chip.on{background:rgba(30,224,122,.12);border-color:var(--green);color:#9af5c3}
.ch-fsort{display:flex;align-items:center;gap:12px}
.ch-fsort label{font-size:.78rem;font-weight:700;color:#9fb0cc;display:inline-flex;align-items:center;gap:7px}
.ch-sort{font:inherit;font-size:.8rem;color:#eef3fb;background:var(--surface2);border:1.5px solid var(--line);border-radius:10px;padding:8px 12px;cursor:pointer}
.ch-reset{font:inherit;font-size:.74rem;font-weight:700;color:#ff9a86;background:transparent;border:1px solid rgba(255,122,77,.4);border-radius:999px;padding:5px 12px;cursor:pointer}
.ch-reset:hover{background:rgba(255,122,77,.12)}
.ch-fnone{display:none;margin:18px 0;padding:22px;text-align:center;color:#9fb0cc;font-weight:600;background:var(--surface2);border:1px dashed var(--line2);border-radius:14px}
.ch-fnone[hidden]{display:none}
.casino-list.ch-active > .cc-row{display:block !important}
.casino-list.ch-active > .cc-row.ch-hide{display:none !important}

/* ============ Find My Casino — step-by-step wizard ============ */
.ch-matcher{margin-top:34px;max-width:none;background:linear-gradient(180deg,var(--surface),var(--surface2));
  border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.ch-matcher:before{content:"";position:absolute;inset:0;background:radial-gradient(500px 200px at 15% 0%,rgba(124,108,255,.14),transparent 60%);pointer-events:none}
.ch-m-top{display:flex;align-items:center;gap:12px;margin-bottom:4px;position:relative}
.ch-m-ic{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font-size:18px;background:linear-gradient(135deg,var(--ch-accent),var(--ch-cyan))}
.ch-m-top h2{font-size:20px;margin:0;color:#f4f7fc;letter-spacing:-.3px}
.ch-m-top p{color:#9fb0cc;font-size:13.5px;margin:1px 0 0}
.ch-m-prog{display:flex;gap:6px;margin:16px 0 20px}
.ch-m-prog i{height:4px;flex:1;border-radius:3px;background:var(--line2);transition:.3s}
.ch-m-prog i.on{background:var(--green)}
.ch-m-qwrap{position:relative;min-height:132px}
.ch-m-q{display:none}.ch-m-q.on{display:block;animation:chslide .35s ease}
@keyframes chslide{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
.ch-m-q h3{font-size:17px;margin:0 0 14px;font-weight:700;color:#eef3fb}
.ch-m-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.ch-m-opt{background:var(--surface2);border:1.5px solid var(--line);border-radius:13px;padding:14px;cursor:pointer;
  display:flex;flex-direction:column;gap:5px;transition:.15s;text-align:left;font:inherit}
.ch-m-opt:hover{border-color:var(--ch-accent);transform:translateY(-2px)}
.ch-m-opt.sel{border-color:var(--green);background:rgba(30,224,122,.08)}
.ch-m-e{font-size:22px}
.ch-m-ot{font-weight:700;font-size:14px;color:#eef3fb}
.ch-m-od{color:#64748f;font-size:12px}
.ch-m-nav{display:flex;justify-content:space-between;align-items:center;margin-top:20px}
.ch-m-back{color:#9fb0cc;background:none;border:none;cursor:pointer;font:inherit;font-size:13.5px}
.ch-m-back:hover{color:#eef3fb}
.ch-m-back[hidden]{visibility:hidden}
.ch-m-next{border:none;cursor:pointer;font:inherit;font-weight:700;border-radius:12px;color:#042814;
  background:linear-gradient(135deg,var(--green),#0f9f52);padding:13px 24px;font-size:15px;box-shadow:0 10px 28px -8px rgba(30,224,122,.5);transition:.15s}
.ch-m-next:hover{transform:translateY(-2px);filter:brightness(1.07)}
.ch-m-next:disabled{opacity:.4;cursor:not-allowed;transform:none;box-shadow:none}

/* matcher result integrated into the toplist */
.ccard.ch-matched{border-color:var(--green) !important;box-shadow:0 0 0 1px var(--green),0 24px 50px -24px rgba(30,224,122,.4) !important}
/* .ch-mtag is appended to .cc-row (not .ccard) by ch-matcher.js: the Variant-A .ccard has
   overflow:hidden (clips to its rounded corners) which would flatten a tab floating above the
   card's top edge. .cc-row isn't clipped, so position the ribbon relative to it instead. */
.cc-row{position:relative}
.ch-mtag{position:absolute;top:-10px;left:18px;background:var(--green);color:#042814;font-size:11px;font-weight:800;padding:3px 10px;border-radius:999px;letter-spacing:.3px;z-index:3;box-shadow:0 4px 10px -4px rgba(0,0,0,.4)}
.ch-matchwhy{margin:0 24px 18px;background:rgba(30,224,122,.07);border:1px dashed rgba(30,224,122,.35);border-radius:11px;padding:9px 13px;font-size:12.5px;color:#9af5c3}

/* ============ Bonus calculator — its own section, 2-col ============ */
.ch-calc{padding:48px 0}
.ch-wrap{max-width:var(--ch-wrap);margin:0 auto;padding:0 22px}
.ch-c-shead .k{color:var(--green);font-weight:700;font-size:12.5px;letter-spacing:1.5px;text-transform:uppercase;display:block;margin-bottom:8px}
.ch-c-shead h2{font-size:30px;letter-spacing:-.8px;margin:0;color:#f4f7fc}
.ch-c-shead p{color:#9fb0cc;max-width:48ch;margin:6px 0 24px}
.ch-c{background:linear-gradient(180deg,var(--surface),var(--surface2));border:1px solid var(--line);border-radius:22px;
  padding:28px;display:grid;grid-template-columns:1fr 340px;gap:30px;box-shadow:var(--shadow)}
.ch-c-fields label{display:block;font-size:13px;color:#9fb0cc;margin:16px 0 7px;font-weight:600}
.ch-c-fields label:first-child{margin-top:0}
.ch-c-fields input[type=number],.ch-c-fields select{width:100%;background:var(--bg);border:1.5px solid var(--line2);
  color:#eef3fb;border-radius:11px;padding:12px 14px;font:inherit;font-size:15px}
.ch-c-fields input:focus,.ch-c-fields select:focus{outline:none;border-color:var(--green)}
.ch-c-rng{display:flex;align-items:center;gap:12px}
.ch-c-rng input[type=range]{flex:1;accent-color:var(--green)}
.ch-c-rng b{width:52px;text-align:right;color:var(--green);font-weight:800}
.ch-c-result{background:var(--bg);border:1px solid var(--line);border-radius:18px;padding:22px;display:flex;flex-direction:column;justify-content:center}
.ch-c-verdict{text-align:center;padding:16px;border-radius:14px;margin-bottom:18px;font-weight:800;font-size:18px}
.ch-c-verdict.good{background:rgba(30,224,122,.12);color:#8df3bd;border:1px solid rgba(30,224,122,.4)}
.ch-c-verdict.bad{background:rgba(255,93,108,.1);color:#ffb3ba;border:1px solid rgba(255,93,108,.35)}
.ch-c-rline{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.ch-c-rline:last-of-type{border:none}
.ch-c-rline .lab{color:#9fb0cc}
.ch-c-rline .num{font-weight:700;font-variant-numeric:tabular-nums;color:#eef3fb}
.ch-c-rline .num.pos{color:var(--green)}.ch-c-rline .num.neg{color:#ff6470}
.ch-c-note{color:#64748f;font-size:11.5px;margin-top:14px;line-height:1.5}
.ch-calc.ch-embed{padding:30px 0}
.ch-calc.ch-embed .ch-wrap{padding:0}

@media(max-width:860px){
  .ch-c{grid-template-columns:1fr}
  .ch-matcher{max-width:none}
  .ch-why{margin:2px 14px 18px}.ch-why-row{grid-template-columns:1fr auto}.ch-why-bar{grid-column:1/-1;order:3}
  .ch-matchwhy{margin:0 14px 14px}
}

/* slim single-page jump-bar under the header */
html{scroll-behavior:smooth}
.ch-jumpbar{position:sticky;top:0;z-index:49;background:rgba(14,22,40,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.ch-jumpbar .ch-wrap{display:flex;gap:28px;justify-content:center;align-items:center;min-height:46px;flex-wrap:wrap;padding-top:0;padding-bottom:0}
.ch-jumpbar a{color:#9fb0cc;font-size:13.5px;font-weight:600;white-space:nowrap;padding:12px 0}
.ch-jumpbar a:hover{color:var(--green)}
/* mobile: keep the jump bar a single COMPACT row (scroll horizontally) instead of wrapping to 2+
   rows (which stacked a tall second bar under the sticky header). */
@media(max-width:760px){
  .ch-jumpbar .ch-wrap{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:20px;min-height:42px;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;padding-left:16px;padding-right:16px}
  .ch-jumpbar .ch-wrap::-webkit-scrollbar{display:none}
  .ch-jumpbar a{flex:none;font-size:12.5px;padding:10px 0}
}

/* calculator v2: 4-tier verdict + break-even + cap warning */
.ch-c-verdict b{display:block;font-size:18px;line-height:1.2}
.ch-c-verdict span{display:block;font-weight:600;font-size:12.5px;margin-top:6px;opacity:.92}
.ch-c-verdict.mid{background:rgba(255,183,39,.12);color:#ffce7a;border:1px solid rgba(255,183,39,.4)}
.ch-c-verdict.fun{background:rgba(255,138,80,.12);color:#ffb088;border:1px solid rgba(255,138,80,.4)}
.ch-c-be{font-size:12.5px;font-weight:700;color:#9af5c3;background:rgba(30,224,122,.08);
  border:1px solid rgba(30,224,122,.28);border-radius:10px;padding:9px 12px;margin-bottom:14px;text-align:center}
.ch-c-be:empty{display:none}
.ch-c-cap{font-size:12px;color:#ffb3ba;background:rgba(255,93,108,.08);border:1px solid rgba(255,93,108,.3);
  border-radius:10px;padding:9px 12px;margin-top:12px;line-height:1.45}
.ch-c-cap[hidden]{display:none}
.ch-c-rline .num{text-align:right}

/* ============ session simulator ============ */
.ch-sim{padding-bottom:48px}
.ch-s-mode{display:flex;gap:8px;margin-bottom:8px}
.ch-s-mode button{flex:1;font:inherit;font-weight:700;font-size:13px;color:#cfd9ea;background:var(--surface2);border:1.5px solid var(--line);border-radius:10px;padding:9px;cursor:pointer}
.ch-s-mode button.on{background:rgba(30,224,122,.15);border-color:var(--green);color:#9af5c3}
.ch-s-run{margin-top:18px;width:100%;justify-content:center;text-align:center;font-size:15px;padding:12px;border-radius:12px;cursor:pointer}
.ch-s-out{min-height:130px;display:flex;flex-direction:column;justify-content:center}
.ch-s-busy{text-align:center;color:#9fb0cc;font-weight:600;padding:36px}
.ch-s-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
.ch-s-tile{background:var(--surface2);border:1px solid var(--line);border-radius:13px;padding:14px 8px;text-align:center}
.ch-s-tile.good{background:rgba(30,224,122,.1);border-color:rgba(30,224,122,.35)}
.ch-s-tile.bad{background:rgba(255,93,108,.1);border-color:rgba(255,93,108,.3)}
.ch-s-n{display:block;font-size:24px;font-weight:800;color:#f4f7fc;font-family:var(--head,inherit);line-height:1}
.ch-s-tile.good .ch-s-n{color:#2bf089}.ch-s-tile.bad .ch-s-n{color:#ff6470}
.ch-s-l{display:block;font-size:11px;color:#9fb0cc;margin-top:6px;line-height:1.3}
.ch-s-verdict{margin-top:12px;font-size:13px;font-weight:600;color:#ffce7a;background:rgba(255,183,39,.08);border:1px solid rgba(255,183,39,.3);border-radius:11px;padding:11px 13px;line-height:1.45}
.ch-s-how-t{margin-top:12px;background:none;border:none;color:#8f9dff;font:inherit;font-size:12px;font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:2px;padding:0}
.ch-s-how{margin-top:8px;font-size:11.5px;color:#9fb0cc;line-height:1.55;background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:11px 13px}
.ch-s-how[hidden]{display:none}

/* ============ tool-page explanatory copy (methodology + FAQ under the tool) ============ */
.ch-tool-copy{max-width:780px;margin:40px auto 8px;line-height:1.65;color:var(--text,#eef3fb)}
.ch-tool-copy h2{font-size:22px;line-height:1.25;margin:34px 0 12px;font-family:var(--head,inherit);color:#f4f7fc}
.ch-tool-copy h2:first-child{margin-top:8px}
.ch-tool-copy h3{font-size:16px;margin:20px 0 6px;color:#eaf0fa;font-weight:700}
.ch-tool-copy p{margin:0 0 14px;color:#c9d4e6}
.ch-tool-copy ul{margin:0 0 16px;padding-left:20px}
.ch-tool-copy li{margin:0 0 9px;color:#c9d4e6}
.ch-tool-copy strong{color:#eef3fb}
.ch-tool-copy a{color:#8f9dff;text-decoration:underline;text-underline-offset:2px}
.ch-tool-copy a:hover{color:#b3bdff}
.ch-tool-copy .ch-formula{background:var(--surface2,#0e1728);border:1px solid var(--line2,rgba(255,255,255,.16));
  border-radius:12px;padding:14px 16px;text-align:center;font-size:15px;color:#9af5c3}
.ch-tool-copy .ch-rg-note{margin-top:26px;padding-top:16px;border-top:1px solid var(--line,rgba(255,255,255,.085));
  font-size:12.5px;color:#9fb0cc}
