/**
 * Desktop web shell (html.wlc-page-home): header + page chrome for 1024px+ viewports.
 * Loaded on all routes from web/view so the header matches the home layout; home-only blocks use the same prefix.
 * Uses clamp / min() so content scales from small laptops to ultrawide without overflow.
 */

/* Shell vars + page tone on home root (promo / SON KAZANANLAR use vars below 1024px too) */
html.wlc-page-home {
  --wlc-home-pad: clamp(12px, 3vw, 40px);
  --wlc-home-max: min(100vw - 2 * var(--wlc-home-pad), 1680px);
  background: #121212;
}

@media (min-width: 1024px) {
  html.wlc-page-home {
    /* Page shell: dark grey (not pure #000) — header/banners stay transparent */
    background: #121212;
    --wlc-home-pad: clamp(12px, 2.5vw, 40px);
    --wlc-home-max: min(100vw - 2 * var(--wlc-home-pad), 1680px);
    /* Hero ~3:1 (width:height) like reference desktop — not tall mobile strips */
    --wlc-hero-aspect: 3 / 1;
    --wlc-nav-fs: clamp(11px, 0.85vw, 14px);
    --wlc-btn-pad-x: clamp(18px, 2.2vw, 40px);
  }

  html.wlc-page-home *,
  html.wlc-page-home *::before,
  html.wlc-page-home *::after {
    box-sizing: border-box;
  }

  html.wlc-page-home body {
    background: transparent;
  }

  html.wlc-page-home .container,
  html.wlc-page-home .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: var(--wlc-home-pad);
    padding-right: var(--wlc-home-pad);
  }

  /* --- Header: Logo | main links (between logo & Giriş) | Giriş / Üye Ol — bottom strip: desktop-wide.css --- */
  html.wlc-page-home .wlc-header-main.row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(10px, 1.5vw, 24px);
    width: 100%;
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: clamp(8px, 1.2vw, 16px) var(--wlc-home-pad);
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 184, 0, 0.15);
    box-sizing: border-box;
  }

  html.wlc-page-home .wlc-header-main > .wlc-header-logo.col,
  html.wlc-page-home .wlc-header-main > .wlc-header-logo {
    flex: 0 0 auto;
    flex-shrink: 0;
    max-width: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  html.wlc-page-home .wlc-header-main > .wlc-header-desktop-primary-nav.col,
  html.wlc-page-home .wlc-header-main > .wlc-header-desktop-primary-nav {
    flex: 1 1 0%;
    min-width: 0;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  html.wlc-page-home .wlc-header-main > .wlc-header-left.col,
  html.wlc-page-home .wlc-header-main > .wlc-header-left {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
  }

  html.wlc-page-home .wlc-header-logo .wlc-logo__image img {
    max-height: clamp(36px, 4vw, 52px);
    width: auto;
    display: block;
  }

  html.wlc-page-home .wlc-header-left > nav.row.wlc-main-menu {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 1.2vw, 20px);
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  /* Main nav fills space between logo (outside nav) and login buttons (block_right) */
  html.wlc-page-home .wlc-main-menu__block-2 {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    display: flex;
    justify-content: center;
    width: auto;
  }

  html.wlc-page-home nav.wlc-main-menu > .wlc-main-menu__block-2.col {
    flex: 1 1 0;
    max-width: none;
  }

  html.wlc-page-home nav.wlc-main-menu > .wlc-main-menu__block_right.col {
    flex: 0 0 auto;
    width: auto;
  }

  html.wlc-page-home nav.wlc-main-menu.row > .col {
    padding-left: 0;
    padding-right: 0;
  }

  html.wlc-page-home .wlc-main-menu__block-2 .wlc-menu-big {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(4px, 0.8vw, 10px) clamp(8px, 1.2vw, 22px);
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
  }

  html.wlc-page-home .wlc-menu-big__item-mobile {
    display: none !important;
  }

  html.wlc-page-home #wlc-livechat-mobile-nav-item {
    display: none !important;
  }

  html.wlc-page-home .wlc-menu-big__item .wlc-footer-nav-stack .wlc-icon {
    display: none;
  }

  html.wlc-page-home .wlc-menu-big__item .wlc-footer-nav-stack {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  html.wlc-page-home .wlc-menu-big__item .wlc-text {
    font-size: var(--wlc-nav-fs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff !important;
  }

  html.wlc-page-home .wlc-menu-big__item a {
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
  }

  html.wlc-page-home .wlc-menu-big__item a:hover .wlc-text,
  html.wlc-page-home .wlc-menu-big__item a:focus .wlc-text {
    color: #ffb800 !important;
  }

  html.wlc-page-home .wlc-main-menu__block_right {
    flex: 0 0 auto;
    width: auto;
    max-width: min(48%, 520px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  html.wlc-page-home .wlc-main-menu__block_right.wlc-header-php-session {
    max-width: min(52%, 560px);
  }

  html.wlc-page-home .wlc-login-buttons.wlc-desktop {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(10px, 1.2vw, 18px);
    width: auto;
  }

  html.wlc-page-home .wlc-login-buttons .wlc-btn_login,
  html.wlc-page-home .wlc-login-buttons .wlc-main-menu-dropdown__button.wlc-btn_login {
    background: #fff !important;
    color: #111 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: clamp(8px, 1vw, 12px) var(--wlc-btn-pad-x) !important;
    font-weight: 800 !important;
    font-size: clamp(11px, 0.9vw, 14px) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: none !important;
  }

  html.wlc-page-home .wlc-login-buttons .wlc-btn_signup,
  html.wlc-page-home .wlc-login-buttons .wlc-main-menu-dropdown__button.wlc-btn_signup {
    background: #00c853 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: clamp(8px, 1vw, 12px) var(--wlc-btn-pad-x) !important;
    font-weight: 800 !important;
    font-size: clamp(11px, 0.9vw, 14px) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  }

  html.wlc-page-home .wlc-login-buttons .wlc-btn_login:hover {
    background: #f2f2f2 !important;
  }

  html.wlc-page-home .wlc-login-buttons .wlc-btn_signup:hover {
    filter: brightness(1.06);
  }

  html.wlc-page-home .wlc-header-php-session .wlc-header-php-session-balance-text,
  html.wlc-page-home .wlc-header-php-session-deposit {
    color: #fff !important;
  }

  /* --- Hero --- */
  html.wlc-page-home .wlc-banners-home {
    width: var(--wlc-home-max);
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(12px, 2vw, 28px) var(--wlc-home-pad) 0;
    background: transparent;
  }

  html.wlc-page-home .wlc-banners-home__slider .row {
    margin-left: 0;
    margin-right: 0;
  }

  html.wlc-page-home .wlc-banners-home__slider .col {
    padding-left: 0;
    padding-right: 0;
  }

  html.wlc-page-home .wlc-banners-home__slider .swiper,
  html.wlc-page-home .wlc-banners-home__slider .mySwiper {
    width: 100%;
    max-width: 100%;
    border-radius: clamp(8px, 1vw, 14px);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  }

  html.wlc-page-home .wlc-banners-home .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    flex-shrink: 0;
    height: auto !important;
    aspect-ratio: var(--wlc-hero-aspect);
    min-height: 160px;
    overflow: hidden;
    max-height: min(42vh, 480px);
    background-size: cover !important;
    background-position: center center !important;
    box-sizing: border-box;
  }

  html.wlc-page-home .wlc-banners-home .swiper-wrapper {
    align-items: stretch;
  }

  html.wlc-page-home .wlc-banners-home .banner-wrp {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2vw, 24px);
    min-height: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  html.wlc-page-home .wlc-banners-home .wlc-btn {
    background: linear-gradient(180deg, #ffc933 0%, #ffb800 45%, #e6a000 100%) !important;
    color: #111 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: clamp(10px, 1.1vw, 14px) clamp(22px, 3vw, 44px) !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    font-size: clamp(12px, 1vw, 15px);
  }

  html.wlc-page-home .wlc-banners-home .swiper-pagination {
    bottom: clamp(10px, 1.5vw, 20px) !important;
  }

  html.wlc-page-home .wlc-banners-home .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transform: scale(clamp(0.9, 1vw, 1.1));
  }

  html.wlc-page-home .wlc-banners-home .swiper-pagination-bullet-active {
    background: #ffb800;
  }

  /* Address strip */
  html.wlc-page-home .siteUrl-wrapper {
    width: var(--wlc-home-max);
    max-width: 100%;
    margin: clamp(12px, 2vw, 24px) auto clamp(20px, 3vw, 40px);
    padding: 0 var(--wlc-home-pad);
  }

  html.wlc-page-home .siteUrl {
    max-width: 100%;
    width: 100%;
    border-radius: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    border-left: 3px solid #fbb203;
    border-right: 3px solid #fbb203;
    padding: clamp(10px, 1.4vw, 16px) clamp(14px, 2vw, 28px);
    font-size: clamp(13px, 1.05vw, 16px);
    text-align: center;
  }

  html.wlc-page-home .hide-mobile {
    display: inline !important;
  }

  /* --- Promo tiles (Telegram / VIP / App): no extra black slab behind grid --- */
  html.wlc-page-home .wlc-top-promo-content {
    width: var(--wlc-home-max);
    max-width: 100%;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: clamp(16px, 2.5vw, 36px);
    background: transparent;
    box-shadow: none;
  }

  html.wlc-page-home .wlc-top-promo-content > div {
    background: transparent;
  }

  html.wlc-page-home .wlc-top-promo-content .wlc-promo-banners {
    background: transparent;
  }

  html.wlc-page-home .wlc-top-promo-content .wlc-promo-banners--home-ref.wlc-promo-banners {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(14px, 1.5vw, 20px);
    width: 100%;
    align-items: stretch;
  }

  html.wlc-page-home .wlc-promo-banners > p:empty {
    display: none !important;
  }

  html.wlc-page-home .wlc-top-promo-content .wlc-promo-banners_item {
    min-height: clamp(120px, 14vw, 180px) !important;
    width: 100% !important;
    max-width: 100%;
  }

  html.wlc-page-home .wlc-top-promo-content .wlc-promo-banners_item span {
    font-size: clamp(12px, 1.1vw, 16px) !important;
  }

  /* Fluid images in home hero/promo/last-wins only (avoid affecting casino/catalog thumbs on other routes) */
  html.wlc-page-home .wlc-banners-home img,
  html.wlc-page-home .wlc-top-promo-content img,
  html.wlc-page-home .wlc-section-last-wins img {
    max-width: 100%;
    height: auto;
  }

  /* Prevent accidental horizontal scroll on narrow-desktop zoom */
  html.wlc-page-home body {
    overflow-x: hidden;
  }
}

/* Slightly wider (flatter) hero on very large monitors */
@media (min-width: 1440px) {
  html.wlc-page-home {
    --wlc-hero-aspect: 7 / 2; /* ~3.5:1 */
    --wlc-home-max: min(100vw - 2 * var(--wlc-home-pad), 1720px);
  }

  html.wlc-page-home .wlc-banners-home .swiper-slide {
    max-height: min(40vh, 520px);
  }
}

@media (min-width: 1920px) {
  html.wlc-page-home {
    --wlc-home-max: min(100vw - 2 * var(--wlc-home-pad), 1760px);
  }
}

/* --- Home: SON KAZANANLAR bar + section shell (all widths; Swiper shows 1 / 2 / 3 slides via JS) --- */
html.wlc-page-home .wlc-banners-home__stack {
  display: flex;
  flex-direction: column;
  width: 100%;
}

html.wlc-page-home .wlc-section-last-wins {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  padding-left: 0;
  padding-right: 0;
}

html.wlc-page-home .wlc-section-last-wins__title--home {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f2f2f2;
}

html.wlc-page-home .wlc-section-last-wins__title {
  width: var(--wlc-home-max);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--wlc-home-pad);
  font-size: clamp(16px, 1.4vw, 22px);
  margin-bottom: clamp(10px, 1.2vw, 16px);
}

html.wlc-page-home .wlc-last-wins.container,
html.wlc-page-home .wlc-last-wins--home-bar.container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--wlc-home-pad);
  padding-right: var(--wlc-home-pad);
  background-color: #121212 !important;
}

