@charset "UTF-8";

/* --- Global Resets and Base Styles --- */
*,
:before,
:after {
    box-sizing: border-box;
    min-width: 0;
    border-style: solid;
    border-width: 0;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent scrolling */
    /*background-color: #000; !* Black background for letterboxing *!*/
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
}

img {
    width: 100%;
    max-width: 100%;
    height: auto;
    pointer-events: none;
    vertical-align: top;
}

/* --- Backgrounds --- */
.l-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: none;
    /* 由 index.html 覆盖 */
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    z-index: -1;
}

.l-bg:before {
    position: absolute;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(180deg, #0d0a2c80, #0d0a2c); //蓝色渐层*/
    /*background: transparent;//完全透明（移除渐变层）*/
    /*background: none;//移除颜色但保留backdrop-filter模糊效果*/
    background: linear-gradient(180deg, transparent, transparent);
    /*透明渐变（从透明到透明）*/
    backdrop-filter: blur(7px);
    content: "";
}

.l-bg:after {
    position: absolute;
    width: 100%;
    height: 100%;
    /*background-image: radial-gradient(circle, #ebebeb .125rem, transparent .125rem);*/
    background-size: 1.5rem 1.5rem;
    opacity: .1;
    content: "";
}

/* --- Main Content Area (Fixed Aspect Ratio) --- */
.l-main-content {
    position: relative;
    height: 100vh;
    width: calc(100vh * (720 / 1280));
    /* Fixed aspect ratio 720:1280 */
    max-height: 100%;
    max-width: 100%;
    margin: 0 auto;
    /* Center horizontally */
    background-image: none;
    /* 由 index.html 覆盖 */
    background-repeat: no-repeat;
    /* background-size: 100% 100%;
    background-position: center center; */
    overflow: hidden;
    background-size: cover;
    /* 保持比例缩放，超出部分裁切 */
    background-position: center top;
    /* 确保头部或中心内容可见 */
    container-type: size;
    container-name: main;
}

/* --- Main Visual Container --- */
.p-kv {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- Content Wrapper (for positioning) --- */
.p-kv__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Title/Logo --- */
.p-kv__title {
    position: absolute;
    top: 106.7cqw;
    /* Position from top: 60vh -> 106.7cqw */
    width: 80cqw;
    /* Width relative to container width: 45vh -> 80cqw */
    z-index: 1;
    /* Ensure it's above decorations */
}

/* --- Store Buttons --- */
.c-stores {
    position: absolute;
    top: 113.8cqw;
    /* Position from top: 64vh -> 113.8cqw */
    width: 69.3cqw;
    /* Width relative to container width: 39vh -> 69.3cqw */
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 1;
    /* Ensure it's above decorations */
}

.c-stores__button {
    display: block;
    transition: transform 0.3s cubic-bezier(0, 0, 0.58, 1);
    position: relative;
    cursor: pointer;
}

.c-stores__button.-appstore::after {
    content: "";
    position: absolute;
    top: -60px;
    bottom: -60px;
    left: -60px;
    right: -5px;
    cursor: pointer;
}

.c-stores__button.-googleplay::after {
    content: "";
    position: absolute;
    top: -60px;
    bottom: -60px;
    left: -5px;
    right: -60px;
    cursor: pointer;
}

@media (hover: hover) {
    .c-stores__button:hover {
        transform: scale(0.95);
    }
}

.c-stores__button.-appstore {
    width: 48%;
}

.c-stores__button.-googleplay {
    width: 48%;
}

/*针对将a标签改为button标签的样式,去除大白边*/
.c-stores__button.-appstore,
.c-stores__button.-googleplay {
    background: transparent;
    border: none;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

/* --- Animated Decorations --- */
.p-kv__decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    /* Ensure it's behind content */
}

.c-bg-parts__union {
    position: absolute;
    /* 兜底方案 */
    width: 35%;
    height: 35%;
    /* 现代方案 */
    width: 35cqw;
    height: 35cqh;
}

.c-bg-parts__union:before {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: none;
    /* 由 index.html 覆盖 */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation: blinkUnion 4s cubic-bezier(0.42, 0, 1, 1) infinite;
    content: "";
}

.c-bg-parts__union.-union01 {
    /* 兜底方案 */
    top: 45%;
    left: -1%;
    /* 现代方案 */
    top: 45cqh;
    left: -1cqw;
    animation: rotateUnion 8s cubic-bezier(0.42, 0, 1, 1) infinite;
}

.c-bg-parts__union.-union02 {
    /* 兜底方案 */
    bottom: 11%;
    right: -2%;
    /* 现代方案 */
    bottom: 11cqh;
    right: -2cqw;
    animation: rotateUnion 8s cubic-bezier(0.42, 0, 1, 1) infinite reverse;
}

/* --- Keyframe Animations --- */
@keyframes rotateUnion {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blinkUnion {

    0%,
    80% {
        transform: scale(1);
        opacity: 1;
    }

    90% {
        transform: scale(0.5);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Header Styles --- */
.fixed-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 16cqw;
    /* Use cqw to scale with the container width: 9vh -> 16cqw */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    z-index: 100;
    /* Optional background for better visibility, adjust as needed */
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%); */

    /* 添加半透明深色背景 */
    background-color: rgba(0, 0, 0, 0.7);
    /* 黑色 80% 透明度 */
    /* 添加轻微模糊效果增强深度感 */
    backdrop-filter: blur(8px);
}

.home-top__left {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.top-icon {
    width: 10.7cqw;
    height: 10.7cqw;
    background-image: none;
    /* 由 index.html 覆盖 */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.game-title-container {
    height: 40%;
    display: flex;
    align-items: center;
}

.game-title-image {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.home-top__right {
    height: 100%;
    display: flex;
    align-items: center;
}

.icon-fb {
    display: block;
    width: 8.9cqw;
    height: 8.9cqw;
    background-image: none;
    /* 由 index.html 覆盖 */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}