/* Game sliders stay hidden until DragSlider2 adds .active */
.drag-slider {
  height: auto !important;
  opacity: 1 !important;
}

/* Fallback layout when DragSlider2 did not wrap items */
.drag-slider:not(:has(.ds-track)),
.drag-slider.ds-fallback {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  grid: none !important;
}
.drag-slider:not(:has(.ds-track))::-webkit-scrollbar,
.drag-slider.ds-fallback::-webkit-scrollbar {
  display: none;
}
.drag-slider:not(:has(.ds-track)) > .item_game,
.drag-slider:not(:has(.ds-track)) > .item,
.drag-slider.ds-fallback > .item_game,
.drag-slider.ds-fallback > .item {
  flex: 0 0 270px;
  width: 270px;
  max-width: 270px;
}
@media (max-width: 768px) {
  .drag-slider:not(:has(.ds-track)) > .item_game,
  .drag-slider:not(:has(.ds-track)) > .item,
  .drag-slider.ds-fallback > .item_game,
  .drag-slider.ds-fallback > .item {
    flex: 0 0 160px;
    width: 160px;
    max-width: 160px;
  }
}

/* Online Chat tab (original injected by pre-chat widget) */
.online_chat_tab {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 10050;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%) rotate(180deg);
  background: #f5c518;
  color: #111;
  border: 0;
  border-radius: 8px 0 0 8px;
  padding: 16px 10px;
  font-family: Montserrat, Roboto, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.25);
}

.online_chat_tab:hover {
  background: #ffd84a;
}

/* Ensure root paths work when opened as file:// is not needed; for local server */

/* Soften missing provider sprite */
.language_dropdown .flag svg {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
}

/* Chat panel stub */
.chat_panel {
  position: fixed;
  right: 48px;
  bottom: 24px;
  width: min(360px, calc(100vw - 24px));
  height: 480px;
  max-height: calc(100vh - 48px);
  background: #0d1430;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  z-index: 10060;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.chat_panel.open {
  display: flex;
}

.chat_panel .chat_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #151c3d;
  color: #fff;
  font-weight: 700;
}

.chat_panel .chat_head button {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.chat_panel .chat_body {
  flex: 1;
  padding: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
}

.chat_panel .chat_foot {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat_panel .chat_foot input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0a1028;
  color: #fff;
  padding: 10px 12px;
}

/* Auth / legal inner pages */
.page_shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  color: #fff;
}

.page_shell h1 {
  font-size: 28px;
  margin: 0 0 12px;
}

.page_shell h2 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.page_shell p,
.page_shell li {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.page_shell .crumbs {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
  font-size: 13px;
}

.page_shell .crumbs a {
  color: #f5c518;
  text-decoration: none;
}

.auth_form {
  max-width: 420px;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.auth_form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.auth_form input {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0a1028;
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
}

.auth_form .button {
  margin-top: 8px;
}

.seo_article {
  margin-top: 40px;
  max-width: 720px;
}

.seo_article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: #fff;
}

.seo_article p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 0.95rem;
}

.seo_article ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.seo_article li {
  margin-bottom: 8px;
}

.seo_article a {
  color: #f5c518;
  text-decoration: none;
}

.seo_article a:hover {
  text-decoration: underline;
}

.page_shell .page-sub {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 640px;
}

/* Homepage SEO — same width as other lobby sections (.container) */
body.home main > section.seo_home,
section.seo_home.container {
  display: block !important;
  width: 100% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1rem;
  padding: 48px 20px 56px !important;
  box-sizing: border-box;
}

.seo_home .seo_home_inner {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.seo_home h1 {
  display: block;
  width: 100%;
  font-size: clamp(1.35rem, 2.4vw, 2rem) !important;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.3 !important;
  letter-spacing: 0;
}

.seo_home h2 {
  display: block;
  width: 100%;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem) !important;
  font-weight: 700;
  color: #fff;
  margin: 28px 0 10px;
  line-height: 1.35 !important;
  letter-spacing: 0;
}

.seo_home p,
.seo_home li {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 1rem;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.seo_home ul {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 14px;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  box-sizing: border-box;
}

.seo_home li {
  margin-bottom: 8px;
}

.seo_home a {
  color: #f5c518;
  text-decoration: none;
}

.seo_home a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  body.home main > section.seo_home,
  section.seo_home.container {
    padding: 32px 10px 40px !important;
  }

  .seo_home h1 {
    font-size: 1.35rem !important;
  }

  .seo_home h2 {
    font-size: 1.1rem !important;
    margin-top: 22px;
  }

  .seo_home p,
  .seo_home li {
    font-size: 0.95rem;
  }
}
