/* ============================================================
 * Home Swiper / Sections / Overlays / Footer (extends home.css)
 * Loaded after home.css. Keeps refactor changes isolated.
 * ============================================================ */

/* --- swiper container (vertical, full stage) --- */
.home-swiper {
    position: absolute;
    /* [inset-fallback] iOS<14.5 不支持 inset 简写，勿删 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 30;
    width: 100%;
    height: 100%;
    overflow: hidden
}

.home-swiper .swiper-wrapper {
    height: 100%
}

.home-section {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden
}

/* --- hero overlay group (kept above swiper) --- */
.hero-overlays {
    position: absolute;
    /* [inset-fallback] iOS<14.5 不支持 inset 简写，勿删 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 120;
    pointer-events: none
}

.hero-overlays>* {
    pointer-events: auto
}

/* --- overlays cross-section transitions --- */
.topbar,
.social-pill,
.social-rail,
.wishlist-rail,
.home-wave {
    transition: opacity .28s var(--ease-out), transform .28s var(--ease-out)
}

.is-overlay-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(.12rem)
}

/* --- home-wave above swiper, but below topbar/dialog --- */
.home-wave {
    z-index: 110
}

/* --- right-side section dots: small + bottom-right to clear wishlist-rail --- */
.section-dots {
    position: absolute;
    right: .14rem;
    bottom: 1.6rem;
    z-index: 140;
    display: grid;
    gap: .14rem;
    padding: .12rem .08rem;
    border-radius: .2rem;
    background: rgba(33, 32, 29, .55);
    list-style: none
}

.section-dots__item {
    line-height: 0
}

.section-dots__btn {
    display: block;
    width: .18rem;
    height: .18rem;
    border-radius: 50%;
    background: rgba(255, 244, 215, .4);
    box-shadow: inset 0 0 0 .02rem rgba(255, 244, 215, .6);
    transition: background .2s var(--ease-out), transform .2s var(--ease-out)
}

.section-dots__btn.is-active {
    background: #ffc64d;
    transform: scale(1.2);
    box-shadow: inset 0 0 0 .02rem #ffc64d, 0 0 0 .04rem rgba(255, 198, 77, .25)
}

body[data-section="page5"] .section-dots {
    background: rgba(38, 37, 34, .18)
}

body[data-section="page5"] .section-dots__btn {
    background: rgba(38, 37, 34, .25);
    box-shadow: inset 0 0 0 .02rem rgba(38, 37, 34, .45)
}

body[data-section="page5"] .section-dots__btn.is-active {
    background: #ff9a3c;
    box-shadow: inset 0 0 0 .02rem #ff9a3c
}

/* ============================================================
 * Section 2: Page2 (Duck Canvas)
 * ============================================================ */
.home-section--page2 {
    background-color: #f9c150;
    overflow: hidden;
    isolation: isolate
}

/* Duck canvas background container */
.duck-bg {
    position: absolute;
    /* [inset-fallback] iOS<14.5 不支持 inset 简写，勿删 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none
}

.duck-bg__canvas {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    display: block;
    pointer-events: none;
    z-index: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden
}

.page2-content {
    position: absolute;
    /* [inset-fallback] iOS<14.5 不支持 inset 简写，勿删 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform
}

/* 底部装饰条（贴在 page2-content 底缘，略微溢出） */
.page2-content__bottom-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.2rem;
    height: .6rem;
    pointer-events: none;
    background-color: #000;
}

/* Footer decoration bar */
.duck-footer-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 10.8rem;
    height: 1.76rem;
    background: url('/m/assets/images/page2/footer-bg.png') 50% 50% / 100% 100% no-repeat;
    z-index: 10;
    user-select: none;
    pointer-events: none;
    /* display: flex;
    align-items: center; */
}

/* Footer content row */
.duck-footer-content {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.16rem;
    pointer-events: auto;
    white-space: nowrap
}

/* [gap-fallback:iOS13] .duck-footer-content */
.duck-footer-content > * + * { margin-left: 0.16rem; }
@supports (inset-inline: 0) {
  .duck-footer-content { gap: 0.16rem; }
  .duck-footer-content > * + * { margin-left: 0; }
}

.duck-footer-content__icon {
    width: 0.46rem;
    height: auto;
    flex-shrink: 0
}