html.wlc-page-home .wlc-last-wins-swiper--home {
  background: #161616;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

html.wlc-page-home .wlc-last-wins-swiper--home .swiper-wrapper {
  align-items: stretch;
}

html.wlc-page-home .wlc-last-wins-swiper--home .swiper-slide.wlc-last-wins-item {
  margin-right: 0 !important;
  box-sizing: border-box;
  border-right: 1px solid rgba(0, 0, 0, 0.55);
  height: auto;
  padding: clamp(12px, 1.4vw, 18px) clamp(10px, 1.2vw, 16px);
}

html.wlc-page-home .wlc-last-wins-swiper--home .swiper-slide.wlc-last-wins-item:last-child {
  border-right: none;
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item {
  display: grid;
  grid-template-columns: minmax(44px, 56px) minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: clamp(10px, 1.2vw, 16px);
  row-gap: 2px;
  align-items: center;
  min-height: 52px;
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item-data {
  display: contents;
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item-data-user-block {
  display: contents;
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item__image {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
  align-self: center;
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item__image img {
  display: block;
  width: 100%;
  max-width: 56px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item__name {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  align-self: end;
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item__name .wlc-name {
  color: #fff;
  font-weight: 600;
  font-size: clamp(13px, 1.05vw, 15px);
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-last-wins-game-block {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  align-self: start;
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item__game a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(11px, 0.9vw, 13px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item__amount {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-self: end;
  font-weight: 800;
  color: #fbb203;
  font-size: clamp(15px, 1.25vw, 20px);
  white-space: nowrap;
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item__currency {
  color: #fbb203;
  font-size: 0.85em;
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item__amount::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: #fbb203;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='10' viewBox='0 0 8 10'%3E%3Cpath fill='%23111' d='M0 0 L8 5 L0 10 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 54% 50%;
  background-size: 7px 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item__arrow {
  display: none !important;
}

@media (max-width: 767px) {
  html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item {
    grid-template-columns: minmax(40px, 48px) 1fr minmax(0, auto);
    column-gap: 8px;
  }

  html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item__amount {
    font-size: clamp(12px, 3.8vw, 16px);
    gap: 6px;
  }

  html.wlc-page-home .wlc-last-wins-swiper--home .wlc-item__amount::after {
    width: 22px;
    height: 22px;
    background-size: 6px 8px;
  }
}

