/* Casino lobby */

.cas-page {
  padding-bottom: 36px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cas-top {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin: 18px 0 14px;
}

.cas-title h1 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.cas-title p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  max-width: 34ch;
}

.cas-banners {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 168px;
  background: var(--card);
}

.cas-banners .hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cas-banners .hero-track::-webkit-scrollbar {
  display: none;
}

.cas-slide {
  position: relative;
  min-width: 100%;
  scroll-snap-align: start;
  aspect-ratio: 1280 / 360;
  min-height: 180px;
  isolation: isolate;
}

.cas-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cas-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 14, 28, 0.78) 0%, rgba(6, 14, 28, 0.35) 42%, rgba(6, 14, 28, 0.08) 70%, transparent 100%);
  pointer-events: none;
}

.cas-slide-copy {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  max-width: min(420px, 58%);
}

.cas-slide-copy .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #ffd76a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cas-slide-copy h2 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.cas-slide-copy p {
  color: #d7e4f5;
  font-size: 14px;
  margin-bottom: 14px;
  max-width: 36ch;
}

.cas-banners .dots {
  left: 14px;
  right: auto;
  bottom: 12px;
}

.cas-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) 72px;
  gap: 14px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cas-layout > * {
  min-width: 0;
  max-width: 100%;
}

.cas-center {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.cas-left,
.cas-rail {
  position: sticky;
  top: calc(var(--header) + 10px);
  max-height: calc(100vh - var(--header) - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #2a4568 transparent;
}

.cas-panel {
  background: #101e33;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 10px;
}

.cas-panel-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 6px 10px;
}

.cas-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cas-cat {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 8px;
  border-radius: 10px;
  font-size: 13px;
}

.cas-cat img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.cas-cat .count {
  color: var(--muted);
  font-size: 12px;
}

.cas-cat:hover {
  background: rgba(255, 255, 255, 0.04);
}

.cas-cat[aria-current="true"] {
  background: rgba(5, 129, 255, 0.16);
  color: #8ec7ff;
}

.cas-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0e1b2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  color: var(--muted);
}

.cas-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
}

.cas-search .fav {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
}

.cas-row {
  margin-bottom: 22px;
}

.cas-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cas-row-head h2 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cas-row-head h2 img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.cas-row-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.cas-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #13233a;
  color: var(--text);
  display: inline-grid;
  place-items: center;
}

.cas-nav-btn:hover {
  border-color: rgba(5, 129, 255, 0.5);
  color: #8ec7ff;
}

.cas-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(140px, calc((100% - 60px) / 7.2), 170px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  max-width: 100%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cas-grid::-webkit-scrollbar {
  display: none;
}

.cas-tile {
  position: relative;
  scroll-snap-align: start;
  color: var(--text);
  min-width: 0;
}

.cas-tile img {
  width: 100%;
  aspect-ratio: 320 / 210;
  object-fit: cover;
  border-radius: 12px;
  background: #13233a;
}

.cas-tile .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold);
  color: #1a1408;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  border-radius: 6px;
}

.cas-tile .play {
  position: absolute;
  inset: auto auto calc(42px + 8%) 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(5, 129, 255, 0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cas-tile:hover .play {
  opacity: 1;
}

.cas-tile-meta {
  margin-top: 8px;
  text-align: center;
}

.cas-tile-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.cas-tile-meta span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.cas-providers {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: thin;
}

.cas-providers a,
.cas-providers span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 120px;
  height: 56px;
  padding: 8px 14px;
  background: #13233a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.cas-providers img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
}

.cas-rail-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #101e33;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 8px 6px;
}

.cas-rail a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px;
  border-radius: 10px;
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.cas-rail a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.cas-rail img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* SEO block */
.cas-seo {
  margin-top: 28px;
}

.cas-seo-box {
  position: relative;
  background: #0f1c30;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 22px 22px 18px;
}

.cas-seo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cas-seo-head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
}

.cas-seo-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(5, 129, 255, 0.45);
  background: rgba(5, 129, 255, 0.12);
  color: #9ed0ff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cas-seo-toggle:hover {
  background: rgba(5, 129, 255, 0.22);
  border-color: rgba(5, 129, 255, 0.7);
}

.cas-seo-toggle .chev {
  display: inline-block;
  transition: transform 0.28s ease;
}

.cas-seo-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.cas-seo-body {
  position: relative;
  overflow: hidden;
  max-height: 240px;
  transition: max-height 0.45s ease;
}

.cas-seo-body.is-open {
  max-height: 4000px;
}

.cas-seo-body:not(.is-open)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 28, 48, 0), #0f1c30 88%);
}

.cas-seo-body h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.cas-seo-body p {
  color: #c8d4e6;
  margin-bottom: 10px;
  max-width: 78ch;
}

.cas-seo-body ul {
  margin: 8px 0 14px 18px;
  list-style: disc;
  color: #c8d4e6;
}

.cas-seo-body li {
  margin: 4px 0;
}

.cas-seo-body a {
  color: #58b0ff;
}

.cas-table-wrap {
  overflow-x: auto;
  margin: 16px 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cas-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: #0c1728;
}

.cas-table th,
.cas-table td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.cas-table th {
  background: #13253f;
  color: #f2f6fc;
  font-weight: 650;
}

.cas-table td {
  color: #d5deea;
}

.cas-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.cas-faq {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.cas-faq details {
  background: #121f35;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 4px 14px;
}

.cas-faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}

.cas-faq details p {
  padding-bottom: 12px;
  color: var(--muted);
}

@media (max-width: 1440px) {
  .cas-grid {
    grid-auto-columns: minmax(140px, calc((100% - 60px) / 7));
  }
}

@media (max-width: 1100px) {
  .cas-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .cas-rail {
    display: none;
  }

  .cas-grid {
    grid-auto-columns: minmax(136px, calc((100% - 40px) / 5));
  }
}

@media (max-width: 860px) {
  .cas-top {
    grid-template-columns: 1fr;
  }

  .cas-layout {
    grid-template-columns: 1fr;
  }

  .cas-left {
    position: static;
    max-height: none;
  }

  .cas-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .cas-seo-head {
    flex-direction: column;
  }

  .cas-grid {
    grid-auto-columns: minmax(140px, calc((100% - 20px) / 3));
  }
}

@media (max-width: 560px) {
  .cas-cats {
    grid-template-columns: 1fr;
  }

  .cas-grid {
    grid-auto-columns: minmax(142px, 68vw);
  }
}
