:root {
  --page-max: 375px;
  --c-text: #ffffff;
  --c-gold: #e8c76b;
  --bg-deep: #0a1628;
  --bg-strip: #050a14;
  --footer-h: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  min-height: 100%;
  height: 100%;
  /* Match page background to avoid default white / color mismatch at edges */
  background-color: var(--bg-deep);
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--c-text);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  box-sizing: border-box;
  /* Safe-area insets: notch / home indicator; same fill color to reduce edge gaps */
  padding-top: calc(env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Upper block: hero background + content */
.page-upper {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  background: var(--bg-deep) url("../img3/bg.png") no-repeat top center;
  background-size: 100% auto;
}

.overlay {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px 16px;
  overflow: visible;
  z-index: 1;
}

.overlay::-webkit-scrollbar {
  display: none;
}

.mid-glow {
  width: 100%;
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
}

.mid-glow__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lower block: steps → gradient glow → footer; extra padding below steps banner */
.page-lower {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg-deep) url("../img3/bottom-strip-bg.png") no-repeat center top;
  background-size: 100% auto;
  padding-top: 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.top-bar {
  width: calc(100% + 20px);
  margin: -10px -10px 2px;
  padding: 3px 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: url("../img3/title-bar-bg.png") repeat-x center top;
  background-size: auto 100%;
  min-height: 50px;
  border-radius: 0;
}

.top-bar__logo {
  height: 22px;
  width: auto;
  max-width: 44%;
  object-fit: contain;
  display: block;
}

.hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0 2px;
  flex-shrink: 0;
}

.hero-header__left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.hero-ipl {
  height: 58px;
  width: auto;
  max-width: 62%;
  object-fit: contain;
  display: block;
}

.hero-partner {
  height: auto;
  max-height: 52px;
  width: auto;
  max-width: 48%;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 5px;
  align-self: flex-start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
  margin-top: 6px;
  flex-shrink: 0;
}

.hero-year {
  width: min(88%, 320px);
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0;
}

.hero-off {
  width: min(100%, 360px);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0;
}

.hero-title-deco {
  width: min(92%, 340px);
  height: auto;
  display: block;
  object-fit: contain;
  margin-top: -4px;
}

.hero-subline {
  font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  margin-top: 4px;
  line-height: 1.2;
}

.hero-promo {
  width: min(92%, 322px);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0;
}

.hero-players {
  width: 105%;
  margin-top: 18px;
  flex-shrink: 0;
  max-height: min(86vw, 340px);
  overflow: hidden;
  border-radius: 8px;
}

.hero-players__img {
  width: 100%;
  height: auto;
  max-height: min(86vw, 340px);
  display: block;
  object-fit: contain;
  object-position: center center;
}

.cta-wrap {
  width: 100%;
  max-width: 352px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
  flex-shrink: 0;
}

.cta-btn {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.cta-btn-bg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  border-radius: 14px;
}

.cta-btn-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: clamp(0.95rem, 4.2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  pointer-events: none;
  padding: 0 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Steps section: extra bottom padding below banner image */
.how-strip {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding: 8px 10px 40px;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
}

.how-strip__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-bar {
  width: 100%;
  max-width: var(--page-max);
  min-height: var(--footer-h);
  position: relative;
  margin-top: 0;
  flex-shrink: 0;
}

.footer-bar-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  min-height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 14px;
  background: transparent;
  box-sizing: border-box;
}

.footer-trust-img {
  flex: 1;
  min-width: 0;
  max-width: 78%;
  width: auto;
  max-height: 40px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.footer-btn {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  line-height: 0;
  border-radius: 12px;
}

.footer-btn-bg {
  display: block;
  height: auto;
  max-height: 36px;
  width: auto;
  pointer-events: none;
}

.footer-btn-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: clamp(0.75rem, 3vw, 0.9rem);
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
}

/* @media (min-width: 376px) {
  body {
    padding: 16px 0;
  }
} */
