/* Cassino — vitrine (busca, categorias, estúdios, fileiras e grade) e tela do jogo em iframe.
   Capas com proporção fixa 3:4 e fundo de espera: a página não "pula" enquanto as imagens chegam. */
.cs { --csg: var(--cx-gold, var(--gold, #e8b867)); --csp: var(--panel, #111827); --csp2: var(--panel2, #182234); --csl: var(--line, rgba(255, 255, 255, .1)); padding-bottom: 24px; }
.cs-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 14px; border-radius: 20px; border: 1px solid rgba(215, 172, 85, .28);
  background: radial-gradient(600px 220px at 12% 0, rgba(255, 61, 154, .18), transparent 70%), radial-gradient(500px 200px at 90% 120%, rgba(232, 184, 103, .16), transparent 70%), linear-gradient(135deg, #1a0a1f, #0b1020 60%); }
.cs-hero.sk { height: 96px; }
.cs-ttl { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cs-ttl > i { font-size: 34px; color: var(--csg); filter: drop-shadow(0 0 14px rgba(232, 184, 103, .45)); }
.cs-ttl h1 { font-family: var(--serif, var(--display)); font-size: 30px; letter-spacing: .04em; background: linear-gradient(180deg, #fff3c9, var(--csg)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-ttl small { color: var(--muted); font-size: 13px; }
.cs-search { position: relative; flex: 1; max-width: 420px; min-width: 220px; display: flex; align-items: center; }
.cs-search > i { position: absolute; left: 14px; color: var(--muted); font-size: 17px; pointer-events: none; }
.cs-search input { width: 100%; height: 46px; padding: 0 40px 0 42px; border-radius: 14px; border: 1px solid var(--csl); background: rgba(3, 6, 14, .55); outline: none; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.cs-search input::-webkit-search-cancel-button { display: none; }
.cs-search input:focus { border-color: var(--csg); box-shadow: 0 0 0 3px rgba(232, 184, 103, .16); }
.cs-search button { position: absolute; right: 8px; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); }
.cs-search button:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.cs-warn { display: flex; gap: 8px; align-items: center; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: rgba(232, 184, 103, .1); border: 1px solid rgba(232, 184, 103, .3); color: #ffe1a2; font-size: 13.5px; }

/* categorias e estúdios: faixas roláveis no celular */
.cs-cats, .cs-provs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 10px; scroll-margin-top: calc(var(--cx-head, 64px) + 10px); }
.cs-cats::-webkit-scrollbar, .cs-provs::-webkit-scrollbar, .cs-row::-webkit-scrollbar { display: none; }
.cs-cats button, .cs-provs button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--csl); background: var(--csp); color: var(--muted); font: 700 13.5px var(--body); white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.cs-cats button i { font-size: 16px; color: var(--csg); }
.cs-provs button { height: 34px; padding: 0 13px; font-size: 12.5px; background: transparent; }
.cs-provs button em { font-style: normal; opacity: .6; font-size: 11.5px; }
.cs-cats button:hover, .cs-provs button:hover { color: var(--text); border-color: rgba(232, 184, 103, .4); }
.cs-cats button.on, .cs-provs button.on { background: linear-gradient(180deg, #ffe7a3, var(--csg)); color: #2a1a04; border-color: transparent; }
.cs-cats button.on i { color: #2a1a04; }
.cs-provs { margin-bottom: 18px; }

/* seções */
.cs-sec { margin-bottom: 22px; }
.cs-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cs-sec-h h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.cs-sec-h h3 i { color: var(--csg); }
.cs-sec-h h3 small { font: 600 12.5px var(--body); color: var(--muted); margin-left: 4px; }
.cs-more { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 10px; background: var(--csp); border: 1px solid var(--csl); color: var(--csg); font: 700 12.5px var(--body); }
.cs-more em { font-style: normal; color: var(--muted); }
.cs-more:hover { border-color: var(--csg); }
.cs-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 6 * 12px) / 7); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.cs-row > * { scroll-snap-align: start; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; }
.cs-sentinel { height: 2px; }

/* capa do jogo */
.cs-g { display: flex; flex-direction: column; gap: 6px; min-width: 0; content-visibility: auto; contain-intrinsic-size: 150px 240px; }
.cs-art { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: linear-gradient(110deg, #141c2e 30%, #1e2840 45%, #141c2e 60%) 0 0 / 300% 100%; animation: csShim 1.3s linear infinite; border: 1px solid var(--csl); transition: transform .2s var(--ease-out, ease), box-shadow .2s, border-color .2s; }
.cs-art.ok { animation: none; background: #0c0a14; }
.cs-art img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.cs-art.ok img { opacity: 1; }
.cs-art.noimg img { display: none; }
.cs-ph { position: absolute; inset: 0; display: none; place-items: center; padding: 10px; text-align: center; font: 700 14px var(--display); background: linear-gradient(160deg, #2a1d40, #0c0814); }
.cs-art.noimg .cs-ph { display: grid; }
.cs-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 8, 18, .45); opacity: 0; transition: opacity .2s; }
.cs-play i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; color: #2a1a04; background: linear-gradient(180deg, #ffe7a3, var(--csg)); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); transform: scale(.8); transition: transform .2s var(--spring, ease); }
.cs-g:hover .cs-art { transform: translateY(-3px); border-color: rgba(232, 184, 103, .55); box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
.cs-g:hover .cs-play { opacity: 1; }
.cs-g:hover .cs-play i { transform: scale(1); }
.cs-tag { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font: 800 10px var(--body); letter-spacing: .06em; font-style: normal; }
.cs-tag.live { background: rgba(5, 8, 18, .78); color: #fff; }
.cs-tag.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); animation: csPulse 1.6s infinite; }
.cs-tag.hot { padding: 4px 6px; background: linear-gradient(180deg, #ff9a2e, #e8452e); color: #fff; font-size: 12px; }
.cs-n { font: 700 13px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-p { margin-top: -5px; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-g.sk .cs-art { border-color: transparent; }
.cs-foot { margin-top: 26px; color: var(--dim, #65728b); font-size: 12px; text-align: center; }
@keyframes csShim { to { background-position: -300% 0; } }
@keyframes csPulse { 70% { box-shadow: 0 0 0 7px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }

@media (max-width: 1100px) { .cs-row { grid-auto-columns: calc((100% - 4 * 12px) / 5); } }
@media (max-width: 760px) {
  .cs-hero { padding: 14px; }
  .cs-ttl h1 { font-size: 24px; }
  .cs-search { max-width: none; min-width: 100%; }
  .cs-row { grid-auto-columns: 31%; gap: 10px; }
  .cs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 9px; }
  .cs-n { font-size: 12px; }
  .cs-play { display: none; }
}
@media (max-width: 340px) { .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-row { grid-auto-columns: 42%; } }

/* tela do jogo: ocupa a altura livre (body.game-full) */
.csx { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; }
.csx-bar { display: flex; align-items: center; gap: 8px; flex: none; }
.csx-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.csx-ttl b { font: 700 16px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csx-ttl small { color: var(--muted); font-size: 12px; }
.csx-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; padding: 0 12px; border-radius: 12px; background: var(--panel, #111827); border: 1px solid var(--line, rgba(255, 255, 255, .1)); color: var(--text); font: 700 13px var(--body); }
.csx-btn i { font-size: 17px; }
.csx-btn:hover { border-color: var(--cx-gold, #e8b867); color: var(--cx-gold, #e8b867); }
.csx-stage { position: relative; flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid rgba(215, 172, 85, .25); }
.csx-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.csx-over { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.csx-over[hidden] { display: none; }
.csx-bg { position: absolute; inset: -20px; background: #0b1020 center / cover; filter: blur(18px) brightness(.35); }
.csx-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 420px; text-align: center; }
.csx-card > img { width: 120px; height: 160px; object-fit: cover; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); border: 1px solid rgba(232, 184, 103, .4); }
.csx-msg { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.csx-msg b { font: 700 17px var(--display); }
.csx-msg small { color: var(--muted); }
.csx-msg .btn { min-width: 200px; justify-content: center; }
.csx-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.csx-ic { font-size: 38px; color: var(--cx-gold, #e8b867); }
.csx-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--cx-gold, #e8b867); animation: csSpin .8s linear infinite; }
@keyframes csSpin { to { transform: rotate(360deg); } }
.csx-stage:fullscreen { border-radius: 0; border: 0; }
@media (max-width: 760px) {
  .csx { gap: 6px; }
  .csx-btn span { display: none; }
  .csx-stage { border-radius: 12px; }
  .csx-card > img { width: 96px; height: 128px; }
}

/* modo demonstração */
.cs-tag.demo { left: auto; right: 8px; background: rgba(47, 224, 138, .9); color: #04210f; }
.csx-demo { flex: none; padding: 6px 10px; border-radius: 999px; background: rgba(47, 224, 138, .14); border: 1px solid rgba(47, 224, 138, .45); color: #7dffbe; font: 800 11px var(--body); letter-spacing: .04em; white-space: nowrap; }
.csx-demo[hidden], .csx-btn[hidden] { display: none; }
@media (max-width: 760px) { .csx-demo { font-size: 10px; padding: 5px 8px; } }

/* exclusivos da casa: cards horizontais (arte 760×520) */
/* exclusivos: mesmo card retrato (3:4) dos jogos de estúdio, com selo da casa */
.cs-own-g .cs-art { border-color: rgba(232, 184, 103, .45); }
.cs-own-g .cs-art::after { content: "EXCLUSIVO"; position: absolute; right: 8px; top: 8px; padding: 3px 7px; border-radius: 6px; font: 900 9.5px var(--display); letter-spacing: .08em; color: #2a1a04; background: linear-gradient(180deg, #ffe7a3, #e8b867); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.cs-own-g .cs-tag.hot { padding: 3px 8px; font-size: 10px; letter-spacing: .06em; }
@media (max-width: 760px) { .cs-own .cs-sec-h h3 small { display: block; margin: 2px 0 0; } .cs-own .cs-sec-h h3 { flex-wrap: wrap; } }

/* exclusivos em grade (filtro "Exclusivos" e busca): mesmo card horizontal, colunas que se ajustam à tela */
.cs-own-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .cs-own-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .cs-own-grid .cs-n { font-size: 12.5px; } .cs-own-grid .cs-p { font-size: 10.5px; } }
