/**
 * index.html — responsive layout & polish (all viewports)
 * Load after styles.css
 */

/* -------------------------------------------------------------------------
   Base: no horizontal scroll, readable line length
   ------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.landing-body {
  overflow-x: clip;
  max-width: 100%;
}

/* -------------------------------------------------------------------------
   Header — compact bar, larger logo, centered brand
   ------------------------------------------------------------------------- */
.landing-body header.ctm-logo-background.site-header {
  height: auto !important;
  min-height: 0;
}

.landing-body .site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(0.35rem, 2vw, 0.75rem);
  padding: 0.35rem clamp(0.6rem, 2.5vw, 1.1rem);
  min-height: 0;
  box-sizing: border-box;
  position: relative;
}

.landing-body .site-header__spacer {
  grid-column: 1;
  min-width: 0;
  pointer-events: none;
}

.landing-body .site-header__brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-body .site-header__actions {
  grid-column: 3;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  min-width: 0;
}

.landing-body .site-header .page__header-language {
  float: none !important;
  margin: 0 !important;
  top: 0 !important;
  position: relative;
  flex-shrink: 0;
}

.landing-body .site-header .oneplayLogo {
  height: auto;
  max-height: clamp(40px, 11vw, 56px);
  width: auto;
  max-width: min(220px, 70vw);
  margin: 0;
  display: block;
  object-fit: contain;
  vertical-align: middle;
}

.landing-body .site-header .language-selector-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.landing-body .site-header .q-btn {
  min-width: 40px;
  min-height: 40px;
  padding: 0.2rem 0.35rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-body .site-header .q-btn:focus-visible {
  outline: 2px solid #126fe8;
  outline-offset: 2px;
}

.landing-body .site-header .website__language {
  right: 0;
  left: auto;
  top: calc(100% + 6px);
  z-index: 200;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  min-width: 5rem;
  text-align: center;
}

/* Shorter header → align mobile menu under new bar */
.landing-body .mobile-menu-popup {
  top: clamp(48px, 11vw, 62px);
}

/* -------------------------------------------------------------------------
   Hero slider — full width; desktop copy no longer squeezed (was max 28rem)
   ------------------------------------------------------------------------- */
.landing-body .slider,
.landing-body .slider-swiper {
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(200px, 42vh, 350px) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 1024px) {
  .landing-body .slider,
  .landing-body .slider-swiper {
    height: min(400px, 52vh) !important;
  }
}

.landing-body .slider-swiper .swiper-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
}

@media (min-width: 1024px) {
  .landing-body .slider-swiper .swiper-wrapper {
    height: min(400px, 52vh) !important;
  }
}

.landing-body .slider-swiper .swiper-slide {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: clamp(0.75rem, 4vw, 1.5rem) clamp(0.75rem, 3vw, 1.25rem);
  box-sizing: border-box;
}

/* Side padding clears swiper arrows on desktop so text can use full width */
@media (min-width: 769px) {
  .landing-body .slider-swiper .swiper-slide {
    padding-left: max(2rem, 4vw);
    padding-right: max(2rem, 4vw);
  }
}

@media (min-width: 1200px) {
  .landing-body .slider-swiper .swiper-slide {
    padding-left: max(2.75rem, 5vw);
    padding-right: max(2.75rem, 5vw);
  }
}

.landing-body .slider-message {
  font-size: clamp(1.1rem, 4.2vw, 2.75rem) !important;
  line-height: 1.28 !important;
  font-weight: 700 !important;
  /* Mobile: avoid edge-to-edge; desktop widened below */
  max-width: min(96vw, 34rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0.25rem 0.75rem;
  box-sizing: border-box;
  text-wrap: balance;
}

@media (min-width: 769px) {
  .landing-body .slider-message {
    /* Wide band: almost full slide minus arrow gutters — fixes “squeezed” look */
    max-width: min(calc(100% - 2rem), 58rem) !important;
    font-size: clamp(1.85rem, 2.85vw, 3.35rem) !important;
    line-height: 1.18 !important;
    letter-spacing: 0.015em;
    font-weight: 800 !important;
    padding: 0.5rem 1rem;
  }
}

@media (min-width: 1200px) {
  .landing-body .slider-message {
    max-width: min(calc(100% - 3rem), 68rem) !important;
    font-size: clamp(2.35rem, 2.5vw, 3.65rem) !important;
    line-height: 1.12 !important;
  }
}

.landing-body .slider-swiper .swiper-button-prev,
.landing-body .slider-swiper .swiper-button-next {
  color: #fff;
  opacity: 0.88;
  width: 2.75rem;
  height: 2.75rem;
}

@media (min-width: 769px) {
  .landing-body .slider-swiper .swiper-button-prev,
  .landing-body .slider-swiper .swiper-button-next {
    width: 3.25rem;
    height: 3.25rem;
  }

  .landing-body .slider-swiper .swiper-button-prev {
    left: 8px;
  }

  .landing-body .slider-swiper .swiper-button-next {
    right: 8px;
  }
}

.landing-body .slider-swiper .swiper-button-prev::after,
.landing-body .slider-swiper .swiper-button-next::after {
  font-size: clamp(1rem, 3vw, 1.75rem) !important;
}

@media (min-width: 769px) {
  .landing-body .slider-swiper .swiper-button-prev::after,
  .landing-body .slider-swiper .swiper-button-next::after {
    font-size: 1.35rem !important;
  }
}

/* -------------------------------------------------------------------------
   Pricing block + bullets
   ------------------------------------------------------------------------- */
#subscription {
  scroll-margin-top: 1rem;
}

