:root {
  --mobile-max-width: 430px;
  --bottom-nav-height: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-x: none;
}

#mobile-app,
#mobile-content {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

#mobile-app {
  max-width: var(--mobile-max-width);
  margin: 0 auto;
  position: relative;
  background: #fff;
}

button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* The source poster includes a painted bottom bar from y=2580 to y=2784. */
.poster-page {
  aspect-ratio: 1408 / 2580;
  overflow: hidden;
}

.poster-page > img {
  position: absolute;
  inset: 0 auto auto 0;
}

.poster-page .banner-carousel {
  height: 40.03349%;
}

.poster-page .tile-1,
.poster-page .tile-2,
.poster-page .tile-3 {
  top: 39.6124%;
  height: 14.45737%;
}

.poster-page .tile-4,
.poster-page .tile-5,
.poster-page .tile-6 {
  top: 54.06977%;
  height: 14.53489%;
}

.poster-page .tile-7,
.poster-page .tile-8,
.poster-page .tile-9 {
  top: 68.60466%;
  height: 14.41861%;
}

/* Replace the small labels baked into the poster with crisp, scalable text. */
.poster-page .tile-label {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 4%;
  min-height: 42px;
  padding: 4px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
  color: #17324d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  pointer-events: none;
}

.poster-page .tile-7 .tile-label {
  font-size: 14px;
}

/* Transparent hit area over the 12366 button painted into the source poster. */
.poster-page .hotline-hotspot {
  left: 85.72443%;
  top: 82.13178%;
  width: 12.5%;
  height: 6.93798%;
  z-index: 6;
  border-radius: 50%;
}

.content {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(88px + var(--safe-bottom));
}

.topbar {
  height: calc(62px + var(--safe-top));
  padding-top: var(--safe-top);
}

.bottom-nav {
  z-index: 50;
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(100%, var(--mobile-max-width));
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  transform: translateX(-50%);
  box-shadow: 0 -2px 12px rgba(20, 57, 92, 0.08);
}

.bottom-nav button {
  min-width: 0;
  min-height: 44px;
}

.poster-bottom-nav {
  --poster-nav-height: clamp(52px, 14.53vw, 63px);
  height: calc(var(--poster-nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  overflow: hidden;
  border-top: 0;
  background: #197ed0;
  box-shadow: none;
  isolation: isolate;
}

.poster-bottom-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: var(--poster-nav-height);
  background: var(--poster-nav-image, none) center bottom / 100% auto no-repeat;
  pointer-events: none;
}

.poster-bottom-nav button {
  font-size: 0;
  color: transparent !important;
}

.poster-bottom-nav button span {
  visibility: hidden;
}

.section-poster {
  margin-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
}

.section-back {
  top: calc(10px + var(--safe-top));
}

.section-poster.section-style-6 {
  aspect-ratio: auto;
  height: min(202vw, 869px);
}

.section-poster.section-style-8 {
  aspect-ratio: auto;
  height: min(220vw, 946px);
}

.section-poster.section-style-10 {
  aspect-ratio: auto;
  height: min(240vw, 1032px);
}

.section-style-6 .section-background,
.section-style-8 .section-background,
.section-style-10 .section-background {
  object-fit: fill;
}

.section-style-6 .section-art-menu,
.section-style-8 .section-art-menu,
.section-style-10 .section-art-menu {
  min-height: 44px;
}

.section-style-6 .section-art-menu img {
  width: 64px;
  height: 64px;
}

.section-style-8 .section-art-menu {
  gap: 6px;
}

.section-style-8 .section-art-menu img {
  width: 58px;
  height: 58px;
}

.section-style-10 .section-art-menu {
  gap: 10px;
  padding-inline: 6%;
}

.section-style-10 .section-art-menu img {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.section-style-10 .section-art-menu b {
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 360px) {
  .poster-page .tile-label {
    min-height: 40px;
    font-size: 14px;
  }

  .poster-page .tile-7 .tile-label {
    font-size: 14px;
  }

  .section-heading {
    max-width: 64%;
  }

  .section-style-6 .section-art-menu img {
    width: 56px;
    height: 56px;
  }

  .section-style-8 .section-art-menu img {
    width: 50px;
    height: 50px;
  }

  .section-style-10 .section-art-menu {
    gap: 7px;
    padding-inline: 4%;
  }

  .section-style-10 .section-art-menu img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .section-style-10 .section-art-menu b {
    font-size: 12px;
  }
}

@media (min-width: 700px) {
  #mobile-app {
    box-shadow: 0 0 30px rgba(21, 60, 93, 0.11);
  }
}

@supports (padding-bottom: constant(safe-area-inset-bottom)) {
  .content {
    padding-bottom: calc(88px + constant(safe-area-inset-bottom));
  }

  .bottom-nav {
    height: calc(var(--bottom-nav-height) + constant(safe-area-inset-bottom));
    padding-bottom: constant(safe-area-inset-bottom);
  }
}