.duck-footer-content__text {
    /* font-family: "HYYouYuan", "FZLanTingYuanS-DB-GB", "Arial Rounded MT Bold", Arial, Helvetica, sans-serif; */
    font-family: "FZLANTY_ZHONGCUJW--GB1-0";
    font-size: 0.35rem;
    /* font-weight: 500; */
    color: #fff;
    line-height: 1.2;
    font-weight: normal;
    font-stretch: normal;
    letter-spacing: 0px;
    color: #f3efe3;
}

.duck-footer-content__num {
    font-style: normal;
    font-weight: 700
}

.duck-footer-content__rule {
    width: 0.42rem;
    height: 0.42rem;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer
}

.duck-footer-content__rule img {
    width: 100%;
    height: 100%
}

[lang="ja"] .duck-footer-content__text {
    font-family: "ja1";
}

[lang="en"] .duck-footer-content__text {
    font-family: "en1zc";
}

/* --- Countdown: Sign-up ends --- */
.countdown-signup {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* bottom: 5.78rem; */
    bottom: 29%;
    width: 7.23rem;
    z-index: 10
}

.countdown-signup__bg {
    width: 100%;
    height: auto;
    display: block
}

.countdown-signup__timer {
    position: absolute;
    bottom: 0.6rem;
    left: 61%;
    transform: translateX(-50%) rotate(-3deg);
    display: flex;
    align-items: center;
    gap: 0.08rem;
    width: max-content;
    font-family: "hanyuanyouyuan";
    /* font-weight: 900; */
    color: #c7494a;
    font-size: 0.7rem;
    line-height: 1;
    letter-spacing: -.03rem;
}

/* [gap-fallback:iOS13] .countdown-signup__timer */
.countdown-signup__timer > * + * { margin-left: 0.08rem; }
@supports (inset-inline: 0) {
  .countdown-signup__timer { gap: 0.08rem; }
  .countdown-signup__timer > * + * { margin-left: 0; }
}

.countdown-signup__digit {
    text-align: center
}

.countdown-signup__days-group {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    line-height: 1;
}

.countdown-signup__unit {
    display: inline-block;
    font-size: 0.2rem;
    font-weight: 900;
    line-height: 1;
    margin-left: 0.02rem;
    margin-top: 0.05rem;
    align-self: flex-start;
    white-space: nowrap;
    font-family: "common3";
}

[lang="ja"] .countdown-signup__unit {
    font-size: 0.28rem;
}

.countdown-signup__sep {
    display: block;
    /* font-weight: 900; */
    /* margin: 0 .02rem; */
    /* 补偿字体度量：冒号字形视觉中心比数字低约0.1em，上移对齐 */
    transform: translateY(-0.1em);
}

/* --- Page2: Invite text --- */
.page2-invite-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* bottom: 20%; */
    bottom: 19%;
    width: 9rem;
    z-index: 10;
    font-family: "HYYouYuan", "Arial Rounded MT Bold", Arial, Helvetica, sans-serif;
    font-size: .57rem;
    line-height: .57rem;
    color: #2a2823;
    text-align: center;
    white-space: nowrap;
}

[lang="ja"] .page2-invite-text {
    font-family: "ja2";
    font-size: 0.66rem;
}

[lang="en"] .page2-invite-text {
    width: 10.8rem;
    white-space: nowrap;
    letter-spacing: -.02rem;
}

[lang="ja"].short-screen .page2-invite-text {
    bottom: 3.6rem;
}

.short-screen .page2-invite-text {
    bottom: 3.4rem;
    line-height: .57rem;
}

.very-short-screen .page2-invite-text {
    /* bottom: 2.7rem; */
    bottom: 3rem;
    font-size: 0.5rem;
    line-height: .52rem;
}

[lang="ja"].very-short-screen .page2-invite-text {
    bottom: 3rem;
}

.very-long-screen .page2-invite-text {
    /* bottom: 4.8rem */
    bottom: 3.7rem;
}

.short-screen .countdown-signup {
    bottom: 5.2rem
}

.very-short-screen .countdown-signup {
    /* bottom: 4.3rem; */
    bottom: 4.6rem;
    width: 6.2rem
}

.very-long-screen .countdown-signup {
    /* bottom: 6.5rem */
    bottom: 5.7rem;
}

