[hidden] { display: none !important; }

swiper-container { display: block; min-width: 0; }
swiper-slide { display: block; flex: 0 0 auto; width: var(--preview-slide-width, auto); max-width: 100%; }
.preview-swipe-track {
  display: flex;
  gap: var(--preview-slide-gap, 8px);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.preview-swipe-track > swiper-slide { scroll-snap-align: start; }
[data-hero] { width: 100%; position: relative; }
[data-hero] .preview-swipe-track { display: block; overflow: hidden; }
[data-hero] swiper-slide { width: 100%; }
.preview-slide-dots {
  position: absolute;
  right: 24px;
  bottom: 12px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.preview-slide-dots button {
  background: rgba(255,255,255,.34);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  height: 3px;
  width: 26px;
  padding: 0;
}
.preview-slide-dots button[aria-current="true"] { background: var(--swiper-bullet-active-color, #fff); }
.preview-slide-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.preview-notice {
  width: min(28rem, calc(100vw - 2rem));
  padding: 24px;
  color: #fff;
  background: #222939;
  border: 1px solid #caab72;
  border-radius: 12px;
}
.preview-notice::backdrop { background: rgb(12 15 23 / 75%); }
.preview-notice h2 { margin-top: 0; color: #e4d5b9; }
.preview-notice button {
  background: #caab72;
  color: #1a202c;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  padding: 9px 20px;
  font: inherit;
}

.preview-menu-toggle { cursor: pointer; }
.preview-responsive-picture { display: contents; }
@media (min-width: 600px) { .preview-mobile-copy { display: none !important; } }
.preview-nav-open .sidenav { transform: none; visibility: visible !important; }
.preview-nav-open .mat-drawer-content { overflow: hidden; }
.preview-nav-open .mat-drawer-backdrop { visibility: visible; background: rgb(0 0 0 / 60%); }

@media (prefers-reduced-motion: reduce) {
  .preview-swipe-track { scroll-behavior: auto; }
}

.preview-menu-toggle:focus-visible { outline: 2px solid var(--theme-primary-color); outline-offset: 4px; }
.news-content.ready { display: flex !important; align-items: center; width: max-content; padding-inline-start: 0 !important; }
@media (max-width: 599px) {
  .preview-swipe-track { gap: 8px; }
  .preview-swipe-track > swiper-slide:not([hidden]) {
    width: var(--preview-mobile-slide-width, auto);
  }
  [data-hero] .preview-swipe-track > swiper-slide:not([hidden]) { width: 100%; }
  .preview-mobile-copy { display: revert; }
  .preview-desktop-copy { display: none !important; }
  .preview-slide-dots {
    left: 50%;
    right: auto;
    bottom: 8px;
    gap: 4px;
  }
  .preview-slide-dots button { width: clamp(18px, 8vw, 32px); }
}

@media (prefers-reduced-motion: reduce) {
  .news-content.ready { animation: none !important; }
}

.preview-details-body { margin-bottom: 16px; }
.preview-details-body a { color: var(--theme-gold-100, #e4d5b9); }
.preview-filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-filter-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid #70634d;
  border-radius: 24px;
  padding: 6px 14px;
  text-decoration: none;
}
.preview-filter-list a[aria-current="page"] { background: #caab72; color: #1a202c; }
.preview-promotion-art { display: block; width: 100%; border-radius: 8px; }
.preview-catalog-status { margin: 16px 0; color: var(--theme-grey-50); }
.preview-category-filtered .preview-swipe-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  width: 100%;
  overflow: visible;
}
.promotions-container.preview-category-filtered .preview-swipe-track {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.preview-category-filtered swiper-slide:not([hidden]) { width: 100% !important; }
.preview-category-filtered :is(.swiper-custom-pagination, .header-swiper-button-wrapper, .secondary-swiper-nav) { display: none; }
.preview-desktop-view app-footer .footer-desktop-view-toggle-row { display: flex; }
app-casino-game-search.preview-search-open .search-input-wrapper {
  display: block !important;
  visibility: visible;
  opacity: 1;
}
@media (max-width: 599px) {
  .preview-slide-dots { bottom: 16px; gap: 8px; }
  .preview-slide-dots button { position: relative; }
  .preview-slide-dots button::after { content: ''; position: absolute; inset: -10px -2px; }
  app-casino-game-search.preview-search-open .search-input-wrapper {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 10;
    background: var(--theme-blue-700);
    padding: 8px 16px;
    min-width: 100%;
    transform: none;
  }
  .casino-home-top-bar:has(.preview-search-open) {
    position: relative;
    margin-bottom: 56px;
  }
  .preview-details { max-height: min(80dvh, 44rem); overflow: auto; }
}

.preview-language {
  position: relative;
  flex: 0 0 auto;
  color: var(--theme-grey-50, #f4f4f5);
  z-index: 15;
}
.preview-language summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 48px;
  min-height: 34px;
  padding: 4px 8px;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--theme-blue-500, #4e5461);
  border-radius: 4px;
  background: var(--theme-blue-700, #2d3443);
  font-size: .75rem;
  font-weight: 700;
}
.preview-language summary::-webkit-details-marker { display: none; }
.preview-language summary::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}
.preview-language nav {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 116px;
  padding: 4px;
  border: 1px solid var(--theme-blue-500, #4e5461);
  border-radius: 6px;
  color: var(--theme-grey-50, #f4f4f5);
  background: var(--theme-blue-800, #222939);
  box-shadow: 0 8px 16px rgb(0 0 0 / 28%);
}
.preview-language nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  color: inherit;
}
.preview-language nav a[aria-current="page"] { background: #caab72; color: #1a202c; }
.preview-language nav a:hover:not([aria-current="page"]) { background: var(--theme-blue-700); }
.preview-language-mobile { display: none; }
.preview-language-standalone { position: fixed; top: 12px; right: 12px; }
.preview-source-language { color: var(--theme-grey-200); }
html[lang="th"] {
  --preview-thai-font: Lato, "Noto Sans Thai", "Thonburi", "Leelawadee UI", Tahoma, sans-serif;
}
html[lang="th"] body { --app-language-font-family: var(--preview-thai-font); font-family: var(--preview-thai-font); }
html[lang="th"] :is(button, input, select, textarea, .banner-bonus, .promotion-content) { font-family: var(--preview-thai-font); }

@media (max-width: 599px) {
  .preview-language-mobile { display: block; margin-inline-start: auto; }
  .preview-language-mobile summary { min-height: 40px; min-width: 44px; }
  app-secondary-header .secondary-header:has(.preview-language-mobile) .news { flex: 1; min-width: 0; }
  html[lang="th"] app-header :is(#main-login-button, #main-register-button) { padding-inline: .65rem; }
  html[lang="th"] [data-hero] .banner-bonus { font-size: clamp(.87rem, 4.1vw, 1.15rem); line-height: 1.3; }
}
