/* Cassino (mod/cassino.js). Medidas da 1win.io/casino em 1440x900 e 390x844 (02/11/2026):
   palco 24/48/32 com blocos a 32px, abas em pílula 36px, destaque 272px + cartão 335px,
   busca 44px + Provedores 320px, chips 40px raio 12, seções com cabeçalho 32px e cards 130x177 raio 10 gap 4. */

/* app.css fixa html/body em 100%: com isso o topo sticky some depois de ~1 tela de rolagem e
   travar a rolagem para abrir um jogo zerava a posição. No cassino o body cresce com o conteúdo. */
body.is-casino { height: auto; min-height: 100%; }

.cs-page [hidden], .cs-play [hidden] { display: none !important; }
.cs-page {
  container: cs / inline-size;
  --cs-n: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  color: #f0f2f5;
}
/* quantos cards cabem por linha, pela largura útil (1064px na 1win = 8) */
@container cs (max-width: 999px) { .cs-body, .cs-hero { --cs-n: 7; } }
@container cs (max-width: 859px) { .cs-body, .cs-hero { --cs-n: 6; } }
@container cs (max-width: 719px) { .cs-body, .cs-hero { --cs-n: 5; } }
@container cs (max-width: 579px) { .cs-body, .cs-hero { --cs-n: 4; } }
@container cs (max-width: 439px) { .cs-body, .cs-hero { --cs-n: 3; } }