.narrow-screen .countdown-signup {
    z-index: 10;
}

.very-short-screen .countdown-signup .countdown-signup__timer {
    font-size: 0.6rem;
    bottom: 0.55rem;
} 

.very-short-screen .countdown-signup .page2-invite-text {
    font-size: .5rem;
    line-height: .54rem;
}

/* --- Page2: Action buttons (join test + invite friends) --- */
.page2-actions {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* bottom: 2.5rem; */
    bottom: 11%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.11rem;
    gap: 0.34rem;
    z-index: 10;
    pointer-events: auto
}

/* [gap-fallback:iOS13] .page2-actions */
.page2-actions > * + * { margin-left: 0.34rem; }
@supports (inset-inline: 0) {
  .page2-actions { gap: 0.34rem; }
  .page2-actions > * + * { margin-left: 0; }
}

.page2-actions__join,
.page2-actions__invite {
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer
}

.page2-actions__join {
    width: 4.9rem;
}

.page2-actions__invite {
    width: 4.16rem;
}

.page2-actions__btn-img {
    /* width: 100%; */
    height: auto;
    display: block
}

/* 状态切换：已报名后禁止点击 */
.page2-actions__join.is-registered {
    pointer-events: none
}

.page2-actions__join:active,
.page2-actions__invite:active {
    transform: scale(0.95)
}

.short-screen .page2-actions {
    bottom: 2rem
}

.very-short-screen .page2-actions {
    /* bottom: 1.6rem; */
    bottom: 1.8rem;
    width: 8.4rem
}

.very-long-screen .page2-actions {
    /* bottom: 3.2rem */
    bottom: 2.2rem;
}

/* ============================================================
 * Section 3: Page3 (Spirit Showcase)
 * ============================================================ */
.home-section--page3 {
    color: #fff;
    overflow: hidden;
    background: #0e262b
}

.page3-spirit {
    position: absolute;
    /* [inset-fallback] iOS<14.5 不支持 inset 简写，勿删 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    overflow: hidden
}

.page3-spirit__covers,
.page3-spirit__cover,
.page3-spirit__shade {
    position: absolute;
    /* [inset-fallback] iOS<14.5 不支持 inset 简写，勿删 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0
}

.page3-spirit__canvas {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease
}

.page3-spirit__canvas.is-ready {
    opacity: 1
}

.page3-spirit__covers {
    z-index: 1;
    pointer-events: none
}

.page3-spirit__cover {
    opacity: 0;
    transition: opacity .45s ease
}

.page3-spirit__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.page3-spirit__cover.is-active {
    opacity: 1
}

.page3-spirit.is-video-ready .page3-spirit__cover.is-active {
    opacity: 0
}

.page3-spirit__shade {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, .06) 42%, rgba(0, 0, 0, .5) 100%)
}

.page3-spirit__header {
    position: absolute;
    z-index: 18;
    top: 0;
    left: 0;
    width: 10.8rem;
    height: 4.32rem;
    background: url('/m/assets/images/page3/header.png') 50% 50% / contain no-repeat;
    pointer-events: none
}

.page3-spirit__star {
    position: absolute;
    z-index: 20;
    background: url('/m/assets/images/page3/star-0.png') 50% 50% / contain no-repeat;
    pointer-events: none
}

.page3-spirit__star--0 {
    top: 2.75rem;
    left: .4rem;
    width: 1.4rem;
    height: 1.41rem;
    animation: page3-spirit-star-rotate 12s linear infinite forwards
}

.page3-spirit__star--1 {
    top: 2.26rem;
    left: .46rem;
    width: .35rem;
    height: .35rem;
    animation: page3-spirit-star-rotate 9s linear infinite forwards
}

.page3-spirit__star--2 {
    top: 1.88rem;
    left: 1.6rem;
    width: .2rem;
    height: .2rem;
    animation: page3-spirit-star-rotate 9s linear infinite forwards
}

@keyframes page3-spirit-star-rotate {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.page3-spirit__info {
    position: absolute;
    z-index: 3;
    /* top: 3.02rem; */
    top: 18%;
    left: .72rem;
    right: .72rem;
    /* left: 50%;
    transform: translateX(-50%); */
    display: grid;
    justify-items: center;
    text-align: center;
    text-shadow: 0 .04rem .12rem rgba(0, 0, 0, .42)
}

