/* ==========================================================================
   888starz — Slots Lobby (Uzbek localisation)
   Clean, lightweight, responsive CSS (no external dependencies)
   ========================================================================== */

/* -------------------------- Design tokens -------------------------- */
:root {
  --bg: #17181b;
  --bg-soft: #1c1d20;
  --bg-elevated: #232427;
  --bg-card: #262729;
  --bg-card-2: #2b2c2f;
  --border: #333438;
  --border-soft: #2c2d30;

  --red: #e01a22;
  --red-dark: #8a0f12;

  --green: #17b94d;
  --green-dark: #129c40;

  --text: #ffffff;
  --text-muted: #b7b7ba;
  --text-dim: #86878a;
  --text-faint: #616264;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1680px;

  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ------------------------------ Reset -------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

.icon {
  display: inline-block;
  fill: currentColor;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ------------------------------ Buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: filter 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn--green {
  background: var(--green);
  color: #fff;
  text-transform: uppercase;
}

.btn--dark {
  background: #3a3b3e;
  color: #fff;
  text-transform: uppercase;
}

.btn--dark:hover {
  background: #46474a;
}

/* ============================== HEADER ================================ */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--bg-elevated);
}

.topbar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-soft);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 52px;
}

.logo {
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  height: 22px;
  width: auto;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.chevron-down {
  width: 10px;
  height: 10px;
  opacity: 0.7;
}

/* Main nav */
.mainnav {
  background: linear-gradient(180deg, #b41017, #7a0d12);
  position: relative;
}

.mainnav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
}

.mainnav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mainnav__list::-webkit-scrollbar {
  display: none;
}

.mainnav__list li {
  flex-shrink: 0;
}

.mainnav__list a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #f2d9da;
  white-space: nowrap;
}

.mainnav__list a:hover {
  color: #fff;
}

.mainnav__list li.is-active a {
  background: var(--red);
  color: #fff;
  border-radius: 4px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22e06b;
  box-shadow: 0 0 0 3px rgba(34, 224, 107, 0.25);
  flex-shrink: 0;
}

.star-ico {
  width: 12px;
  height: 12px;
  color: #ffd23f;
}

/* Sub tabs */
.subtabs {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}

.subtabs__list {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subtabs__list::-webkit-scrollbar {
  display: none;
}

.subtabs__list li {
  flex-shrink: 0;
}

.subtabs__list a {
  display: block;
  padding: 14px 2px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.subtabs__list li.is-active a {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ============================== BREADCRUMB ============================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 4px;
  font-size: 12px;
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb [aria-current="page"] {
  color: var(--text-muted);
}

/* ================================ BANNER ================================ */
.banner {
  padding-top: 20px;
}

.banner-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  aspect-ratio: 1200 / 156;
  object-fit: cover;
}

.slider {
  position: relative;
}

.slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.slider__track {
  display: flex;
  transition: transform 0.4s ease;
}

.slider__slide {
  flex: 0 0 100%;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.slider__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.slider__dots button.is-active {
  background: var(--green);
  transform: scale(1.3);
}

/* ================================= LOBBY ================================ */
.lobby {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 24px 40px;
}

/* -- Sidebar -- */
.sidebar {
  min-width: 0;
}

.sidebar__quick {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.quick-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.quick-btn:hover {
  color: #fff;
  border-color: var(--border);
}

.sidebar__title {
  background: linear-gradient(90deg, #3a1214, transparent);
  border-left: 3px solid var(--red);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.collections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
  margin-bottom: 24px;
}

.collections-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.collections-list li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 8px 8px 20px;
  position: relative;
  font-size: 12.5px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.collections-list li button::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  transform: translateY(-50%);
}

.collections-list li button:hover {
  color: #fff;
  background: var(--bg-elevated);
}

.collections-list li.is-active button {
  color: var(--green);
  font-weight: 700;
}

.collections-list li.is-active button::before {
  background: var(--green);
}

.provider-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  margin-bottom: 14px;
}

.provider-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 12.5px;
}

.provider-search input::placeholder {
  color: var(--text-dim);
}

.provider-search input:focus {
  outline: none;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.provider-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.provider-tile:hover {
  border-color: var(--border);
  background: var(--bg-card);
}

.provider-tile img {
  width: 100%;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.provider-tile:hover img {
  opacity: 1;
}

.provider-tile.is-hidden {
  display: none;
}

.providers-grid--full {
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.providers-grid--full .provider-tile {
  padding: 16px 10px;
}

.providers-grid--full .provider-tile img {
  height: 26px;
}

/* -- Content -- */
.lobby__content {
  min-width: 0;
}

.lobby-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  margin-bottom: 24px;
}

.lobby-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
}

.lobby-search input::placeholder {
  color: var(--text-dim);
}

.lobby-search input:focus {
  outline: none;
}

.game-section {
  margin-bottom: 30px;
}

.game-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.game-section__head h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.show-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.show-all:hover {
  filter: brightness(1.08);
}

.game-scroller {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-scroller__viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.game-scroller__viewport::-webkit-scrollbar {
  display: none;
}

.scroller-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-card-2);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.15s ease;
}

.scroller-arrow:hover {
  background: #3a3b3e;
}

.game-grid {
  display: grid;
  gap: 10px;
}

.game-grid--scroll {
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-columns: 192px;
}

.game-grid--wrap {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.game-card {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}

.game-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 301 / 180;
  object-fit: cover;
}

.hidden-card {
  display: none;
}

.game-grid--wrap.is-expanded .hidden-card {
  display: block;
}

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* ============================ INFO SECTION ============================ */
.info-section {
  background: var(--bg);
  padding: 24px 0 56px;
}

.info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.info-columns > div {
  min-width: 0;
}

.info-columns h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.info-columns h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 22px 0 10px;
}

.info-columns p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.info-columns ol,
.info-columns ul.bullets {
  margin: 0 0 14px;
  padding-left: 18px;
}

.info-columns ol li,
.info-columns ul.bullets li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 4px;
}

