/* ─── RESET & BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark:       #060025;
  --bg-sidebar:    #0E0055;
  --bg-card:       #20116A;
  --bg-card-2:     #2D1E7A;
  --bg-card-3:     #3A2A8A;
  --primary:       #FF9C22;
  --primary-dark:  #FF6A00;
  --primary-light: #FFFC8A;
  --text:          #FFFFFF;
  --text-muted:    #A2A5AF;
  --radius:        12px;
  --radius-sm:     8px;
  --sidebar-w:     320px;
  --sidebar-w-sm:  70px;
  --header-h:      60px;
  --bottom-bar-h:  52px;
}

html, body {
  height: 100%;
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Atma', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; outline: none; }
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
ul { list-style: none; }

/* ─── LAYOUT ──────────────────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 90;
}
.sidebar-overlay.active { display: block; }

/* Sidebar: mini rail by default, expands on .open */
.sidebar {
  position: fixed;
  top: var(--header-h); left: 0;
  height: calc(100vh - var(--header-h));
  width: var(--sidebar-w-sm);
  height: 100vh;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-card) transparent;
  padding-bottom: var(--bottom-bar-h);
  transition: width .28s ease;
}
.sidebar.open {
  width: var(--sidebar-w);
}

.main-wrap {
  margin-left: var(--sidebar-w-sm);
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  transition: margin-left .28s ease;
}
.sidebar.open ~ .main-wrap {
  margin-left: var(--sidebar-w);
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg-sidebar);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  z-index: 110;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
  margin-right: 6px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header__logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.header__logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-light);
  white-space: nowrap;
}

.main-content { flex: 1; padding-bottom: calc(var(--bottom-bar-h) + 24px); }
.container { max-width: 1100px; margin: 0 auto; padding: 20px 20px 0; }

/* ─── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 38px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity .15s, background .15s;
  cursor: pointer;
}
.btn--primary {
  background: var(--primary);
  color: #000;
}
.btn--primary:hover { background: var(--primary-dark); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn--ghost:hover { border-color: rgba(255,255,255,.5); }

.btn--hero {
  height: 48px;
  padding: 0 32px;
  font-size: 15px;
  border-radius: 28px;
  margin-top: 20px;
}

/* ─── SIDEBAR MINI-RAIL (default collapsed state) ────────────────── */

.sidebar:not(.open) .sidebar__features { padding: 10px 0 6px; gap: 2px; align-items: center; }
.sidebar:not(.open) .sidebar__feat-row { flex-direction: column; gap: 2px; width: 100%; }
.sidebar:not(.open) .sidebar__feat {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
  width: 100%;
  background: transparent;
  border-radius: 0;
}
.sidebar:not(.open) .sidebar__feat:hover { background: var(--bg-card); border-radius: var(--radius-sm); }
.sidebar:not(.open) .sidebar__feat span { display: none; }
.sidebar:not(.open) .sidebar__feat-icon { width: 30px; height: 30px; }

.sidebar:not(.open) .sidebar__nav { padding: 6px 0; }
.sidebar:not(.open) .sidebar__group-btn,
.sidebar:not(.open) .sidebar__nav-item {
  justify-content: center;
  padding: 12px 0;
}
.sidebar:not(.open) .sidebar__group-btn span,
.sidebar:not(.open) .sidebar__group-btn .sidebar__chevron,
.sidebar:not(.open) .sidebar__nav-item span { display: none; }
.sidebar:not(.open) .sidebar__group-sub { display: none !important; }

.sidebar:not(.open) .sidebar__bottom { padding: 12px 0; align-items: center; }
.sidebar:not(.open) .sidebar__help-btn { display: none; }
.sidebar:not(.open) .sidebar__socials,
.sidebar:not(.open) .sidebar__app-banner,
.sidebar:not(.open) .sidebar__lang-wrap { display: none; }

/* ─── SIDEBAR ─────────────────────────────────────────────────────── */

/* Feature tiles */
.sidebar__features {
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar__feat-row {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.sidebar__feat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: background .15s;
}
.sidebar__feat:hover { background: var(--bg-card-2); }
.sidebar__feat--full { width: 100%; }
.sidebar__feat--half { flex: 1; min-width: 0; overflow: hidden; }
.sidebar__feat--half span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__feat-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Nav accordion list */
.sidebar__nav {
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,.07);
}

.sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .15s;
}
.sidebar__nav-item:hover { color: var(--primary-light); }

.sidebar__nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  color: var(--text-muted);
}

.sidebar__group-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .15s;
}
.sidebar__group-btn:hover { color: var(--primary-light); }
.sidebar__group-btn span { flex: 1; text-align: left; }
.sidebar__chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .2s;
}
.sidebar__group-btn[aria-expanded="true"] .sidebar__chevron { transform: rotate(180deg); }