.page3-spirit__name {
    font-size: .72rem;
    line-height: 1;
    letter-spacing: .02rem;
    font-family: "HYYouYuan";
}

[data-lang="ja"] .page3-spirit__name {
    font-family: "ja2";
}

.page3-spirit__stats {
    width: 100%;
    margin-top: 9%;
    padding: .3rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    border-top: .02rem solid rgba(255, 255, 255, .22);
    border-bottom: .02rem solid rgba(255, 255, 255, .22)
}

.page3-spirit__stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    min-width: 0;
    color: rgba(255, 255, 255, .95);
    font-size: .2rem;
    white-space: nowrap;
    font-family: "en1zc";
    font-size: .32rem;
}

/* [gap-fallback:iOS13] .page3-spirit__stat */
.page3-spirit__stat > * + * { margin-left: .12rem; }
@supports (inset-inline: 0) {
  .page3-spirit__stat { gap: .12rem; }
  .page3-spirit__stat > * + * { margin-left: 0; }
}

[data-lang="ja"] .page3-spirit__stat {
    font-family: "ja1";
}

.page3-spirit__height,
.page3-spirit__weight {
    display: inline-flex;
    align-items: center;
    gap: .04rem
}

.page3-spirit__height-value,
.page3-spirit__weight-value {
    display: inline-block
}

.page3-spirit__height-unit,
.page3-spirit__weight-unit {
    flex: 0 0 auto;
    object-fit: contain;
    transform: translateY(.02rem)
}

.page3-spirit__height-unit {
    width: .21rem;
    height: .22rem
}

.page3-spirit__weight-unit {
    width: .42rem;
    height: .22rem
}

.page3-spirit__stat-icon {
    width: .83rem;
    height: .5rem;
    border-radius: .2rem;
    background: rgba(44, 37, 33, .72) 50% 50% / .2rem .2rem no-repeat;
    background-size: contain;
}

.page3-spirit__stat-icon--height {
    background-image: url('/m/assets/images/page3/icons/height.png');
}

.page3-spirit__stat-icon--weight {
    background-image: url('/m/assets/images/page3/icons/weight.png')
}


.page3-spirit__desc {
    width: 100%;
    margin-top: .33rem;
    color: #f3efe3;
    font-size: .32rem;
    line-height: .45rem;
    font-family: "en1zc";
    letter-spacing: -.01rem;
}

[data-lang="ja"] .page3-spirit__desc {
    font-family: "ja1";
}

.page3-spirit__credit {
    position: absolute;
    z-index: 3;
    right: .7rem;
    bottom: 3.02rem;
    color: rgba(255, 255, 255, .72);
    font-size: .14rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: right
}

.page3-spirit__thumbs {
    position: absolute;
    z-index: 15;
    left: 50%;
    bottom: .88rem;
    /* width: 9.8rem; */
    width: calc(100% - 1.74rem);
    height: 4rem;
    padding: 0 0 .3rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    overflow: visible;
    transform: translateX(-50%)
}

.page3-spirit__thumbs::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: .12rem;
    height: .1rem;
    background: url('/m/assets/images/page3/scroll-line.png') 50% 50% / 100% 100% no-repeat;
    pointer-events: none
}

.page3-spirit__thumbs::before {
    content: '';
    position: absolute;
    left: var(--scroll-indicator-x, 50%);
    bottom: .12rem;
    width: 1.26rem;
    height: .1rem;
    border-radius: .05rem;
    background: #f4eee1;
    transform: translateX(-50%);
    transition: left .35s cubic-bezier(.34, 1.45, .5, 1);
    pointer-events: none
}

.page3-spirit__thumb {
    position: relative;
    /* width: 1.88rem; */
    width: .98rem;
    height: 3.4rem;
    min-width: 0;
    padding: 0 0 .38rem;
    border: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    color: rgba(243, 239, 227, .82);
    font-size: .2rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 .02rem rgba(0, 0, 0, .2)
}

