/* CSS custom properties — overridden at runtime by main.js */
:root {
  --primary-color: #45b553;
  --bg-gradient-start: #0a1a00;
  --bg-gradient-end: #1a3a00;
}

body, html {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.disclaimer-text {
  font-size: 10px;
  line-height: 1.5;
  color: #404040;
  text-align: center;
  padding: 0 1rem;
  margin-top: 25px;
}

/* ===== MOBILE LAYOUT ===== */
@media only screen and (max-width: 767px),
       only screen and (max-height: 599px) {
  body, html {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .bg-mobile {
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .bg-pc { display: none !important; }

  .main-wrapper {
    width: 100%;
    height: 50vh;
  }

  .main-wrapper .logo_box {
    text-align: center;
    height: 2.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.9375rem;
    position: relative;
    z-index: 2;
  }

  .main-wrapper .logo_box img {
    height: 3.2rem;
    vertical-align: middle;
    padding-top: 2rem;
  }

  .DownloadApp_container .my-swipe.van-swipe {
    display: flex;
    flex: 1;
    height: 47vh;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }

  .DownloadApp_container .my-swipe.van-swipe .van-swipe__track {
    transition-duration: 500ms;
    display: flex;
    height: 100%;
    overflow: visible !important;
  }

  .DownloadApp_container .van-swipe-item {
    width: 100vw !important;
    height: auto !important;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .DownloadApp_container .van-swipe-item .download_slide_img {
    width: auto !important;
    height: auto !important;
    max-width: 90vw;
    max-height: 60vh;
    object-fit: contain !important;
    margin: auto;
    display: block;
    margin-top: -4vh;
  }

  .DownloadApp_container .van-swipe__indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    display: flex;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    cursor: grab;
  }

  .DownloadApp_container .van-swipe__indicators .van-swipe__indicator {
    margin: auto;
    margin-right: 0.875rem;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: #a19f9f;
    opacity: 0.3;
    transition: opacity 0.2s, background-color 0.2s;
  }

  .DownloadApp_container .van-swipe__indicators .van-swipe__indicator--active {
    width: 1.25rem !important;
    height: 0.75rem !important;
    border: 0.0625rem solid #eee;
    border-radius: 0.4688rem;
    background-color: #fff !important;
    box-shadow: 0 0.0625rem 0.25rem 0 rgba(0,0,0,0.1);
    opacity: 1;
  }

  .DownloadApp_Footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #fff;
    padding: 1rem;
    box-sizing: border-box;
    margin: 1rem 0 0 0;
  }

  .DownloadApp_Footer .btn {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 auto;
  }

  .DownloadApp_Footer .btn .down_btn3 {
    height: 3.25rem;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1rem;
    border: 0;
    cursor: pointer;
  }

  .DownloadApp_Footer .btn .down_btn4 {
    margin-top: 0.9375rem;
    height: 3.25rem;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1rem;
    border: 0;
    text-decoration: none;
  }

  .DownloadApp_Footer .bottom {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .DownloadApp_Footer .bottom .icon {
    padding: 0.8rem 0;
    display: flex;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
  }

  .foot { margin-top: 0; }
  .foot-i { justify-content: center; display: flex; }
  .foot-img { width: 85vw; max-width: 360px; text-align: center; }

  /* Tutorial overlay */
  .van-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2007;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
  }

  .van-popup--bottom {
    height: 77%;
    z-index: 2008;
    border-radius: 16px 16px 0 0;
    bottom: 0;
    left: 0;
    width: 100%;
    position: fixed;
    max-height: 100%;
    overflow-y: auto;
    background-color: #fff;
  }

  .van-popup--bottom .q1Mask-wrapper { position: absolute; display: block; }
  .van-popup--bottom .q1Mask-wrapper .q1Mask-header {
    height: 1.2rem;
    background-color: white;
    width: 100%;
    border-radius: 1rem 1rem 0 0;
    line-height: 1.2rem;
    text-align: center;
    position: fixed;
  }

  .van-popup--bottom .q1Mask-wrapper .q1Mask-header::before {
    position: absolute;
    content: "";
    display: block;
    width: 2.25rem;
    height: 0.25rem;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0.125rem;
    background-color: rgba(0,0,0,0.14);
  }

  .van-popup--bottom .q1Mask-wrapper .q1Mask-img {
    width: 100%;
    height: 100%;
    padding: 0 0 3.125rem;
  }

  .van-popup--bottom .q1Mask-wrapper .q1Mask-img .q1Mask-img_connect { width: 100%; }

  .van-popup--bottom .q1Mask-wrapper .q1Mask-img p {
    color: #333;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5625rem 0 0;
    margin: 1em 0;
  }

  .van-popup--bottom .q1Mask-wrapper .q1Mask-img img { width: 100%; }
}

  /* iOS TestFlight modal — aligned with 绿茵直播_ios_popup reference.
     Outside the mobile query so the unfolded iPhone Duo (PC layout) can open it too. */
  .TestFlightInfoModal_testFlightModal__iBnYU {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(51, 51, 51, 0.5);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 6;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu {
    width: 298px;
    max-width: calc(100% - 48px);
    min-height: 358px;
    top: 50%;
    margin: 0 auto;
    transform: translateY(calc(-50% + 0.5px));
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    height: auto;
    max-height: 90%;
    border-radius: 20px;
    background-color: #fff;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_close__2b1rI {
    width: 32px;
    height: 32px;
    position: absolute;
    right: 8px;
    top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    user-select: none;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_scroll__1tHVy {
    overflow-y: scroll;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_scroll__1tHVy > * { flex-shrink: 0; }
  .TestFlightInfoModal_testFlightModal__iBnYU .modal-aside { display: contents; }
  .TestFlightInfoModal_testFlightModal__iBnYU #ios-tutorial-video-wrap { order: 1; }
  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_stepBlock__zXUCQ { order: 2; }
  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_tips__2Gxiw { order: 3; }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_stepBlock__zXUCQ {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    padding: 16px 12px 12px;
    border-radius: 12px;
    margin-top: 15px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_contentBlock__383F0 {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    padding-left: 4px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_stepNumber__9mhnb {
    font-size: 14px;
    line-height: 40px;
    font-weight: 500;
    height: 40px;
    color: #4c9eea;
    background-color: #e3ecf3;
    border-radius: 8px;
    padding: 0 4px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_titleBox__PsTLP {
    width: 100%;
    color: #333;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_title__32q9V {
    width: 80%;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_subtitle__8NzRg {
    font-size: 12px;
    line-height: 21px;
    color: #333;
    font-weight: 600;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_text__2ishG {
    font-size: 10px;
    line-height: 18px;
    color: #333;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_tips__2Gxiw {
    font-size: 12px;
    line-height: 18px;
    color: #999;
    text-align: center;
    margin-top: 12px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_btn__2-4Jj {
    box-sizing: border-box;
    margin-top: 11px;
    width: 100%;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_flex__1yqBi {
    display: flex;
    align-items: center;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_flex__1yqBi.TestFlightInfoModal_col__28nQ1 {
    flex-direction: column;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_mt6__2fTwx {
    margin-top: 6px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_mt15__2Pqtx {
    margin-top: 15px;
    width: 100%;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_mt20__1eg6Q {
    margin-top: 20px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_mr6__Tksat {
    margin-right: 6px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_mr8__gQf5M {
    margin-right: 8px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_titleImgContainer__3ICaw {
    width: 36px;
    height: 36px;
    margin-top: 6px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_icon16__NECTC {
    width: 16px;
    height: 16px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_icon20__1WgRG {
    width: 20px;
    height: 20px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .TestFlightInfoModal_icon24__1AFuV {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .ios-tutorial-video-inner {
    width: 100%;
    height: 168px;
  }

  .TestFlightInfoModal_testFlightModal__iBnYU .TestFlightInfoModal_modal__u9zTu .ios-tutorial-video-inner video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

@media only screen and (max-width: 767px),
       only screen and (max-height: 599px) {
  .button_wrapper { cursor: pointer; }
}

/* ===== PC LAYOUT ===== */
@media only screen and (min-width: 768px),
       only screen and (min-width: 600px) and (min-aspect-ratio: 3/4) and (max-aspect-ratio: 4/3) {
  img {
    overflow-clip-margin: content-box;
    overflow: clip;
    pointer-events: none;
  }

  .bg-mobile { display: none !important; }

  .bg-pc {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  .logo-pc img {
    max-width: 11rem;
    height: auto;
    padding-left: 10vw;
    padding-top: 3vw;
  }

  .logo-container-pc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20vw;
    margin-top: -3vh;
  }

  .downloadApp_left {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Left slogan swiper */
  .downloadApp_left .pcSwiper_2.van-swipe {
    height: 200px;
    width: 440px;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }

  .downloadApp_left .van-swipe__track--vertical {
    display: flex;
    flex-direction: column;
  }

  .downloadApp_left .van-swipe-item {
    height: 200px;
    flex-shrink: 0;
  }

  .downloadApp_left .van-swipe-item .download_slide_pc_img {
    width: 100%;
    height: 200px;
    object-fit: contain;
  }

  /* QR + buttons block */
  .downloadApp_block {
    display: flex;
    align-items: center;
  }

  .downloadApp_block .downloadApp_qrcode {
    background-color: #fff;
    box-shadow: 4px 4px 16px 0 rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
  }

  .downloadApp_block .downloadApp_btns {
    margin-left: 21px;
    display: flex;
    flex-direction: column;
  }

  .downloadApp_block .downloadApp_btn {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .downloadApp_block .downloadApp_btn .downloadApp_icon {
    width: 32px;
    margin-right: 9px;
  }

  .downloadApp_block .downloadApp_btn .downloadApp_version { color: #333; }
  .downloadApp_block .downloadApp_btn .downloadApp_version .downloadApp_version_text1 {
    font-size: 16px;
    margin: 0 0 1px;
    line-height: 18px;
  }
  .downloadApp_block .downloadApp_btn .downloadApp_version .downloadApp_version_text2 {
    font-size: 12px;
    line-height: 14px;
    margin: 0;
  }

  .downloadApp_left .button_wrapper.downloadApp_webButton {
    height: 52px;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
    border: 0;
    text-decoration: none;
    box-sizing: border-box;
  }

  /* Right image swiper */
  .downloadApp_right .pcSwiper.van-swipe {
    height: 700px;
    width: 550px;
    overflow: hidden;
    position: relative;
  }

  .downloadApp_right .van-swipe__track--vertical {
    display: flex;
    flex-direction: column;
  }

  .downloadApp_right .van-swipe-item {
    height: 700px;
    flex-shrink: 0;
  }

  .downloadApp_right .van-swipe-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    outline: none;
    display: block;
  }

  /* Hide right-side indicators; navigation via left indicators */
  #pc .van-swipe__indicators {
    display: none !important;
  }

  .foot-pc {
    position: fixed;
    bottom: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.8rem;
    width: 100%;
    color: #404040;
    font-size: 0.8rem;
    padding-left: 8vw;
  }
}

/* iPad Pro and similar landscape tablets use the PC layout, but need narrower columns. */
@media only screen and (min-width: 768px) and (max-width: 1400px) {
  .logo-pc img {
    max-width: clamp(8rem, 14vw, 10rem);
    padding-left: clamp(24px, 6vw, 72px);
    padding-top: clamp(16px, 2.5vw, 32px);
  }

  .logo-container-pc {
    justify-content: center;
    gap: clamp(20px, 4vw, 56px);
    padding: 0 clamp(18px, 8vw, 110px);
    margin-top: clamp(-24px, -2vh, 0px);
  }

  .downloadApp_left .pcSwiper_2.van-swipe {
    width: clamp(300px, 34vw, 440px);
    height: clamp(136px, 15.5vw, 200px);
  }

  .downloadApp_left .van-swipe-item {
    height: clamp(136px, 15.5vw, 200px);
  }

  .downloadApp_left .van-swipe-item .download_slide_pc_img {
    height: 100%;
  }

  .downloadApp_right .pcSwiper.van-swipe {
    width: clamp(360px, 37vw, 550px);
    height: clamp(458px, 47vw, 700px);
  }

  .downloadApp_right .van-swipe-item {
    height: clamp(458px, 47vw, 700px);
  }
}

/* JS decides the active layout; these rules keep media queries from fighting it. */
html.layout-mobile #mobile.bg-mobile {
  display: flex !important;
}

html.layout-mobile #pc.bg-pc {
  display: none !important;
}

html.layout-pc #mobile.bg-mobile {
  display: none !important;
}

html.layout-pc #pc.bg-pc {
  display: block !important;
}

/* Unfolded iPhone Duo (DESIGN-115): download button replaces QR + iOS/Android rows */
html.layout-duo .downloadApp_block .downloadApp_qrcode,
html.layout-duo .downloadApp_block .downloadApp_btns {
  display: none;
}

html.layout-duo .downloadApp_block {
  width: 100%;
}

html.layout-duo .downloadApp_block .downloadApp_duoBtn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: var(--primary-color);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
}

/*
 * Duo landscape (folded + unfolded) and phone H5 landscape: one screen, no scroll.
 * Logo + slogan + buttons in the left column, image slider on the right; every size
 * follows the viewport. Folded keeps the compact caps (iPhone SE landscape ~331px tall).
 */
html.layout-duo {
  --duo-pad-y: 2lvh;
  --duo-pad-x: 3vw;
  --duo-gap-y: 4.5lvh;
  --duo-gap-x: 2vw;
  --duo-left: min(576px, 45vw);
  --duo-left-gap: 3.15lvh;
  --duo-logo-w: min(288px, 30.6vw);
  --duo-logo-h: max(47px, 9lvh);
  --duo-slogan: max(65px, 13.5lvh);
  --duo-btn: max(50px, 11.7lvh);
  --duo-btn-font: clamp(16px, 3.06lvh, 21.6px);
  --duo-right-w: min(504px, 37.8vw);
  --duo-right-h: min(calc(var(--duo-right-w) / 0.9), calc(100dvh - 4lvh));
  --duo-foot: 0px;
}
/* Target shot has no league strip; it was reserving space and shrinking the columns. */
html.layout-duo:not(.layout-duo-folded) .foot-pc { display: none; }
html.layout-duo:not(.layout-duo-folded) #pc.bg-pc { align-content: space-between; }

html.layout-duo-folded {
  --duo-pad-y: 8px;
  --duo-pad-x: 12px;
  --duo-gap-y: 8px;
  --duo-gap-x: 12px;
  --duo-left: min(240px, 42vw);
  --duo-left-gap: 8px;
  --duo-logo-w: min(120px, 28vw);
  --duo-logo-h: min(40px, 12dvh);
  --duo-slogan: min(96px, 26dvh);
  --duo-btn: min(44px, 13dvh);
  --duo-btn-font: 16px;
  --duo-right-w: min(286px, calc(100dvh - 24px), 48vw);
  --duo-right-h: var(--duo-right-w);
  --duo-foot: 0px;
}

html.layout-duo,
html.layout-duo body {
  height: 100%;
  overflow: hidden;
}

html.layout-duo #pc.bg-pc {
  display: flex !important;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: flex-start;
  height: 100%;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  box-sizing: border-box;
  padding: var(--duo-pad-y) var(--duo-pad-x) calc(var(--duo-pad-y) + var(--duo-foot));
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  gap: var(--duo-gap-y) var(--duo-gap-x);
}

html.layout-duo .logo-pc {
  flex: 0 0 auto;
  width: var(--duo-left);
}

html.layout-duo .logo-pc img {
  max-width: var(--duo-logo-w);
  max-height: var(--duo-logo-h);
  width: auto;
  height: auto;
  padding: 0;
  display: block;
}

html.layout-duo .logo-container-pc {
  display: contents;
  margin: 0;
  padding: 0;
}

html.layout-duo .downloadApp_left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--duo-left-gap);
  flex: 0 0 auto;
  width: var(--duo-left);
  max-width: var(--duo-left);
  min-width: 0;
}

html.layout-duo .downloadApp_left .pcSwiper_2.van-swipe {
  width: 100%;
  /* Explicit height so the JS vertical swiper can measure a real slide step. */
  height: var(--duo-slogan);
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

html.layout-duo .downloadApp_left .van-swipe__track--vertical {
  display: flex;
  flex-direction: column;
}

html.layout-duo .downloadApp_left .van-swipe-item {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

html.layout-duo .downloadApp_left .download_slide_pc_img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

html.layout-duo .downloadApp_block {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
}

html.layout-duo .downloadApp_block .downloadApp_duoBtn,
html.layout-duo .downloadApp_left .button_wrapper.downloadApp_webButton {
  height: var(--duo-btn);
  width: 100%;
  box-sizing: border-box;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: var(--duo-btn-font);
  border: 0;
  text-decoration: none;
  flex: 0 0 auto;
}

/* Tall right column forces a second flex line, so the slider sits beside logo+actions. */
html.layout-duo .downloadApp_right {
  flex: 0 0 auto;
  width: var(--duo-right-w);
  height: calc(100dvh - 2 * var(--duo-pad-y) - var(--duo-foot));
  max-height: calc(100dvh - 2 * var(--duo-pad-y) - var(--duo-foot));
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.layout-duo .downloadApp_right .pcSwiper.van-swipe {
  width: var(--duo-right-w);
  height: var(--duo-right-h);
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

html.layout-duo .downloadApp_right .van-swipe__track--vertical {
  display: flex;
  flex-direction: column;
}

html.layout-duo .downloadApp_right .van-swipe-item {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

html.layout-duo .downloadApp_right .van-swipe-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

html.layout-duo #pc .van-swipe__indicators {
  display: none !important;
}

/* Short landscape has no room for the league strip; keep the two columns on screen. */
html.layout-duo-folded .foot-pc {
  display: none;
}

/* iPhone portrait: one column, 16:9 video under the title. Landscape: steps left;
   video, then reminder, right, with the video top level with the first step. */
html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .ios-tutorial-video-inner {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

@media (orientation: portrait) {
  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .TestFlightInfoModal_modal__u9zTu {
    width: calc(100% - 32px);
    max-width: 380px;
    max-height: calc(100% - 32px);
    overflow: auto;
  }
}

@media (orientation: landscape) {
  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .TestFlightInfoModal_modal__u9zTu {
    width: min(780px, calc(100vw - 24px));
    max-width: calc(100% - 24px);
    min-height: 0;
    max-height: calc(100% - 24px);
    padding: 16px;
    overflow: auto;
  }

  /* The trailing 1fr row absorbs a taller right column so the left steps stay packed. */
  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .TestFlightInfoModal_scroll__1tHVy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 16px;
    align-items: start;
    overflow: visible;
  }

  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .TestFlightInfoModal_scroll__1tHVy > * {
    grid-column: 1;
  }
  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .TestFlightInfoModal_scroll__1tHVy > .TestFlightInfoModal_titleBox__PsTLP {
    grid-column: 1 / -1;
  }

  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .TestFlightInfoModal_scroll__1tHVy > .modal-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-column: 2;
    /* Row 1 is the title; the video starts with the first step card. */
    grid-row: 2 / -1;
  }

  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .modal-aside > * {
    margin-top: 0;
  }

  /* The step cards' 15px top margin would drop the first card below the video. */
  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .TestFlightInfoModal_titleBox__PsTLP {
    margin-bottom: 15px;
  }
  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .TestFlightInfoModal_title__32q9V {
    width: auto;
  }
  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .TestFlightInfoModal_stepBlock__zXUCQ {
    margin-top: 0;
  }
  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .TestFlightInfoModal_stepBlock__zXUCQ + .TestFlightInfoModal_stepBlock__zXUCQ {
    margin-top: 15px;
  }

  html.iphone .TestFlightInfoModal_testFlightModal__iBnYU.has-video .TestFlightInfoModal_close__2b1rI {
    position: static;
    flex: 0 0 24px;
    height: 24px;
    margin-left: auto;
  }
}
