* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.wrap-body {
    position: relative;
    container-type: inline-size;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background-color: #12051c;
    background-image: url(../images/bg-h5.webp?v=20261109-5);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

a {
    text-decoration: none;
    color: #fff;
}

.header-area {
    position: relative;
    z-index: 20;
    width: 100%;
}

.header-activity {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0.7rem 0;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
}

.logoo {
    display: block;
    width: auto;
    height: 3.125rem;
}

.icon-img.icon-pc,
.logoo.icon-pc {
    display: none !important;
}

.contact-list {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btnimg.sp,
.btn_list.backup {
    display: none;
}

.icon-img {
    display: block;
    width: auto;
    height: 3.6rem;
}

.main-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100dvh - 4.2rem);
}

.pc-stage,
.char-pc {
    display: none;
}

.covers {
    position: relative;
    z-index: 4;
    width: 100%;
    margin: 0 0 0.55rem;
    overflow: hidden;
    pointer-events: none;
}

.covers-track {
    display: flex;
    width: max-content;
    animation: covers-scroll 40s linear infinite;
}

.covers-track img {
    display: block;
    flex-shrink: 0;
    height: 4.5rem;
    width: auto;
    user-select: none;
}

@keyframes covers-scroll {
    to {
        transform: translateX(calc(-100% / 3));
    }
}

.h5-hero {
    position: relative;
    flex: 1;
    min-height: 18rem;
    width: 100%;
}

.hero-h5-group {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 78%;
    width: 100%;
    object-fit: contain;
    object-position: center top;
    pointer-events: none;
    opacity: 0;
    transform: scale(1.05);
    transition:
        opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-h5-group.is-active {
    opacity: 1;
    transform: scale(1);
}

.title-h5 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.footer-area {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 4.267vw calc(2.533vw + env(safe-area-inset-bottom, 0px));
}

.app {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.667vw;
    width: 100%;
}

.btn_list {
    flex: 1;
    min-width: 0;
}

.btn_list img {
    display: block;
    width: 100%;
    height: auto;
}

.setup-tips-container {
    display: flex;
    justify-content: center;
    padding: 2.4vw 0 0;
}

.setup-tips-container img {
    width: auto;
    height: 4.133vw;
}

.pwa-entry {
    display: block;
    width: 53.6vw;
    max-width: none;
    margin: 0 auto 2.667vw;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pwa-entry img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.pwa-entry[hidden] {
    display: none !important;
}

.pwa-entry-pc,
.qr-area {
    display: none;
}

.spinner-container {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 5, 28, 0.85);
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #e040fb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-h5-group {
        transition: none;
    }
}

@media screen and (min-width: 768px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .wrap-body {
        background-image: url(../images/bg-pc.webp?v=20261109-5);
        background-position: center center;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
    }

    .header-area {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }

    .header-activity {
        align-items: flex-start;
        padding: 2.78vh 1.04vw 0 1.56vw;
    }

    .logoo {
        height: clamp(3.4rem, 9.26vh, 6.25rem);
    }

    .icon-img.icon-h5,
    .logoo.icon-h5,
    .title-h5 {
        display: none !important;
    }

    .icon-img.icon-pc,
    .logoo.icon-pc {
        display: block !important;
    }

    .icon-img.icon-pc {
        height: clamp(1.7rem, 3.52vh, 2.375rem);
    }

    .contact-list {
        gap: 0.83vw;
        align-items: center;
        padding-top: 0.2vh;
    }

    .main-content {
        height: 100%;
        min-height: 0;
    }

    .h5-hero,
    .app,
    .setup-tips-container {
        display: none;
    }

    .pc-stage {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 5;
        pointer-events: none;
    }

    .title-pc {
        display: block;
        position: absolute;
        left: 3.96%;
        top: 13.89%;
        width: 46.35%;
        height: auto;
        pointer-events: none;
    }

    .qr-area {
        display: flex;
        align-items: flex-start;
        gap: 2.81%;
        position: absolute;
        left: 8.59%;
        top: 58.15%;
        width: 37.08%;
        pointer-events: auto;
    }

    .qr-panel {
        position: relative;
        flex: 0 0 31.46%;
        align-self: flex-start;
        box-sizing: border-box;
        width: 31.46%;
        aspect-ratio: 224 / 192;
        min-height: 0;
        overflow: hidden;
        border: 1px solid #ff86b6;
        border-radius: 0.833vw;
        background: rgba(174, 26, 233, 0.01);
        backdrop-filter: blur(25px);
        box-shadow:
            inset 0 64px 250px -96px rgba(157, 131, 243, 0.3),
            inset 0 8px 36px 0 rgba(157, 131, 243, 0.3),
            inset 0 1px 80px 0 rgba(157, 131, 243, 0.2);
    }

    .qr-code {
        position: absolute;
        left: 7.207%;
        top: 50%;
        width: 71.171%;
        aspect-ratio: 1;
        transform: translateY(-50%);
        overflow: hidden;
        border-radius: 5.7%;
        background: #fff;
        clip-path: inset(0 round 5.7%);
        padding: 6px;
    }

    .qr-scan {
        position: absolute;
        right: 7.14%;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.208vw;
        width: 0.833vw;
        color: #fff;
        font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    }

    .qr-scan img {
        display: block;
        width: 0.833vw;
        height: 0.833vw;
    }

    .qr-scan span {
        font-size: 0.833vw;
        line-height: 1.125;
        letter-spacing: -0.14em;
        text-align: center;
    }

    .qr-copy {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .pwa-entry-h5 {
        display: none !important;
    }

    .qr-copy .pwa-entry-pc {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0.156vw 0 0;
    }

    .qr-support {
        display: block;
        width: 100%;
        height: auto;
        margin-top: 2.14%;
    }

    .qr-warn {
        margin: 0;
        padding-left: 3.85%;
        color: #dbc2ff;
        font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
        font-size: 1.042vw;
        line-height: 1.4;
        white-space: nowrap;
    }

    .qr-code canvas,
    .qr-code img,
    .qr-code table {
        display: block;
        width: 100% !important;
        height: 100% !important;
        border-radius: 5.7%;
    }

    .char-pc {
        display: block;
        position: absolute;
        z-index: 2;
        right: 0;
        bottom: 0;
        height: min(100dvh, calc(51.5104vw * 1080 / 989), 1080px);
        width: auto;
        aspect-ratio: 989 / 1080;
        object-fit: fill;
        pointer-events: none;
        opacity: 0;
        transform: scale(1.05);
        transition:
            opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1),
            transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .char-pc.is-active {
        opacity: 1;
        transform: scale(1);
    }

    .covers {
        display: block;
        position: absolute;
        z-index: 4;
        left: 0;
        right: 0;
        bottom: 2.78vh;
        margin: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .covers-track {
        animation-duration: 80s;
    }

    .covers-track img {
        height: min(18.52dvh, 200px);
        margin-right: 0.63vw;
    }

    .footer-area {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .char-pc {
        transition: none;
    }
}