.sidebar__group-sub {
  display: none;
  flex-direction: column;
  padding: 4px 0 6px 42px;
  gap: 1px;
}
.sidebar__group-sub.open { display: flex; }
.sidebar__sub-item {
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.sidebar__sub-item:hover { color: var(--text); background: var(--bg-card); }

/* Sidebar bottom */
.sidebar__bottom {
  margin-top: auto;
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar__help-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(90deg, #FFB432, #FF6A00);
  color: #000;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity .15s;
}
.sidebar__help-btn:hover { opacity: .88; }

.sidebar__lang-wrap {
  padding: 2px 0;
}
.lang-select__btn--sidebar {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  justify-content: center;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
}

.sidebar__socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.sidebar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.sidebar__social:hover { background: var(--bg-card-2); color: var(--text); }

.sidebar__app-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.sidebar__app-banner:hover { background: var(--bg-card-2); }
.sidebar__app-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar__app-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.sidebar__app-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── HEADER ──────────────────────────────────────────────────────── */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.header__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.open span:nth-child(2) { opacity: 0; }
.header__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__spacer { flex: 1; }

.header__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-card);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.header__search:hover { background: var(--bg-card-2); }

/* ─── LANG SELECT ──────────────────────────────────────────────────── */
.lang-select { position: relative; }
.lang-select__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-card);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.lang-select__btn:hover { background: var(--bg-card-2); }
.lang-select__globe { color: var(--text-muted); flex-shrink: 0; }
.lang-select__arrow { color: var(--text-muted); flex-shrink: 0; transition: transform .2s; }
.lang-select.open .lang-select__arrow { transform: rotate(180deg); }
.lang-select__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card-2);
  border-radius: var(--radius-sm);
  min-width: 140px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 200;
}
.lang-select.open .lang-select__dropdown { display: block; }
.lang-select__option {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.lang-select__option:hover { background: var(--bg-card-3); }
.lang-select__option--active { color: var(--primary); font-weight: 700; }

/* ─── HERO BANNER ──────────────────────────────────────────────────── */
.hero-banner {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  background: url('/images/banner-desktop.webp') center right / cover no-repeat;
}

.hero-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,0,37,.9) 0%, rgba(6,0,37,.6) 50%, transparent 100%);
  z-index: 1;
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  padding: 40px 48px;
  max-width: 55%;
}


.hero-banner__subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-banner__title {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #fff !important;
  margin-top: 8px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}


/* ─── GAME SECTIONS ─────────────────────────────────────────────────── */
.games-section { margin-bottom: 32px; }

.games-section__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.games-section__title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.games-section__all {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: opacity .15s;
}
.games-section__all:hover { opacity: .75; }

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

.game-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  display: block;
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.game-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── SEO CONTENT ───────────────────────────────────────────────────── */
.seo-content {
  margin: 8px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.seo-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 24px 0 10px;
}
.seo-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}
.seo-content h3::after {
  content: '+';
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .2s;
}
.seo-content h3.faq-open::after { content: '−'; }
.seo-content h3 + p {
  display: none;
  padding: 10px 16px 14px;
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-top: -4px;
  margin-bottom: 6px;
}
.seo-content h3.faq-open + p { display: block; }
.seo-content p { margin-bottom: 12px; }
.seo-content a { color: var(--primary); }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-sidebar);
  padding: 28px 24px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.footer__payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 24px;
}
.footer__payment-icon {
  height: 24px;
  width: auto;
  opacity: .75;
  transition: opacity .15s;
}
.footer__payment-icon:hover { opacity: 1; }

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-bottom: 24px;
}
.footer__col { min-width: 130px; }
.footer__col-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 10px;
}
.footer__link {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 0;
  transition: color .15s;
}
.footer__link:hover { color: var(--text); }

.footer__ssl {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.footer__ssl-img { height: 36px; width: auto; opacity: .6; }

.footer__copy {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── BOTTOM BAR ────────────────────────────────────────────────── */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w-sm);
  right: 0;
  transition: left .28s ease;
  z-index: 105;
  height: var(--bottom-bar-h);
  background: var(--bg-sidebar);
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 50;
}

.bottom-bar__help {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--primary);
  color: #000;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  transition: background .15s;
}
.bottom-bar__help:hover { background: var(--primary-dark); color: #fff; }

/* Bottom bar follows sidebar width */
body:has(.sidebar.open) .bottom-bar { left: var(--sidebar-w); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-banner__char { display: none; }
  .hero-banner__content { max-width: 100%; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-banner__content { max-width: 100%; }
  .hero-banner__char { display: none; }
}

@media (max-width: 700px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }

  .hero-banner__content {
    padding: 28px 24px;
    max-width: 70%;
  }
  .hero-banner__char { max-height: 240px; }

  .footer__cols { gap: 20px 24px; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-banner__content { max-width: 100%; }
  .hero-banner__char { display: none; }
}
