:root {
    --pc-stage-scale: 1;
    --pc-stage-left: 0px;
    --pc-stage-top: 0px;
    --pc-visual-shift-x: 0px;
    --mobile-stage-scale: .5;
    --mobile-stage-left: 0px;
    --mobile-stage-height: 744.5px;
    --mobile-stage-raw-height: 1489px;
    --mobile-hit-height: 88px;
    --mobile-hit-top: -3px;
    --mobile-help-hit-height: 88px;
    --mobile-help-hit-top: -12px;
}

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

html,
body {
    width: 100%;
    min-height: 100%;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font: inherit;
}

img {
    display: block;
    border: 0;
    user-select: none;
    -webkit-user-drag: none;
}

.wrap-body,
.landing-shell,
.desktop-scene,
.mobile-scene {
    width: 100%;
    min-height: 100%;
}

.landing-shell {
    position: relative;
    background: #000;
}

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

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 237, 0, .22);
    border-top-color: #ffed00;
    border-radius: 50%;
    animation: aiporn-spin .8s linear infinite;
}

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

.scene-layer,
.contact-link,
.brand-lockup,
.pc-qr-panel,
.qr-content-mask,
.qrcode-container,
.mobile-action-zone,
.mobile-download-button,
.download-button-surface,
.mobile-install-help {
    position: absolute;
}

.desktop-scene {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #000 url('../images/aiporn/bg-pc.webp?v=20260930-1') center center / cover no-repeat;
}

.desktop-stage {
    position: absolute;
    left: var(--pc-stage-left);
    top: var(--pc-stage-top);
    width: 1920px;
    height: 1080px;
    overflow: visible;
    transform: scale(var(--pc-stage-scale));
    transform-origin: left top;
    background: transparent;
}

.pc-main {
    z-index: 2;
    left: 308px;
    top: 118px;
    width: 1612px;
    height: 962px;
    overflow: hidden;
    transform: translateX(var(--pc-visual-shift-x));
}

.pc-main img {
    position: absolute;
    left: -7.06%;
    top: 0;
    width: 107.06%;
    height: 100%;
    max-width: none;
}

.pc-copy {
    z-index: 5;
    left: 0;
    top: 121px;
    width: 960px;
    height: 614px;
    filter: drop-shadow(0 0 14px #000);
}

.pc-copy img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pc-badge {
    z-index: 4;
    transform: translateX(var(--pc-visual-shift-x));
}

.pc-badge-short {
    left: 1726px;
    top: 209px;
    width: 98px;
    height: 292px;
}

.pc-badge-magic {
    left: 1633px;
    top: 613px;
    width: 94px;
    height: 284px;
}

.pc-badge-comic {
    left: 1004px;
    top: 185px;
    width: 94px;
    height: 284px;
}

.pc-badge-face {
    left: 863px;
    top: 539px;
    width: 88px;
    height: 264px;
}

.brand-lockup {
    z-index: 10;
    width: 309px;
    height: 97px;
}

.brand-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 97px;
    height: 97px;
    border-radius: 18px;
}

.brand-lockup strong {
    position: absolute;
    left: 115px;
    top: 10px;
    width: 194px;
    height: 42px;
    color: #ffed00;
    font-size: 44.48px;
    font-weight: 900;
    line-height: 41.743px;
    letter-spacing: 3.5584px;
    white-space: nowrap;
}

.brand-lockup span {
    position: absolute;
    left: 118px;
    top: 62px;
    width: 187px;
    height: 27px;
    font-size: 19px;
    font-weight: 600;
    line-height: 27px;
    letter-spacing: 1.9px;
    white-space: nowrap;
}

.pc-brand {
    left: 45px;
    top: 37px;
}

.contact-link {
    z-index: 11;
    display: block;
    transition: filter .18s ease, transform .18s ease;
}

.contact-link:hover {
    filter: brightness(1.16);
}

.contact-link:active {
    transform: translateY(1px);
}

.action-pill {
    width: 174px;
    height: 64px;
    border: 2px solid #ffed00;
    border-radius: 90px;
    background: #020101;
}

.action-pill img,
.action-pill span {
    position: absolute;
}

.action-pill span {
    top: 7px;
    color: #ffed00;
    font-size: 32px;
    font-weight: 900;
    line-height: 45px;
    white-space: nowrap;
}

.business-pill img {
    left: 26px;
    top: 14px;
}

.business-pill span {
    left: 78px;
}

.tg-pill img {
    left: 16.414px;
    top: 15px;
}

.tg-pill span {
    left: 72.867px;
}

.pc-business {
    left: 1522px;
    top: 54px;
}

.pc-group {
    left: 1713px;
    top: 54px;
}

.pc-qr-panel {
    z-index: 7;
    left: 41px;
    top: 719px;
    width: 919px;
    height: 302px;
    overflow: hidden;
}

.pc-qr-panel > img {
    position: absolute;
    left: 0;
    top: -16.34%;
    width: 100%;
    height: 132.68%;
    max-width: none;
}

.qr-content-mask {
    z-index: 8;
    left: 102px;
    top: 757px;
    width: 254px;
    height: 227px;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
}

.qrcode-container {
    left: 23px;
    top: 10px;
    width: 208px;
    height: 208px;
    overflow: hidden;
    background: #fff;
}