.cs-ico {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.cs-chev {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.cs-chev.l { transform: rotate(180deg); }

/* abas Lobby / Cassino ao vivo / Crash — controle segmentado 44/14, aba 40/12 (igual à 1win) */
.cs-seg { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 3px; height: 44px; padding: 2px; border-radius: 14px; background: rgba(179,182,189,.12); }
.cs-seg a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  color: #f0f2f5;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.cs-seg a + a::before { content: ""; position: absolute; left: -2px; top: 8px; width: 1px; height: 24px; background: rgba(179,182,189,.12); }
.cs-seg a.on { background: #0075ff; color: #fff; }
.cs-seg a.on::before, .cs-seg a.on + a::before { opacity: 0; }

/* destaque: jogos do mês + o primeiro dos mais jogados */
.cs-hero { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 16px; height: 272px; }
.cs-hero.cs-solo { grid-template-columns: minmax(0, 1fr); }
/* só o cartão "melhor" (sem carrossel): não estica a largura toda, fica em 335px como na 1win */
.cs-hero.cs-solo-best { grid-template-columns: 335px; justify-content: start; }
.cs-hero-main { position: relative; border-radius: 24px; overflow: hidden; background: #1d1e20; }
.cs-slide {
  position: absolute;
  inset: 0;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.cs-slide.on { opacity: 1; visibility: visible; }
.cs-slide-bg { position: absolute; inset: -48px; width: calc(100% + 96px); height: calc(100% + 96px); object-fit: cover; filter: blur(36px) saturate(1.35) brightness(.5); z-index: -1; }
.cs-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,14,16,.88) 0%, rgba(14,14,16,.5) 52%, rgba(14,14,16,.1) 100%); }
.cs-slide-txt { position: relative; display: grid; justify-items: start; gap: 8px; max-width: 52%; padding: 0 35px; }
.cs-slide-txt em { font-style: normal; font-size: 12px; line-height: 16px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.16); }
.cs-slide-txt b {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.cs-slide-txt small { font-size: 14px; line-height: 20px; font-weight: 600; color: rgba(255,255,255,.72); }
.cs-slide-go { margin-top: 12px; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 10px; background: #fff; color: #141415; font-size: 14px; line-height: 20px; font-weight: 600; }
.cs-slide:hover .cs-slide-go { background: #e7e9ed; }
.cs-slide-art { position: absolute; right: 48px; top: 50%; width: 212px; height: 212px; margin-top: -106px; border-radius: 20px; overflow: hidden; background: #1d1e20; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.cs-slide-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-dots { position: absolute; right: 48px; bottom: 14px; width: 212px; display: flex; justify-content: center; gap: 6px; }
.cs-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.4); transition: width .2s, background .2s; }
.cs-dots button.on { width: 16px; background: #fff; }
.cs-best {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  justify-items: center;
  gap: 4px;
  padding: 20px 16px 16px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #3d9bff 0%, #0075ff 48%, #0056c4 100%);
  color: #fff;
  text-align: center;
}
.cs-best-t { font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -.4px; }
.cs-best-p { font-size: 14px; line-height: 20px; font-weight: 600; color: rgba(255,255,255,.85); }
.cs-best-art { position: relative; align-self: center; width: 124px; height: 124px; border-radius: 16px; overflow: hidden; background: rgba(0,0,0,.2); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.cs-best-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-best-art em { display: none; }
.cs-best-art.cs-noimg em { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; font-style: normal; font-size: 13px; font-weight: 700; }
.cs-best-go { justify-self: stretch; display: grid; place-items: center; height: 36px; border-radius: 10px; background: #fff; color: #141415; font-size: 14px; line-height: 20px; font-weight: 600; }
.cs-best:hover .cs-best-go { background: #e7e9ed; }

/* busca + Provedores + chips */
.cs-find { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.cs-findrow { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 8px; }
.cs-search {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(179,182,189,.12);
  cursor: text;
}
.cs-search:focus-within { box-shadow: inset 0 0 0 1px #0075ff; }
.cs-search .cs-ico { width: 16px; height: 16px; background: #797f8b; }
.cs-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #f0f2f5; font-size: 14px; line-height: 20px; -webkit-appearance: none; appearance: none; }
.cs-search input::placeholder { color: #9aa1b1; }
.cs-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.cs-clear { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(179,182,189,.24); color: #f0f2f5; }
.cs-x {
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cs-provbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; background: rgba(179,182,189,.12); color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; }
.cs-provbtn .cs-ico { width: 16px; height: 16px; }
.cs-provbtn:hover, .cs-chip:hover:not(.on), .cs-back:hover, .cs-btn:hover { background: rgba(179,182,189,.18); }

.cs-chipbar { position: relative; min-width: 0; }
.cs-chipbar::before, .cs-chipbar::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 96px; pointer-events: none; transition: opacity .15s; }
/* a fileira de chips passa 4px de cada lado (padding do foco): os esmaecidos cobrem até a borda dela */
.cs-chipbar::before { left: -4px; background: linear-gradient(90deg, #141415 33%, rgba(20,20,21,0)); }
.cs-chipbar::after { right: -4px; background: linear-gradient(270deg, #141415 33%, rgba(20,20,21,0)); }
.cs-chipbar[data-ini]::before, .cs-chipbar[data-fim]::after { opacity: 0; }
.cs-chipbar[data-ini] .cs-cprev, .cs-chipbar[data-fim] .cs-cnext { opacity: 0; pointer-events: none; }
.cs-cnav { position: absolute; top: 6px; z-index: 3; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: rgba(179,182,189,.12); color: #f0f2f5; transition: opacity .15s; }
.cs-cprev { left: 0; }
.cs-cnext { right: 0; }
.cs-chips { position: relative; display: flex; gap: 8px; margin: 0 -4px; padding: 4px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.cs-chips::-webkit-scrollbar { display: none; }
.cs-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(179,182,189,.12);
  color: #f0f2f5;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.cs-chip .cs-ico { width: 20px; height: 20px; margin: 2px; color: #9aa1b1; }
.cs-chip em { font-style: normal; font-size: 12px; line-height: 16px; font-weight: 600; color: #9aa1b1; font-variant-numeric: tabular-nums; }
.cs-chip.on { background: #0075ff; color: #fff; }
.cs-chip.on .cs-ico { color: #fff; }
.cs-chip.on em { color: rgba(255,255,255,.8); }

/* seções e trilhos */
.cs-body { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.cs-secs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; min-width: 0; }
.cs-sec { min-width: 0; }
.cs-head { display: flex; align-items: center; gap: 16px; height: 32px; margin-bottom: 16px; }
.cs-title { display: flex; align-items: center; gap: 12px; min-width: 0; color: #f0f2f5; }
.cs-title b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -.33px; }
.cs-title .cs-chev { margin-left: -4px; color: #9aa1b1; }
.cs-tico { width: 24px; height: 24px; color: #9aa1b1; -webkit-mask-size: 20px; mask-size: 20px; }
.cs-arrows { margin-left: auto; display: flex; gap: 4px; }
.cs-arrows button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: rgba(179,182,189,.12); color: #f0f2f5; }
.cs-arrows button:hover:not(:disabled), .cs-cnav:hover { background: rgba(179,182,189,.18); }
.cs-arrows button:disabled { opacity: .5; cursor: default; }
.cs-rail { display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: smooth; }
.cs-rail::-webkit-scrollbar { display: none; }
.cs-rail > .cs-card { flex: 0 0 calc((100% - (var(--cs-n) - 1) * 4px) / var(--cs-n)); }
.cs-rail2 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: calc((100% - (var(--cs-n) - 1) * 4px) / var(--cs-n)); gap: 8px 4px; }
.cs-provrail { gap: 8px; }
.cs-provrail > .cs-prov { flex: 0 0 188px; }

/* card de jogo: capa quadrada do admin + nome e provedor, no mesmo 130x177 da 1win */
.cs-card { position: relative; display: flex; flex-direction: column; min-width: 0; aspect-ratio: 130 / 177; border-radius: 10px; overflow: hidden; background: #1d1e20; color: #f0f2f5; }
.cs-pic { position: relative; display: block; flex: 0 0 auto; aspect-ratio: 1; overflow: hidden; background: #1d1e20; }
.cs-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.cs-card:hover .cs-pic img { transform: scale(1.05); }
.cs-ph { position: absolute; inset: 0; display: none; place-items: center; padding: 8px; text-align: center; font-style: normal; font-size: 12px; line-height: 16px; font-weight: 700; color: #c9cdd6; background: linear-gradient(160deg, #2e3035, #1d1e20); overflow: hidden; }
.cs-noimg .cs-ph { display: grid; }
.cs-cap { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 8px; }
.cs-cap b, .cs-cap small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-cap b { font-size: 12px; line-height: 16px; font-weight: 600; }
.cs-cap small { font-size: 11px; line-height: 14px; color: #9aa1b1; }
.cs-new { position: absolute; top: 6px; left: 6px; padding: 1px 6px; border-radius: 999px; background: #ff4000; color: #fff; font-style: normal; font-size: 10px; line-height: 14px; font-weight: 600; }
.cs-rank { position: absolute; left: 6px; bottom: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: #0075ff; color: #fff; font-style: normal; font-size: 14px; line-height: 24px; font-weight: 700; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cs-best .cs-rank { left: 8px; bottom: 8px; background: #fff; color: #0075ff; }

/* esqueleto enquanto o admin responde (sem dado inventado) */
.cs-sk { pointer-events: none; }
.cs-card.cs-sk .cs-pic, .cs-chip.cs-sk, .cs-sk-t, .cs-prov.cs-sk { background: rgba(179,182,189,.08); animation: cs-pisca 1.2s ease-in-out infinite alternate; }
.cs-card.cs-sk .cs-cap b, .cs-card.cs-sk .cs-cap small { display: block; height: 8px; border-radius: 4px; background: rgba(179,182,189,.08); }
.cs-card.cs-sk .cs-cap b { width: 70%; }
.cs-card.cs-sk .cs-cap small { width: 45%; margin-top: 4px; }
.cs-chip.cs-sk { width: 112px; }
.cs-sk-t { display: block; width: 180px; height: 24px; border-radius: 8px; }
.cs-prov.cs-sk { height: 112px; }
@keyframes cs-pisca { from { opacity: .55; } to { opacity: 1; } }

/* grade (categoria, provedor, busca) */
.cs-ghead { display: flex; align-items: center; gap: 12px; min-height: 32px; margin-bottom: 16px; }
.cs-ghead h2 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -.33px; }
.cs-count { margin-left: auto; color: #9aa1b1; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.cs-provlogo { width: 98px; height: 40px; flex: 0 0 98px; border-radius: 8px; object-fit: cover; }
.cs-back { display: inline-flex; align-items: center; gap: 4px; height: 32px; margin-bottom: 12px; padding: 0 12px 0 8px; border-radius: 10px; background: rgba(179,182,189,.12); color: #f0f2f5; font-size: 14px; line-height: 20px; font-weight: 600; }
/* categoria: sem cabeçalho visível (o chip ativo mostra nome e total); grade a 52px dos chips, como na 1win */
.cs-gcat { position: relative; padding-top: 16px; }
.cs-gcat > .cs-ghead { position: absolute; top: 0; left: 0; width: 1px; height: 1px; min-height: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cs-grid { display: grid; grid-template-columns: repeat(var(--cs-n), minmax(0, 1fr)); gap: 8px 4px; }
.cs-more { display: grid; justify-items: center; gap: 12px; margin-top: 24px; text-align: center; }
.cs-more-t { margin: 0; color: #9aa1b1; font-size: 14px; line-height: 20px; }
.cs-bar { display: block; width: 130px; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(179,182,189,.24); }
.cs-bar b { display: block; height: 100%; border-radius: 2px; background: #0075ff; transition: width .3s ease; }
.cs-more-b { height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: #0075ff; color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; }
.cs-more-b:hover:not(:disabled) { background: #006eec; }
.cs-more-b:disabled { opacity: .5; cursor: default; }
.cs-pmatch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.cs-pmatch-t { margin-right: 4px; color: #9aa1b1; font-size: 12px; line-height: 16px; font-weight: 600; }
.cs-pmatch .cs-chip { height: 32px; padding: 0 12px; border-radius: 10px; }
.cs-empty { display: grid; justify-items: center; gap: 16px; padding: 40px 16px; border-radius: 16px; background: #1d1e20; color: #9aa1b1; font-size: 14px; line-height: 20px; text-align: center; }
.cs-empty p { margin: 0; max-width: 420px; }
.cs-gridbox > .cs-empty { margin-bottom: 0; }
.cs-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: rgba(179,182,189,.12); color: #f0f2f5; font-size: 14px; line-height: 20px; font-weight: 600; }

/* provedores */
.cs-pfilter { margin-bottom: 16px; max-width: 420px; }
.cs-provgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.cs-provgrid > .cs-empty { grid-column: 1 / -1; }
.cs-prov { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 12px; overflow: hidden; background: rgba(179,182,189,.12); color: #f0f2f5; }
.cs-prov:hover { background: rgba(179,182,189,.18); }
.cs-prov-art { position: relative; display: grid; place-items: center; aspect-ratio: 226 / 92; overflow: hidden; background: #1d1e20; }
.cs-prov-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-prov-art b { display: none; padding: 0 12px; text-align: center; font-size: 16px; line-height: 20px; font-weight: 700; color: #f0f2f5; overflow: hidden; }
.cs-prov-txt .cs-prov-art, .cs-prov-art.cs-semlogo { background: linear-gradient(135deg, #2e3035, #1d1e20); }
.cs-prov-txt .cs-prov-art b, .cs-prov-art.cs-semlogo b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cs-prov-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 8px 10px; }
.cs-prov-cap b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; font-weight: 600; }
.cs-prov-cap small { color: #9aa1b1; font-size: 12px; line-height: 16px; white-space: nowrap; }

/* jogo aberto: tela cheia por cima de tudo */
html.cs-lock, html.cs-lock body { overflow: hidden; }
.cs-play { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); background: #0d0d0e; color: #f0f2f5; }
.cs-pbar { flex: 0 0 auto; box-sizing: content-box; display: flex; align-items: center; gap: 12px; height: 56px; padding: env(safe-area-inset-top) 16px 0; background: #1d1e20; border-bottom: 1px solid #2f3033; }
.cs-pback { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px 0 8px; border: 0; border-radius: 10px; background: rgba(179,182,189,.12); color: #f0f2f5; font-size: 14px; line-height: 20px; font-weight: 600; }
.cs-pname { flex: 1; min-width: 0; display: grid; }
.cs-pname b, .cs-pname small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-pname b { font-size: 14px; line-height: 20px; font-weight: 600; }
.cs-pname small { color: #9aa1b1; font-size: 12px; line-height: 16px; }
.cs-pbal { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: rgba(179,182,189,.12); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-pbal .cs-ico { width: 16px; height: 16px; color: #9aa1b1; }
.cs-pbtn { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: rgba(179,182,189,.12); color: #f0f2f5; }
.cs-pback:hover, .cs-pbtn:hover:not(:disabled) { background: rgba(179,182,189,.2); }
.cs-pbtn:disabled { opacity: .5; cursor: default; }
.cs-pstage { position: relative; flex: 1; min-height: 0; background: #000; }
.cs-frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; background: #000; }
.cs-pload { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; color: #9aa1b1; font-size: 14px; line-height: 20px; text-align: center; }
.cs-pfora b { color: #f0f2f5; font-size: 16px; line-height: 22px; }
.cs-pask b { max-width: 320px; color: #f0f2f5; font-size: 18px; line-height: 24px; font-weight: 600; }
.cs-pask .cs-more-b { min-width: 160px; margin-top: 4px; }
.cs-pask-art { width: 124px; height: 124px; border-radius: 16px; overflow: hidden; background: #1d1e20; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.cs-pask-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-spin { width: 32px; height: 32px; border: 3px solid rgba(179,182,189,.24); border-top-color: #0075ff; border-radius: 50%; animation: cs-gira .8s linear infinite; }
@keyframes cs-gira { to { transform: rotate(360deg); } }

.cs-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 32px));
  width: max-content;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: #141415;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .2s ease, transform .2s ease;
}
.cs-toast.on { opacity: 1; transform: translate(-50%, 0); }
.cs-toast.cs-err { box-shadow: inset 4px 0 0 #ff614d, 0 8px 24px rgba(0,0,0,.35); }

@media (hover: none) {
  .cs-rail, .cs-chips { scroll-snap-type: x mandatory; scroll-behavior: auto; }
  .cs-rail > *, .cs-chips > * { scroll-snap-align: start; }
  .cs-card:hover .cs-pic img { transform: none; }
}

@media (max-width: 800px) {
  body.is-casino .stage { padding: 12px var(--gutter) 24px; }
  .cs-page { gap: 24px; }
  .cs-body, .cs-secs { gap: 24px; }
  .cs-seg { justify-self: center; }
  .cs-hero { grid-template-columns: minmax(0, 1fr); height: 164px; }
  .cs-best { display: none; }
  .cs-hero-main { border-radius: 20px; }
  .cs-slide-txt { gap: 6px; max-width: 58%; padding: 0 20px; }
  .cs-slide-txt b { font-size: 20px; line-height: 24px; letter-spacing: -.3px; }
  .cs-slide-txt small { font-size: 12px; line-height: 16px; }
  .cs-slide-go { display: none; }
  .cs-slide-art { right: 16px; width: 128px; height: 128px; margin-top: -64px; border-radius: 16px; }
  .cs-dots { left: 20px; right: auto; bottom: 14px; width: auto; padding: 5px 8px; border-radius: 999px; background: rgba(20,20,21,.4); }
  /* busca e chips ficam presos sob o topo ao rolar, como na 1win */
  .cs-find { position: sticky; top: var(--top); z-index: 6; gap: 8px; margin: -8px -16px 0; padding: 8px 16px 5px; background: #141415; }
  .cs-gcat { padding-top: 12px; }
  .cs-findrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cs-provbtn { padding: 0 12px; }
  .cs-chipbar::before, .cs-chipbar::after, .cs-cnav { display: none; }
  .cs-chips { margin: -4px -16px; padding: 4px 16px; scroll-padding-inline: 16px; }
  .cs-chip { height: 36px; }
  .cs-chip .cs-ico { width: 16px; height: 16px; margin: 0; }
  .cs-head { margin-bottom: 12px; }
  .cs-title { gap: 8px; }
  .cs-title b { font-size: 16px; line-height: 22px; letter-spacing: -.12px; }
  .cs-tico { width: 24px; height: 24px; -webkit-mask-size: 20px; mask-size: 20px; }
  .cs-rail { margin: 0 -16px; padding: 0 16px; scroll-padding-inline: 16px; }
  .cs-provrail > .cs-prov { flex-basis: 160px; }
  .cs-ghead h2 { font-size: 18px; line-height: 22px; }
  .cs-count { font-size: 12px; line-height: 16px; }
  .cs-provgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cs-pfilter { max-width: none; }
  .cs-pbar { gap: 8px; height: 48px; padding: env(safe-area-inset-top) 8px 0; }
  .cs-pback { width: 36px; padding: 0; justify-content: center; }
  .cs-pback span { display: none; }
  .cs-pname b { font-size: 13px; line-height: 18px; }
  .cs-pname small { font-size: 11px; line-height: 14px; }
  .cs-pbal { gap: 6px; padding: 0 10px; font-size: 13px; }
  .cs-toast { bottom: 76px; }
}