.page3-spirit__thumb::before {
    content: '';
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: .73rem;
    /* bottom: 50%; */
    /* bottom: 1rem; */
    width: 1.55rem;
    height: 1.42rem;
    background: url('/m/assets/images/page3/sprite-header-box.png') 50% 50% / 100% 100% no-repeat;
    opacity: 0;
    transform: translate(-50%, .2rem) scale(0);
    transform-origin: center bottom;
    transition: opacity .22s ease, transform .3s cubic-bezier(.34, 1.45, .5, 1);
    pointer-events: none
}

.page3-spirit__thumb-avatar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-bottom: 0;
    overflow: visible;
    background: url('/m/assets/images/page3/sprite-header-bg.png') 50% 50% / 100% 100% no-repeat;
    transform-origin: center;
    transition: transform .22s ease
}

.page3-spirit__thumb-avatar::before {
    display: none
}

.page3-spirit__thumb-avatar img {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    max-width: none;
    object-fit: contain;
    transform: translateY(.02rem)
}

.page3-spirit__thumb[data-key="meevy"] .page3-spirit__thumb-avatar img {
    width: .96rem;
    height: 1.14rem;
    max-width: none;
    max-height: none
}

.page3-spirit__thumb-avatar--duckiji img {
    height: 1.21rem;
}

.page3-spirit__thumb-avatar--cerulla img {
    width: .88rem;
    height: 1.17rem;
}

.page3-spirit__thumb-avatar--vargyr img {
    width: .98rem;
    height: 1.21rem;
}

.page3-spirit__thumb-avatar--sparka img {
    width: 1.31rem;
    height: 1.06rem;
}

.page3-spirit__thumb-avatar--dimo img {
    width: .97rem;
    height: 1.05rem;
}

.page3-spirit__thumb-avatar--meevy img {
    width: .96rem;
    height: 1.14rem;
}

.page3-spirit__thumb.is-active::before,
.page3-spirit__thumb:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.05)
}

.page3-spirit__thumb.is-active .page3-spirit__thumb-avatar,
.page3-spirit__thumb:focus-visible .page3-spirit__thumb-avatar {
    transform: scale(1.15)
}

.page3-spirit__thumb.is-active {
    color: #f3efe3
}

.page3-spirit__thumb-name {
    position: relative;
    z-index: 5;
    overflow: hidden;
    max-width: 1.55rem;
    margin-top: .27rem;
    font-size: .28rem;
    font-family: "en2";
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-bottom: .06rem;
}

[data-lang="ja"] .page3-spirit__thumb-name {
    font-family: "ja2";
}

.page3-spirit__next {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: .22rem;
    width: .72rem;
    height: .07rem;
    border-radius: .08rem;
    background: rgba(255, 255, 255, .92);
    transform: translateX(-50%)
}

.page3-spirit__next span {
    display: none
}

/* ============================================================
 * Section 4: Page4 (Video carousel shell) [REMOVED - page4 content cleared]
 * ============================================================ */
.home-section--page4 {
    color: #2f2b22;
    background: #d7d2c8 url('/m/assets/images/page4/newtall-bg.png') center bottom / cover no-repeat
}

.page4-top-letter {
    position: absolute;
    left: 0;
    bottom: 13.13rem;
    width: 10.63rem;
    height: 7.45rem;
    pointer-events: none
}

.page4-compass-fragment {
    position: absolute;
    top: 4.6rem;
    left: 0;
    width: .96rem;
    height: auto;
    pointer-events: none
}

.page4-letter-fragment {
    position: absolute;
    bottom: .67rem;
    right: 0;
    width: 4.67rem;
    height: auto;
    pointer-events: none
}

.page4-stamp {
    position: absolute;
    width: 1.6rem;
    height: auto;
    pointer-events: none;
    bottom: .4rem;
    right: .4rem;
}

.page4-sheet-music {
    position: absolute;
    left: 0;
    bottom: .6rem;
    width: 7.49rem;
    height: auto;
    pointer-events: none
}

.page4-application {
    position: absolute;
    right: 0;
    bottom: 5.2rem;
    width: 4.15rem;
    height: auto;
    pointer-events: none
}

.page4-master-fragment {
    position: absolute;
    /* top: 6.23rem; */
    bottom: 3.7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 10.77rem;
    height: auto;
    pointer-events: none
}

/* --- Page4: Swiper Navigation --- */
.page4-swiper-nav {
    position: absolute;
    left: 50%;
    bottom: .4rem;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: .9rem;
}

