/* =========================================================
   Eternal Slots LP — New Home Header Promos (scoped)
   Visual source: Next.js .nhp / _new-home-header-promos.scss
   ========================================================= */

.lp-nhp {
  --lp-nhp-card-bg: rgba(19, 22, 31, 0.65);
  --lp-nhp-cta-bg: #83c000;
  --lp-nhp-text: #fff;
  --lp-nhp-gold: #ffd700;

  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  padding: 90px 0 20px;
  margin-top: 0;
  background-color: transparent;
  background-image: none;
  overflow: visible;
  font-family: "Nunito Sans", sans-serif;
  box-sizing: border-box;
  z-index: 2;
}

.lp-nhp *,
.lp-nhp *::before,
.lp-nhp *::after {
  box-sizing: border-box;
}

.lp-nhp__inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  overflow: visible;
  width: 100%;
}

/* ---- Hero band (main promo over homepage image) ---- */
.lp-nhp__hero-area {
  position: relative;
  width: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 20px 0;
  background: none;
  box-sizing: border-box;
}

.lp-nhp__hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60%;
  margin: 0;
  padding: 0 12px;
  z-index: 2;
}

/* ---- Cards ---- */
.lp-nhp__card {
  position: relative;
  flex: 1 1 calc(25% - 18px);
  min-width: 0;
  background: var(--lp-nhp-card-bg);
  background-size: cover;
  border-radius: 15px;
  padding: 20px 30px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: solid 1px rgba(131, 192, 0, 0.5);
  box-shadow:
    0 5px 15px rgba(9, 11, 18, 0.3),
    0 0 15px inset rgba(131, 192, 0, 0.5);
  transition: all 0.2s ease-in-out;
  transform: scale(0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  height: auto;
  width: auto;
  max-width: none;
  top: auto;
  left: auto;
  text-shadow: none;
}

.lp-nhp__card--solo {
  flex: 0 0 auto;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  transform: scale(1.05);
  gap: 8px;
  z-index: 2;
}

.lp-nhp__card-title {
  font-size: 1.6rem;
  color: var(--lp-nhp-text);
  font-weight: 600;
  margin: 0 0 4px;
  text-align: center;
  line-height: 1.3;
  width: 100%;
  max-width: none;
  text-transform: none;
  letter-spacing: normal;
}

.lp-nhp__card-title--small {
  font-size: 1.2rem;
  font-weight: 600;
}

.lp-nhp__card-amount {
  font-size: 2.5rem;
  color: var(--lp-nhp-cta-bg);
  font-weight: 500;
  margin: 0;
  transition: all 0.3s ease-in-out;
  text-align: center;
  line-height: 1.1;
  overflow-wrap: anywhere;
  width: 100%;
  max-width: none;
}

.lp-nhp__card-amount--gold,
.lp-nhp__card--solo .lp-nhp__card-amount {
  color: var(--lp-nhp-gold);
  font-size: 2.5rem;
}

.lp-nhp__card-code {
  font-size: 1.5rem;
  color: var(--lp-nhp-gold);
  font-weight: 900;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
  text-align: center;
  line-height: 1.1;
  overflow-wrap: anywhere;
  width: 100%;
  max-width: none;
}

.lp-nhp__card-rule {
  font-size: 1rem;
  color: #fff;
  font-weight: 400;
  margin: 4px 0 12px;
  text-align: center;
  font-style: italic;
  line-height: 1.3;
  width: 100%;
  max-width: none;
}

.lp-nhp__card-icon {
  width: 70%;
  margin: 8px auto 10px;
  max-width: 300px;
  transition: all 0.3s ease-in-out;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-nhp__card-icon img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
  margin: 0 auto;
  object-fit: contain;
  border: 0 !important;
}

/* ---- CTA row ---- */
.lp-nhp__cta-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0;
  gap: 5px;
}

.lp-nhp__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 200px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  margin: 0;
  padding: 0 12px;
  background: linear-gradient(180deg, #83c000 0%, #83c000 100%);
  color: #fff;
  cursor: pointer;
  outline: none;
  font-size: 20px;
  font-weight: 500;
  font-family: "Nunito Sans", sans-serif;
  transition: filter 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.8);
  position: relative;
  text-decoration: none !important;
  text-align: center;
  left: auto;
  bottom: auto;
  top: auto;
  right: auto;
  line-height: 1;
}

.lp-nhp__cta:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: scale(1.03);
}

.lp-nhp__cta:active:not(:disabled) {
  filter: brightness(0.95);
  transform: scale(0.98);
}

.lp-nhp__cta:disabled,
.lp-nhp__cta--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
  transform: none;
}

.lp-nhp__info-btn {
  width: 35px;
  height: 30px;
  flex: 0 0 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  padding: 0;
  line-height: 1;
}