.qrcode-container canvas,
.qrcode-container img {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.mobile-scene {
    display: none;
}

@media (max-width: 767px) {
    body {
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .desktop-scene {
        display: none;
    }

    .mobile-scene {
        display: block;
        position: relative;
        min-height: 100dvh;
        overflow: visible;
        background: #000 url('../images/aiporn/bg-mobile.webp?v=20260930-1') center top / cover no-repeat;
    }

    .mobile-stage-wrap {
        position: relative;
        z-index: 1;
        width: 100%;
        height: var(--mobile-stage-height);
        min-height: 100dvh;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        overflow: visible;
    }

    .mobile-stage {
        position: absolute;
        left: var(--mobile-stage-left);
        top: 0;
        width: 750px;
        height: var(--mobile-stage-raw-height);
        overflow: hidden;
        transform: scale(var(--mobile-stage-scale));
        transform-origin: left top;
        background: transparent;
    }

    .mobile-foreground {
        z-index: 1;
        left: 0;
        top: 532px;
        width: 750px;
        height: 850px;
        overflow: hidden;
    }

    .mobile-foreground img {
        position: absolute;
        left: .375px;
        top: -297.755px;
        width: 1940.1px;
        height: 1148.01px;
        max-width: none;
    }

    .mobile-main {
        z-index: 2;
        left: 0;
        top: 157px;
        width: 750px;
        height: 1029px;
        overflow: hidden;
    }

    .mobile-main img {
        position: absolute;
        left: -109.98%;
        top: -.02%;
        width: 231.57%;
        height: 94.08%;
        max-width: none;
    }

    .mobile-badge {
        z-index: 3;
    }

    .mobile-badge-short {
        left: 643px;
        top: 217px;
        width: 71px;
        height: 215px;
    }

    .mobile-badge-comic {
        left: 46px;
        top: 258px;
        width: 70px;
        height: 213px;
    }

    .mobile-badge-face {
        left: 582px;
        top: 500px;
        width: 83px;
        height: 250px;
    }

    .mobile-badge-magic {
        left: 78px;
        top: 511px;
        width: 76px;
        height: 227px;
    }

    .mobile-gradient {
        z-index: 4;
        left: 0;
        top: 876px;
        width: 750px;
        height: 613px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 23.428%, rgba(0, 0, 0, .6) 93.713%);
        pointer-events: none;
    }

    .mobile-lower {
        z-index: 5;
        left: 3px;
        top: 876px;
        width: 744px;
        height: 353px;
        overflow: hidden;
        filter: drop-shadow(0 0 14px #000);
    }

    .mobile-lower img {
        position: absolute;
        left: 0;
        top: .09%;
        width: 100%;
        height: 99.83%;
        max-width: none;
    }

    .mobile-brand {
        left: 28px;
        top: 27px;
    }

    .mobile-business {
        left: 366px;
        top: 44px;
    }

    .mobile-group {
        left: 557px;
        top: 44px;
    }

    .mobile-action-zone {
        z-index: 12;
        left: 0;
        top: 1255px;
        width: 750px;
        height: 180px;
    }

    .mobile-download-button {
        top: var(--mobile-hit-top);
        height: var(--mobile-hit-height);
        border-radius: 23px;
    }

    .mobile-download-button:focus-visible,
    .mobile-install-help:focus-visible {
        outline: 4px solid #ffed00;
        outline-offset: 4px;
    }

    .download-ios {
        left: 14px;
        width: 237px;
    }

    .download-android {
        left: 256px;
        width: 238px;
    }

    .download-android-backup {
        left: 499px;
        width: 237px;
    }

    .download-button-surface {
        left: 0;
        top: calc(0px - var(--mobile-hit-top));
        width: 100%;
        height: 82px;
        overflow: hidden;
        border: 2px solid #fff9ac;
        border-radius: 23px;
        background: radial-gradient(circle at 97% 0%, #000 0%, #080802 25%, #110f04 50%, #211e08 100%);
    }

    .download-button-surface img,
    .download-button-surface strong,
    .download-button-surface small {
        position: absolute;
    }

    .download-button-surface img {
        top: 14.695px;
        left: 19.82px;
    }

    .download-button-surface strong {
        top: 8.187px;
        left: 70.406px;
        font-size: 22.023px;
        font-weight: 900;
        line-height: 31px;
        letter-spacing: .6607px;
        white-space: nowrap;
    }

    .download-button-surface small {
        top: 43px;
        left: 70.406px;
        font-size: 13.214px;
        font-weight: 400;
        line-height: 18px;
        letter-spacing: -.2643px;
        white-space: nowrap;
    }

    .download-android .download-button-surface img,
    .download-android-backup .download-button-surface img {
        left: 23.16px;
    }

    .download-android .download-button-surface strong,
    .download-android .download-button-surface small {
        left: 72.402px;
    }

    .download-android-backup .download-button-surface strong {
        top: 6px;
        left: 72.211px;
    }

    .download-android-backup .download-button-surface small {
        left: 74.414px;
    }

    .mobile-install-help {
        left: 172.5px;
        top: calc(116px + var(--mobile-help-hit-top));
        width: 407px;
        height: var(--mobile-help-hit-height);
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .mobile-install-help span {
        position: absolute;
        left: 0;
        width: 407px;
        height: 21px;
        font-size: 32px;
        font-weight: 600;
        line-height: 21px;
        letter-spacing: 2.56px;
        text-align: center;
        white-space: nowrap;
    }

    .mobile-install-help span:first-child {
        top: calc(0px - var(--mobile-help-hit-top));
    }

    .mobile-install-help span:last-child {
        top: calc(43px - var(--mobile-help-hit-top));
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner { animation-duration: 1.6s; }
    .contact-link { transition: none; }
}