/* [gap-fallback:iOS13] .page4-swiper-nav */
.page4-swiper-nav > * + * { margin-left: .9rem; }
@supports (inset-inline: 0) {
  .page4-swiper-nav { gap: .9rem; }
  .page4-swiper-nav > * + * { margin-left: 0; }
}

.page4-swiper-nav .page4-swiper-arrow {
    display: block;
    width: .23rem;
    height: .23rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: static;
    margin: 0;
    color: transparent
}

.page4-swiper-arrow img {
    width: 100%;
    height: 100%;
    display: block
}

.page4-swiper-nav .page4-swiper-pagination {
    position: static;
    width: auto;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    align-items: center;
    gap: .2rem
}

.page4-swiper-dot {
    width: .2rem;
    height: .2rem;
    border-radius: 50%;
    background: #adaaa6
}

.page4-swiper-dot.is-active {
    background: #ffc65f
}

/* --- Page4: Swiper container --- */
.page4-swiper {
    position: absolute;
    /* [inset-fallback] iOS<14.5 不支持 inset 简写，勿删 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 5
}

.page4-slide {
    position: relative;
    width: 100%;
    height: 100%
}

/* --- Page4: Cards group (整体缩放) --- */
.page4-cards {
    position: absolute;
    top: 2.01rem;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    /* width: 9.52rem; */
    /* iOS 13.0-13.3 不支持 min()，width + max-width 等价兼容 */
    width: 9.52rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.page4-card {
    display: block;
    width: 100%;
    max-height: 33%;
    height: auto;
    object-fit: contain
}

/* --- Page4: Video card triggers --- */
.page4-card.js-page4-video-trigger {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
    transition: opacity .2s ease, transform .2s ease
}

.page4-card.js-page4-video-trigger:active {
    opacity: .82;
    transform: scale(.985)
}

/* --- Page4: Fullscreen video overlay --- */
.page4-video-overlay {
    position: fixed;
    /* [inset-fallback] iOS<14.5 不支持 inset 简写，勿删 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .96);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px)
}

.page4-video-overlay.is-active {
    display: flex
}

.page4-video-overlay__player {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000
}

.page4-video-overlay__close {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: 12px;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, transform .15s ease
}

.page4-video-overlay__close:active {
    background: rgba(0, 0, 0, .8);
    transform: scale(.9)
}

.page4-card--1,
.page4-card--2 {
    width: 99.7%
}

/* Slide 2: two cards */
.page4-cards--two {
    max-width: 9.73rem
}

.page4-card--4 {
    width: 97%;
    max-height: 50%
}

.page4-card--5 {
    width: 100%;
    max-height: 50%
}

.short-screen .page4-cards,
.very-short-screen .page4-cards {
    top: 1.6rem;
    bottom: .5rem
}

.page4-card-wax-seal {
    position: absolute;
    width: 2.25rem;
    height: auto;
    left: 0;
    bottom: 3.62rem;
}

.page4-card-label {
    position: absolute;
    width: 1.46rem;
    height: auto;
    right: 0;
    top: 7.17rem;
}

/* ============================================================
 * Section 5: Page5 (News)
 *
 * Page5 owns one static cream star background. Page5 content and
 * the home footer live inside .page5-motion-track; revealing the
 * footer translates only that foreground track, not the background.
 * ============================================================ */
.home-section--page5 {
    color: #2a2823;
    overflow: hidden;
    height: 100% !important;
}

.home-section--page5::before {
    content: '';
    position: absolute;
    /* [inset-fallback] iOS<14.5 不支持 inset 简写，勿删 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 0;
    background-color: #ede9dd;
    background-image: url('/m/assets/images/page5/bg-2.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
    pointer-events: none
}

.page5-motion-track {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: calc(100% + var(--site-footer-height));
    transition: transform .42s cubic-bezier(.1, 0, .23, 1);
    will-change: transform
}

.page5-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(100% - var(--site-footer-height));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #383838;
    font-family: "en1zc";
}

[lang="ja"] .page5-content {
    font-family: "ja2", "ja1", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif
}

.page5-cover-wrap {
    position: relative;
    flex-shrink: 0;
    width: 9.77rem;
    margin: 2.48rem auto 0;
    padding-top: 6.65rem
}

.page5-cover-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    width: 9.77rem;
    height: 6.65rem;
    background: url('/m/assets/images/page5/cover-box-origin.png') 50% 50% / 100% 100% no-repeat;
    pointer-events: none
}

.page5-cover-swiper {
    position: absolute;
    left: .5rem;
    top: .34rem;
    z-index: 1;
    width: 8.78rem;
    height: 6.31rem;
    overflow: hidden
}

.page5-cover-card,
.page5-cover-card__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%
}

.page5-cover-card__image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4.93rem;
    border-radius: .08rem;
    object-fit: cover
}

.page5-cover-card__title {
    position: absolute;
    left: .3rem;
    right: .3rem;
    top: 5.28rem;
    overflow: hidden;
    color: #383838;
    font-size: .38rem;
    line-height: .46rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -.02em
}

[lang="ja"] .page5-cover-card__title {
    font-size: .34rem
}

.page5-cover-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .22rem;
    /* width: 9.77rem; */
    width: 9.27rem;
    height: .25rem;
    margin: .3rem auto 0
}

/* [gap-fallback:iOS13] .page5-cover-bar */
.page5-cover-bar > * + * { margin-left: .22rem; }
@supports (inset-inline: 0) {
  .page5-cover-bar { gap: .22rem; }
  .page5-cover-bar > * + * { margin-left: 0; }
}

.page5-cover-arrow {
    flex: 0 0 auto;
    width: .23rem;
    height: .24rem;
    border: 0;
    padding: 0;
    background: 50% 50% / 100% 100% no-repeat;
    cursor: pointer
}

.page5-cover-arrow--prev {
    background-image: url('/m/assets/images/page5/arrow-left.png')
}

.page5-cover-arrow--next {
    background-image: url('/m/assets/images/page5/arrow-right.png')
}

.page5-cover-pagination {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: .25rem
}

/* 覆盖 swiper-bundle.min.css 默认的 .swiper-pagination-bullets.swiper-pagination-horizontal 定位 */
.page5-cover-pagination.swiper-pagination-horizontal {
    position: static;
    bottom: auto;
    left: auto;
    width: auto;
    transform: none
}

.page5-cover-pagination .swiper-pagination-bullet {
    width: .24rem;
    height: .24rem;
    margin: 0 .1rem !important;
    border-radius: 50%;
    background: #adaca5;
    opacity: 1
}

.page5-cover-pagination .swiper-pagination-bullet-active {
    background: #f5c44d
}

.page5-news-list {
    flex: 1 1 auto;
    min-height: 0;
    width: 9.47rem;
    margin: .92rem auto 0;
    list-style: none
}

/* 矮屏/很短屏手机：缩小新闻列表上边距，避免内容被挤到屏幕外 */
.short-screen .page5-news-list,
.very-short-screen .page5-news-list {
    margin: .3rem auto 0
}

/* 矮屏手机：压缩封面上边距与 MORE 间距。
   footer 揭示时 MORE 与 footer 顶缘的间距 = stage 高度 - page5 内容总高，
   内容总高必须压到 stage 高度以内，MORE 才不会被 footer 弧形背景遮挡。 */
.short-screen .page5-cover-wrap {
    margin-top: 1.9rem
}

.short-screen .page5-more,
.very-short-screen .page5-more {
    margin-top: .2rem
}

/* 很短屏手机（如 iPhone 16 Pro Max 显示 Safari 工具栏时，stage 仅约 18.3rem 高）：
   整体缩小封面轮播，进一步压低 page5 内容总高 */
.very-short-screen .page5-cover-wrap {
    width: 8.6rem;
    margin-top: 1.86rem;
    padding-top: 5.85rem
}

.very-short-screen .page5-cover-wrap::before {
    width: 8.6rem;
    height: 5.85rem
}

.very-short-screen .page5-cover-swiper {
    left: .44rem;
    top: .3rem;
    width: 7.73rem;
    height: 5.55rem
}

.very-short-screen .page5-cover-card__image {
    height: 4.34rem
}

.very-short-screen .page5-cover-card__title {
    top: 4.65rem
}

.very-short-screen .page5-cover-bar {
    width: 8.6rem;
    margin-top: .2rem
}

.page5-news-item {
    position: relative;
    width: 100%;
    height: 1.96rem
}

.page5-news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 9.47rem;
    height: .04rem;
    background: url('/m/assets/images/page5/new-line.png') 50% 50% / 100% 100% no-repeat;
    pointer-events: none
}

.page5-news-item:last-child::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 9.47rem;
    height: .05rem;
    background: #61605e;
    pointer-events: none
}

.page5-news-item__link {
    position: relative;
    display: block;
    height: 100%;
    color: #383838
}

.page5-news-item__link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 1.71rem;
    height: 1.46rem;
    background: url('/m/assets/images/page5/icon-rocket.png') 50% 50% / contain no-repeat;
    pointer-events: none;
    transform: translateY(-50%)
}

