/* LUOTTOKASINOT.COM – lopullinen header */
.brand-header {
  --brand-green: #42ef67;
  --brand-green-light: #78ff91;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  border-bottom: 1px solid rgba(66, 239, 103, .18);
  background: rgba(3, 10, 7, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, background .25s ease;
}

.brand-header.scrolled {
  background: rgba(2, 8, 5, .98);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .38);
}

.brand-header__inner {
  width: min(1320px, calc(100% - 40px));
  min-height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  width: clamp(275px, 25vw, 390px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 17px rgba(66, 239, 103, .11));
}

.brand-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.brand-nav__link,
.brand-nav__cta {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 12px;
  color: #dbe5e0;
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: .2s ease;
}

.brand-nav__icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: #fff;
}

.brand-nav__link:hover,
.brand-nav__link.active {
  color: var(--brand-green-light);
  background: rgba(66, 239, 103, .08);
  transform: translateY(-1px);
}

.brand-nav__cta {
  margin-left: 8px;
  padding-inline: 18px;
  color: #021006;
  background: linear-gradient(135deg, var(--brand-green-light), var(--brand-green));
  box-shadow: 0 12px 28px rgba(66,239,103,.22);
}

.brand-nav__cta:hover {
  color: #021006;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(66,239,103,.32);
}

.brand-menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.brand-menu-toggle span {
  width: 23px;
  height: 2px;
  display: block;
  margin: 4px auto;
  border-radius: 99px;
  background: #fff;
  transition: .2s ease;
}

.brand-menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.brand-menu-toggle.open span:nth-child(2) { opacity: 0; }
.brand-menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .brand-logo img { width: 290px; }
  .brand-nav__link { padding-inline: 9px; font-size: .72rem; }
  .brand-nav__icon { display: none; }
}

@media (max-width: 920px) {
  .brand-header__inner { min-height: 76px; }
  .brand-logo img { width: 245px; }
  .brand-menu-toggle { display: block; }

  .brand-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(66,239,103,.2);
    border-radius: 18px;
    background: rgba(5,15,10,.99);
    box-shadow: 0 28px 70px rgba(0,0,0,.46);
  }

  .brand-nav.open { display: flex; }

  .brand-nav__link,
  .brand-nav__cta {
    min-height: 50px;
    justify-content: flex-start;
    padding-inline: 14px;
    font-size: .88rem;
  }

  .brand-nav__icon { display: inline-grid; }
  .brand-nav__cta { margin: 5px 0 0; justify-content: center; }
}

@media (max-width: 520px) {
  .brand-header__inner { width: calc(100% - 24px); }
  .brand-logo img { width: 205px; }
  .brand-menu-toggle { width: 44px; height: 44px; }
}.top-slider-window {
    overflow: hidden;
}

.top-slider-track {
    display: flex;
    transition: transform 0.45s ease;
}

.hero-top-slide {
    min-width: 100%;
    flex: 0 0 100%;
}
/* VIIKON TOP 5 -SLIDERIN KORJAUKSET */

.hero-top-slider {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 28px 22px 22px;
  border: 1px solid rgba(66, 239, 103, 0.28);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(66, 239, 103, 0.09),
      transparent 42%
    ),
    rgba(5, 16, 11, 0.94);
  overflow: hidden;
}

.hero-slider-heading {
  margin: 0 0 18px;
  padding: 0;
}

.hero-slider-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.top-slider-window {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.018);
}

.top-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hero-top-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 24px 70px 22px;
}

.hero-slide-rank {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 1.3rem;
  font-weight: 900;
}

.hero-slide-badge {
  display: table;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #71ff8e;
  background: rgba(66, 239, 103, 0.12);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-slide-logo {
  display: block;
  width: 96px;
  height: 82px;
  margin: 0 0 10px;
  border-radius: 8px;
  object-fit: contain;
}

.hero-top-slide h3 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.08;
}

.hero-slide-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
}

.hero-slide-rating span {
  color: #ffd229;
  letter-spacing: 2px;
}

.hero-slide-rating strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.hero-slide-bonus {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 16px;
  padding: 15px 17px;
  border: 1px solid rgba(66, 239, 103, 0.11);
  border-radius: 14px;
  background: rgba(66, 239, 103, 0.09);
}

.hero-slide-bonus small {
  color: #59f578;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-slide-bonus strong {
  color: #ffffff;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
}

.hero-slide-bonus span {
  color: #cbd8d0;
  font-size: 0.84rem;
}

.top-offer-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 12px;
  color: #031006;
  background: linear-gradient(135deg, #78ff91, #42ef67);
  box-shadow: 0 12px 26px rgba(66, 239, 103, 0.2);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-offer-button:hover {
  color: #031006;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(66, 239, 103, 0.3);
}

.hero-slide-terms {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
}

/* Nuolet kortin sisäpuolelle */

.hero-top-slider .swiper-button-prev,
.hero-top-slider .swiper-button-next {
  position: absolute;
  top: 52%;
  z-index: 10;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid #42ef67;
  border-radius: 50%;
  color: #42ef67;
  background: rgba(3, 15, 9, 0.94);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-top-slider .swiper-button-prev {
  left: 32px;
}

.hero-top-slider .swiper-button-next {
  right: 32px;
}

.hero-top-slider .swiper-button-prev::after,
.hero-top-slider .swiper-button-next::after {
  font-size: 18px;
  font-weight: 900;
}

/* Pisteet ja 1 / 5 -laskuri */

.top-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 22px;
  margin-top: 14px;
}

.top-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: 0.2s ease;
}

.top-slider-dot.active {
  width: 25px;
  background: #42ef67;
}

.top-slider-count {
  margin-left: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 800;
}

/* Puhelin */

@media (max-width: 620px) {
  .hero-top-slider {
    padding: 22px 14px 16px;
    border-radius: 20px;
  }

  .hero-slider-heading {
    margin-bottom: 14px;
  }

  .hero-top-slide {
    padding: 20px 52px 18px;
  }

  .hero-top-slider .swiper-button-prev {
    left: 20px;
  }

  .hero-top-slider .swiper-button-next {
    right: 20px;
  }

  .hero-top-slider .swiper-button-prev,
  .hero-top-slider .swiper-button-next {
    width: 38px;
    height: 38px;
  }
}