.landing-body .vas-pricing-section.pricing-section {
  width: min(100%, 920px);
  max-width: 100%;
  padding-left: clamp(0.75rem, 4vw, 1.5rem);
  padding-right: clamp(0.75rem, 4vw, 1.5rem);
  box-sizing: border-box;
}

.landing-body .pricing-points {
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(0.25rem, 2vw, 0.5rem);
  box-sizing: border-box;
}

.landing-body .pricing-points .points {
  align-items: flex-start;
}

.landing-body .pricing-points .points .validity {
  font-size: clamp(0.875rem, 2.4vw, 1rem) !important;
  line-height: 1.55 !important;
  hyphens: auto;
  word-break: break-word;
}

.landing-body .pricing-points .points img {
  flex-shrink: 0;
  width: 20px;
  height: auto;
}

/* -------------------------------------------------------------------------
   Games + store logos
   ------------------------------------------------------------------------- */
.games-section {
  padding-left: clamp(0.75rem, 4vw, 1.5rem);
  padding-right: clamp(0.75rem, 4vw, 1.5rem);
  box-sizing: border-box;
}

.games-section .row {
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.games-content {
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 769px) {
  .games-content {
    margin-left: 0;
    max-width: 34rem;
  }
}

.games-section .title.gradient-text {
  margin-top: clamp(1.5rem, 6vw, 5rem) !important;
  font-size: clamp(1.35rem, 4vw, 2rem) !important;
  line-height: 1.2 !important;
}

.games-section .subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem) !important;
  line-height: 1.5 !important;
}

.games-section .section-mobile img,
.games-section .section-desktop img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.store-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(2.5rem, 1fr));
  gap: clamp(0.5rem, 2vw, 1rem);
  align-items: center;
  justify-items: center;
  max-width: 100%;
  margin-left: 0 !important;
  margin-bottom: 2rem !important;
  padding: 0.5rem 0;
}

.store-logos-grid img {
  max-height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.92;
}

@media (min-width: 480px) {
  .store-logos-grid img {
    max-height: 32px;
  }
}

/* -------------------------------------------------------------------------
   Play across devices
   ------------------------------------------------------------------------- */
.play-accross-section {
  width: min(100%, 56rem) !important;
  padding: 0 clamp(0.75rem, 4vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 5vw, 3rem) !important;
  box-sizing: border-box;
}

.play-accross-section .play-accross {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  font-size: clamp(1.1rem, 3.5vw, 1.75rem) !important;
  line-height: 1.35 !important;
  margin-bottom: clamp(1rem, 3vw, 2rem) !important;
  text-align: center;
}

.play-accross-section .play-accross .image {
  display: inline-flex;
  align-items: center;
}

.play-accross-section .play-accross img {
  height: clamp(18px, 4vw, 24px) !important;
  width: auto !important;
  vertical-align: middle;
}

/* -------------------------------------------------------------------------
   Legal / FAQ links
   ------------------------------------------------------------------------- */
.legal-links {
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(0.75rem, 4vw, 1.5rem) clamp(2rem, 8vw, 4rem);
  box-sizing: border-box;
}

.legal-link-card {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none !important;
  background: linear-gradient(145deg, #1e1e22, #18181a) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: clamp(0.75rem, 2.5vw, 1.25rem) !important;
  border-radius: 12px !important;
  padding: clamp(0.85rem, 3vw, 1.15rem) clamp(1rem, 3vw, 1.35rem) !important;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 52px;
}

.legal-link-card:hover {
  border-color: rgba(248, 14, 245, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.legal-link-card:focus-visible {
  outline: 2px solid #126fe8;
  outline-offset: 2px;
}

.legal-link-card .faq-title {
  font-size: clamp(0.95rem, 2.8vw, 1.15rem) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #fff !important;
}

.legal-link-card .image {
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   OTP modals — centered, usable on small screens & landscape
   ------------------------------------------------------------------------- */
.landing-body .form-popup {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(calc(100vw - 1.5rem), 26rem) !important;
  max-height: min(90dvh, 34rem) !important;
  margin: 0 !important;
  z-index: 10050 !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem;
  box-sizing: border-box;
}

.landing-body .form-container {
  position: relative !important;
  max-width: 100% !important;
  width: 100%;
  height: auto !important;
  min-height: 0;
  max-height: min(85dvh, 32rem) !important;
  overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 1.75rem) !important;
  box-sizing: border-box;
}

.landing-body .popup-close-btn {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  z-index: 2;
  padding: 0.4rem;
  margin: 0;
  border: none;
  background: transparent;
  color: #fff !important;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.landing-body .popup-close-btn:focus-visible {
  outline: 2px solid #126fe8;
  outline-offset: 2px;
}

.landing-body .title-popup-heading {
  font-size: clamp(1.1rem, 4vw, 1.4rem) !important;
  padding-right: 2rem;
}

.landing-body .popup-button {
  width: min(100%, 16rem) !important;
  min-height: 48px;
  margin-top: 1.25rem !important;
}

.landing-body .input-group {
  flex-wrap: wrap;
}

.landing-body .popup-input-field {
  min-height: 48px;
}

.landing-body #mobileNumberInput {
  flex: 1 1 140px;
  min-width: 0;
}

/* -------------------------------------------------------------------------
   Touch & focus
   ------------------------------------------------------------------------- */
.landing-body .buy-now,
.landing-body .vas-plan-btn {
  min-height: 48px;
}

.landing-body button:focus-visible,
.landing-body .buy-now:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