.page5-news-item__title {
    position: absolute;
    left: 0;
    right: .9rem;
    top: .48rem;
    z-index: 2;
    display: flex;
    align-items: center;
    min-width: 0;
    height: .5rem;
    overflow: hidden;
    color: #383838;
    font-size: .38rem;
    font-weight: 900;
    line-height: .5rem;
    white-space: nowrap;
    letter-spacing: -.01rem;
    font-family: "en2";
}

[lang="ja"] .page5-news-item__title {
    font-size: .34rem;
    font-family: "ja2";
}

.page5-news-item__tag {
    flex: 0 0 auto;
    margin-right: .14rem;
    width: 1.82rem;
}

.page5-news-item__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.page5-news-item__date {
    position: absolute;
    left: 0;
    top: 1.18rem;
    z-index: 2;
    height: .3rem;
    padding-left: .3rem;
    color: #62605e;
    font-size: .3rem;
    line-height: .3rem;
    font-family: "en1zc";
}

.page5-news-item__date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: .2rem;
    height: .23rem;
    background: url('/m/assets/images/page5/icon-time.png') 50% 50% / contain no-repeat;
    transform: translateY(-50%)
}

.page5-news-item__badge {
    position: absolute;
    right: .1rem;
    top: .5rem;
    z-index: 3;
    width: .5rem;
    height: .41rem;
    background: 50% 50% / 100% 100% no-repeat;
    pointer-events: none
}

