.site-v2-body,
.site-v2-body html {
    min-height: 100%;
}

.site-v2-body {
    margin: 0;
    background: #00030c;
    color: #fff;
    font-family: "PingFang SC", "Hiragino Sans", "Microsoft YaHei", Arial, sans-serif;
}

.site-v2-shell {
    width: 100%;
    max-width: 472px;
    min-height: 100vh;
    margin: 0 auto;
    background: #00030c;
    overflow-x: hidden;
}

.home-v2 {
    min-height: 100vh;
    padding: 0 8px 104px;
    background:
        linear-gradient(180deg, #370848 0, #21002f 56px, #00030c 214px, #00030c 100%);
}

.home-v2-header {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 10px;
    margin: 0 -8px 8px;
    padding: 0 12px;
    background: rgba(64, 11, 80, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.home-v2-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.home-v2-logo img {
    width: 55px;
    height: auto;
    object-fit: contain;
}

.home-v2-domain {
    flex: 1;
    min-width: 0;
    color: #f7d9ff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-v2-search {
    width: 34px;
    height: 34px;
    color: #f8e8bb;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.home-v2-member {
    position: relative;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 -8px 8px;
    padding: 8px 8px 7px;
    background: linear-gradient(180deg, rgba(34, 0, 49, .98) 0%, rgba(8, 0, 18, .95) 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.home-v2-member.is-fixed {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 472px;
    margin: 0;
    transform: translateX(-50%);
}

.home-v2-profile {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.home-v2-avatar {
    width: 58px;
    height: 58px;
    margin-right: 10px;
    border-radius: 50%;
    background: url("/static/apps/front/site_v2/images/avatar-ring.png") center / 100% 100% no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-v2-avatar img {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    object-fit: cover;
}

.home-v2-name {
    display: block;
    max-width: 150px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-v2-mypage {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    color: #fff2b8;
    font-size: 12px;
    font-weight: 800;
}

.home-v2-mypage img {
    width: 15px;
    height: auto;
}

.home-v2-wallet {
    display: flex;
    align-items: center;
    gap: 9px;
}

.home-v2-balance {
    height: 40px;
    min-width: 152px;
    padding: 0 2px 0 11px;
    color: #fff;
    background: url("/static/apps/front/site_v2/images/balance-panel.png") center / 100% 100% no-repeat;
    display: flex;
    align-items: center;
}

.home-v2-balance > img {
    width: 30px;
    height: 30px;
    margin-right: 6px;
}

.home-v2-balance span {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.home-v2-balance a img {
    width: 38px;
    height: 38px;
    display: block;
}

.home-v2-mail {
    position: relative;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-v2-mail img {
    max-width: 24px;
    max-height: 24px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.home-v2-mail em {
    position: absolute;
    right: -3px;
    top: -4px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    color: #fff;
    background: #ff1e1e;
    font-size: 10px;
    line-height: 15px;
    font-style: normal;
    text-align: center;
}

.home-v2-hero {
    margin-bottom: 9px;
}

.home-v2-carousel {
    overflow: hidden;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #180022;
}

.home-v2-carousel .carousel-item {
    height: 232px;
}

.home-v2-carousel img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-v2-carousel .carousel-indicators {
    display: none;
}

.home-v2-fallback-banner {
    height: 100%;
    padding: 28px;
    color: #fff;
    background: linear-gradient(135deg, #4b0e68 0%, #c53ae0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-v2-fallback-title {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
}

.home-v2-fallback-subtitle {
    margin-top: 10px;
    font-size: 16px;
    opacity: .88;
}

.home-v2-notice {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 30px;
    margin-bottom: 17px;
    color: #f2d49e;
    background: transparent;
    overflow: hidden;
}

.home-v2-notice > i {
    color: #f8dc9c;
    font-size: 20px;
    flex: 0 0 auto;
}

.home-v2-notice-track {
    flex: 1;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.home-v2-notice-text {
    position: absolute;
    white-space: nowrap;
    color: #fff6df;
    font-size: 12px;
    line-height: 24px;
    animation: home-v2-notice 16s linear infinite;
}

@keyframes home-v2-notice {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

.home-v2-categories {
    display: flex;
    gap: 33px;
    margin: 0 8px 21px;
}

.home-v2-category {
    width: 78px;
    padding: 0;
    border: 0;
    color: #e9e1ef;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.home-v2-category img {
    width: 66px;
    height: 66px;
    object-fit: cover;
}

.home-v2-category span {
    width: 96px;
    margin-left: -9px;
    color: #d8d0e1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

.home-v2-games {
    margin: 0;
}

.home-v2-games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px 7px;
}

.home-v2-game-card {
    display: none;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 9px;
    overflow: hidden;
    background: #05040b;
}

.home-v2-game-card.is-visible {
    display: block;
}

.home-v2-game-cover {
    position: relative;
    padding-top: 76%;
    background: linear-gradient(135deg, #371246, #05040b);
}

.home-v2-game-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-v2-game-name {
    padding: 3px 2px 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-v2-empty {
    grid-column: 1 / -1;
    padding: 36px 12px;
    border-radius: 10px;
    color: #bdaed0;
    background: rgba(255, 255, 255, .06);
    text-align: center;
    font-size: 13px;
}

#NavFooter.site-v2-footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 3000;
    width: 100%;
    max-width: 472px;
    height: 72px;
    padding: 7px 34px 5px;
    transform: translateX(-50%);
    border-top: 1px solid rgba(237, 208, 143, .22);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(85, 16, 116, .74) 0%, rgba(45, 6, 62, .45) 44%, transparent 76%),
        linear-gradient(180deg, #02040d 0%, #0b0015 42%, #220330 100%);
    box-shadow: 0 -9px 24px rgba(55, 5, 76, .72);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    box-sizing: border-box;
}

#NavFooter.site-v2-footer .site-v2-footer-item {
    flex: 0 0 54px;
    color: #d8c0e5;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

#NavFooter.site-v2-footer .site-v2-footer-item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(255, 183, 75, .25));
}

#NavFooter.site-v2-footer .site-v2-footer-item span {
    margin-top: 1px;
    color: inherit;
    font-size: 12px;
    white-space: nowrap;
}

#NavFooter.site-v2-footer .site-v2-footer-item.active {
    color: #ffd77b;
}

@media (max-width: 390px) {
    .home-v2-balance {
        min-width: 138px;
    }

    .home-v2-balance span {
        font-size: 14px;
    }

    .home-v2-games-grid {
        gap: 7px 5px;
    }

    .home-v2-game-name {
        font-size: 11px;
    }
}