.info-columns strong {
  color: #f0f0f0;
}

/* ============================ ACCORDION ============================ */
.accordion-standalone {
  padding-bottom: 56px;
}

.accordion {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--border-soft);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: none;
  padding: 18px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
}

.accordion-header .chevron-down {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.accordion-item.is-open .accordion-header .chevron-down {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  transition: max-height 0.3s ease;
}

.accordion-item.is-open .accordion-panel {
  max-height: 1400px;
}

.accordion-panel__inner {
  padding: 22px 24px 30px;
  border-top: 1px solid var(--border-soft);
}

.accordion-panel__inner > p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-list dt {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.faq-list dd {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ================================ FOOTER ================================ */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  padding: 40px 24px;
}

.footer-columns h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

.footer-columns ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-columns a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-columns a:hover {
  color: #fff;
}

.footer-columns .apps-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-columns .apps-link .icon {
  width: 15px;
  height: 15px;
}

.footer-notice {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 16px;
  align-items: stretch;
  padding: 0 24px 24px;
}

.footer-badge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.footer-badge-card img {
  height: 74px;
  width: auto;
}

.footer-text-card {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-text-card p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.footer-text-card a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

.footer-copy p {
  margin-bottom: 4px;
}

.footer-copy a {
  color: var(--green);
  text-decoration: underline;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3a3b3e;
  color: #fff;
}

.social-icons a:hover {
  background: var(--green);
}

.social-icons .icon {
  width: 15px;
  height: 15px;
}

.age-badge {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

.mobile-version {
  width: 100%;
  margin: 0 0 24px;
  padding: 14px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}

.support-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow-1);
  z-index: 50;
}

.support-fab:hover {
  background: var(--green);
  border-color: var(--green);
}

/* ================================================================
   RESPONSIVE — Tablet
   ================================================================ */
@media (max-width: 1100px) {
  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-notice {
    grid-template-columns: 1fr 1fr;
  }

  .footer-text-card:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  .providers-grid--full {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 991px) {
  .container {
    padding: 0 18px;
  }

  .lobby {
    grid-template-columns: 1fr;
    padding: 24px 18px 32px;
  }

  .sidebar {
    order: 2;
  }

  .lobby__content {
    order: 1;
  }

  .collections {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .game-grid--wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-columns {
    gap: 28px;
  }
}

/* ================================================================
   RESPONSIVE — Mobile
   ================================================================ */
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  /* Header */
  .topbar__inner {
    height: 56px;
    gap: 8px;
  }

  .logo img {
    height: 16px;
  }

  .btn.btn--green,
  .btn.btn--dark {
    padding: 8px 10px;
    font-size: 10.5px;
  }

  .mainnav__list a {
    height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .subtabs__list {
    gap: 18px;
  }

  .subtabs__list a {
    font-size: 11.5px;
    padding: 12px 2px;
  }

  .breadcrumb {
    padding-top: 12px;
    font-size: 11px;
  }

  /* Banner */
  .banner {
    padding-top: 14px;
  }

  /* Lobby */
  .lobby {
    padding: 18px 16px 28px;
    gap: 20px;
  }

  .sidebar__quick {
    margin-bottom: 16px;
  }

  .quick-btn {
    padding: 12px 6px;
    font-size: 10px;
  }

  .sidebar__title {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .collections {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
  }

  .collections-list li button {
    font-size: 12px;
    padding: 7px 6px 7px 16px;
  }

  .providers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .providers-grid--full {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .providers-grid--full .provider-tile {
    padding: 12px 8px;
  }

  .providers-grid--full .provider-tile img {
    height: 20px;
  }

  .lobby-search {
    padding: 10px 14px;
    margin-bottom: 18px;
  }

  .game-section {
    margin-bottom: 22px;
  }

  .game-section__head h2 {
    font-size: 13px;
  }

  .show-all {
    padding: 5px 10px;
    font-size: 10px;
  }

  .game-grid--scroll {
    grid-auto-columns: 144px;
    gap: 8px;
  }

  .scroller-arrow {
    width: 28px;
    height: 28px;
  }

  .scroller-arrow .icon {
    width: 13px;
    height: 13px;
  }

  .game-grid--wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  /* Info */
  .info-section {
    padding: 16px 0 36px;
  }

  .info-columns {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .info-columns h2 {
    font-size: 17px;
  }

  /* Accordion */
  .accordion-header {
    padding: 15px 16px;
    font-size: 12px;
  }

  .accordion-panel__inner {
    padding: 18px 16px 24px;
  }

  /* Footer */
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
    padding: 32px 16px;
  }

  .footer-notice {
    grid-template-columns: 1fr;
    padding: 0 16px 20px;
  }

  .footer-text-card:nth-of-type(3) {
    grid-column: auto;
  }

  .footer-badge-card img {
    height: 60px;
  }

  .footer-bottom {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .support-fab {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .providers-grid,
  .providers-grid--full {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 320px) {
  .collections {
    grid-template-columns: 1fr;
  }
}