.page5-news-item__badge--top {
    background-image: url('/m/assets/images/page5/icon-top.png')
}

.page5-news-item__badge--new {
    background-image: url('/m/assets/images/page5/icon-new.png')
}

.page5-more {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 2.92rem;
    height: .8rem;
    margin: .36rem .65rem .6rem auto
}

.page5-more img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

/* --- site footer: embedded in Page5 foreground motion track ---
   Footer height includes the bottom safe-area inset so the motion track height
   and reveal offset stay geometrically consistent on devices with a home
   indicator (e.g. iPhone 16 Pro Max). */
:root {
    --site-footer-height: calc(6.06rem + env(safe-area-inset-bottom, 0px));
    /* 负值位移（仅 +/- 运算，避免 calc 乘法），供 page5-motion-track 展开时使用 */
    --site-footer-height-neg: calc(-6.06rem - env(safe-area-inset-bottom, 0px))
}

.home-section--page5 .site-footer {
    z-index: 3;
    height: var(--site-footer-height);
    transform: none;
    transition: none;
    will-change: auto;
}

/* When footer is visible, only the Page5 foreground track moves. */
.h5-stage.is-footer-visible .page5-motion-track {
    transform: translate3d(0, var(--site-footer-height-neg), 0)
}

/* ============================================================
 * very-short-screen / very-long-screen tweaks
 * ============================================================ */
.very-short-screen .page3-spirit__info {
    top: 2.56rem
}

.very-short-screen .page3-spirit__name {
    font-size: .62rem
}

.very-short-screen .page3-spirit__stats {
    margin-top: .42rem
}

.very-short-screen .page3-spirit__desc {
    font-size: .2rem;
    line-height: 1.3
}

.very-short-screen .page3-spirit__thumbs {
    bottom: .58rem
}

/* [REMOVED - page4 responsive styles cleared] */

.very-long-screen .page3-spirit__info {
    top: 3.42rem
}

.very-long-screen .page3-spirit__thumbs {
    bottom: 1.02rem
}

/* [REMOVED - page4 short-screen card styles cleared] */