.lp-nhp__info-btn span {
  display: block;
  line-height: 1;
  font-weight: 700;
}

/* Neutralize legacy .tile__info pseudo when used inside lp-nhp */
.lp-nhp .tile__info::before {
  content: none;
  display: none;
}

.lp-nhp .tile__info:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

/* ---- Secondary grid ---- */
.lp-nhp__secondary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  margin: 40px auto 0;
  width: 80%;
  padding: 0;
}

.lp-nhp__secondary-grid > .lp-nhp__card {
  align-self: stretch;
}

/* ---- Scrolling banner (between hero and secondary) ---- */
.lp-nhp .scrolling-banner {
  position: relative;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 8px;
  z-index: 2;
}

/* ---- Selected glow (keep JS hook classes working) ---- */
.lp-nhp .BoxPromos.Selected {
  animation: lpNhpGlowingBorder 1.5s infinite alternate;
  --glow-color: #83c000;
}

@keyframes lpNhpGlowingBorder {
  0% {
    box-shadow:
      0 0 5px var(--glow-color),
      0 0 10px var(--glow-color),
      0 0 15px var(--glow-color),
      0 0 15px inset rgba(131, 192, 0, 0.5);
  }
  50% {
    box-shadow:
      0 0 15px var(--glow-color),
      0 0 25px var(--glow-color),
      0 0 35px var(--glow-color),
      0 0 15px inset rgba(131, 192, 0, 0.5);
  }
  100% {
    box-shadow:
      0 0 5px var(--glow-color),
      0 0 10px var(--glow-color),
      0 0 15px var(--glow-color),
      0 0 15px inset rgba(131, 192, 0, 0.5);
  }
}

/* Visually hide duplicate code node used by JS */
.lp-nhp__visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Legacy tile structure hooks kept for JS — not layout */
.lp-nhp .tile__img.lp-nhp__js-hook {
  display: contents;
}

.lp-nhp .tile__img.lp-nhp__js-hook .holder {
  display: contents;
  width: auto;
  height: auto;
}

/* =========================================================
   Tablet 601–1200
   ========================================================= */
@media (min-width: 601px) and (max-width: 1200px) {
  .lp-nhp__secondary-grid {
    justify-content: center;
    width: 92%;
  }

  .lp-nhp__card:not(.lp-nhp__card--solo) {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .lp-nhp__hero-area {
    min-height: 280px;
  }
}

/* =========================================================
   Mobile ≤600
   ========================================================= */
@media (max-width: 600px) {
  .lp-nhp {
    padding-top: 100px;
    background-image: none;
    padding-bottom: 16px;
  }

  .lp-nhp__hero-area {
    aspect-ratio: auto;
    min-height: 0;
    background-image: none;
    padding: 10px 0 0;
  }

  .lp-nhp__hero-row {
    margin-top: 10px;
    overflow: hidden;
    gap: 0;
  }

  .lp-nhp__card--solo {
    max-width: calc(100% - 16px);
    margin: 0 auto;
    min-height: 170px;
    transform: scale(1);
    gap: 6px;
    padding: 16px 16px 18px;
  }

  .lp-nhp__secondary-grid {
    width: 100%;
    justify-content: center;
    gap: 0;
    margin-top: 16px;
    padding: 0 4px;
  }

  .lp-nhp__card:not(.lp-nhp__card--solo) {
    flex: 0 0 calc(50% - 2px);
    max-width: calc(50% - 2px);
    min-height: 200px;
    padding: 12px 5px 16px;
    transform: scale(0.9);
  }

  .lp-nhp__card-title {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .lp-nhp__card-amount,
  .lp-nhp__card-amount--gold,
  .lp-nhp__card--solo .lp-nhp__card-amount {
    font-size: 1.4rem;
    line-height: 1.1;
  }

  .lp-nhp__card-code {
    font-size: 1.2rem;
  }

  .lp-nhp__card-rule {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .lp-nhp__card-icon {
    width: 60%;
    margin-top: auto;
  }

  .lp-nhp__cta {
    width: 85%;
    max-width: 120px;
    height: 35px;
    font-size: 1.2rem;
    padding: 6px 4px;
    min-width: 0;
  }

  .lp-nhp__info-btn {
    width: 30px;
    height: 28px;
    flex-basis: 30px;
    font-size: 1.1rem;
  }

  .lp-nhp .scrolling-banner {
    margin-top: 8px;
    margin-bottom: 4px;
  }
}

@media (max-width: 560px) {
  .lp-nhp {
    padding-top: 20px;
  }
}

/* =========================================================
   Neutralize legacy absolute / fragile layout when present
   ========================================================= */
.home-mobile.lp-nhp-legacy-off,
.lp-nhp.home-mobile {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  max-width: none !important;
  height: auto !important;
  display: block !important;
}
