#ads-root {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

@supports (height: 100dvh) {
  #ads-root {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.adsPageShell {
  --ads-safe-area-top: env(safe-area-inset-top, 0px);
  --ads-safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --ads-action-bar-height: 72px;
  --safe-area-top: var(--ads-safe-area-top);
  --safe-area-bottom: var(--ads-safe-area-bottom);
  height: 100svh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: #070707;
  font-family: 'Noto Sans Thai', var(--font-family-content);
}

@supports (height: 100dvh) {
  .adsPageShell {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.adsHeaderSticky {
  flex: 0 0 auto;
  z-index: 30;
}

.adsHeaderSticky .brandHeaderBar {
  max-width: 600px;
}

.adsMain {
  width: 100%;
  max-width: 600px;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: #070707;
}

.adsHero {
  position: relative;
  isolation: isolate;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #070707;
}

.adsHero::before,
.adsHero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.adsHero::before {
  z-index: -2;
  background-image: var(--ads-hero-image);
  background-position: var(--ads-hero-position, 50% 30%);
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.03) brightness(0.88);
  opacity: 1;
}

.adsHero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.1) 0%, rgba(7, 7, 7, 0.3) 38%, rgba(7, 7, 7, 0.84) 100%),
    linear-gradient(90deg, rgba(7, 7, 7, 0.74) 0%, rgba(7, 7, 7, 0.42) 58%, rgba(7, 7, 7, 0.08) 100%);
}

.adsHeroContent {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-4)
    calc(var(--ads-action-bar-height) + var(--ads-safe-area-bottom) + var(--space-6));
}

.adsSmallLabel {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Inter', var(--font-family-content);
  font-size: var(--font-size-100);
  line-height: var(--line-height-ui);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  text-transform: uppercase;
}

.adsHeroTitle {
  max-width: 100%;
  color: #fff;
  font-size: 22px;
  line-height: 1.06;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
}

.adsHeroTitleLine {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
  line-break: strict;
  hyphens: none;
}

.adsHeroIntro {
  max-width: 29em;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-400);
  line-height: 1.58;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.adsHeroActions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.adsPrimaryButton,
.adsMobileSecondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.adsPrimaryButton {
  width: 100%;
  min-height: 54px;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: #050507;
  font-size: var(--font-size-400);
  line-height: var(--line-height-ui);
  font-weight: var(--font-weight-bold);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.adsPrimaryButton:hover,
.adsPrimaryButton:focus-visible {
  background: #eceff2;
  border-color: #eceff2;
}

.adsMobileSecondary:hover,
.adsMobileSecondary:focus-visible {
  color: var(--text-action-hover);
  border-color: rgba(15, 17, 20, 0.26);
}

.adsPrimaryButton:focus-visible,
.adsMobileSecondary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.adsPrimaryButton:active,
.adsMobileSecondary:active {
  transform: translateY(1px);
}

.adsMobileActionBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: calc(var(--ads-action-bar-height) + var(--ads-safe-area-bottom));
  padding: 10px 10px calc(10px + var(--ads-safe-area-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -16px 34px rgba(8, 10, 14, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.adsMobileActionBar[data-action-count='1'] {
  grid-template-columns: minmax(0, 1fr);
}

.adsMobileSecondary {
  min-height: 48px;
  gap: 6px;
  border-radius: 8px;
  font-size: var(--font-size-300);
  line-height: 1.2;
  font-weight: var(--font-weight-bold);
  white-space: normal;
}

.adsMobileSecondary {
  padding: 8px 8px;
  border: 1px solid rgba(13, 15, 18, 0.14);
  background: #fff;
  color: var(--text-primary);
}

.adsNotFound {
  min-height: 60svh;
}

.adsNotFound .adsHeroContent {
  justify-content: center;
  padding-bottom: var(--space-8);
}

@media (max-width: 359px) {
  .adsHeroTitle {
    font-size: 21px;
  }

  .adsHeroContent {
    gap: var(--space-3);
    padding-top: var(--space-5);
    padding-bottom: calc(var(--ads-action-bar-height) + var(--ads-safe-area-bottom) + var(--space-4));
  }

  .adsMobileActionBar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .adsMobileSecondary {
    font-size: var(--font-size-200);
  }
}

@media (max-height: 620px) {
  .adsHeroContent {
    gap: var(--space-3);
    padding-top: var(--space-5);
    padding-bottom: calc(var(--ads-action-bar-height) + var(--ads-safe-area-bottom) + var(--space-4));
  }

  .adsHeroTitle {
    font-size: 21px;
  }

  .adsHeroIntro {
    font-size: var(--font-size-300);
    line-height: 1.5;
  }

  .adsPrimaryButton {
    min-height: 50px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (min-width: 720px) {
  .adsMain {
    padding-bottom: 0;
  }

  .adsHero {
    min-height: 0;
  }

  .adsHeroContent {
    padding: var(--space-8) var(--space-6) var(--space-8);
  }

  .adsHeroTitle {
    max-width: 100%;
    font-size: 36px;
  }

  .adsHeroIntro {
    font-size: var(--font-size-500);
  }

  .adsPrimaryButton {
    width: auto;
    min-width: 258px;
  }

  .adsMobileActionBar {
    display: none;
  }
}
