@import url("./mobile-frame.css?v=2026080111");

:root {
    --ios-safe-top: env(safe-area-inset-top, 0px);
    --ios-safe-right: env(safe-area-inset-right, 0px);
    --ios-safe-bottom: env(safe-area-inset-bottom, 0px);
    --ios-safe-left: env(safe-area-inset-left, 0px);
    /* JS �ᶯ̬д����ʵ���Ӹ߶� */
    --app-height: 100vh;
    color-scheme: dark;
}

html {
    width: 100%;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    width: 100%;
    min-height: var(--app-height);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* ֧���� viewport ��λ�� iOS */
@supports (height: 100dvh) {
    :root {
        --app-height: 100dvh;
    }

    body {
        min-height: 100dvh;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

a,
button,
[role="button"] {
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    select,
    textarea {
        -webkit-appearance: none;
        appearance: none;
    }

input,
textarea,
select {
    font-size: max(16px, 1em);
}

/* Unify client select backgrounds with the game dark surface. */
select {
    background-color: #050b14 !important;
    color-scheme: dark;
}

select option,
select optgroup {
    background-color: #050b14 !important;
    color: #f4dfbb;
}

select option:checked {
    background-color: #101827 !important;
    color: #ffe6a5;
}

    input[type="checkbox"],
    input[type="radio"],
    input[type="range"] {
        -webkit-appearance: auto;
        appearance: auto;
    }

img,
svg {
    -webkit-user-drag: none;
    user-select: none;
}

.ios-safe-x {
    padding-left: var(--ios-safe-left);
    padding-right: var(--ios-safe-right);
}

.ios-safe-bottom {
    padding-bottom: var(--ios-safe-bottom);
}

/* iOS �����Ż� */
@supports (-webkit-touch-callout: none) {
    .center-layout,
    .feature-content,
    .product-grid,
    .mail-content,
    .support-content,
    .personal-button-grid,
    .invite-scroll,
    .achievement-table-scroll {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
}

/* ��ֵҳ�������� */
.recharge-shell {
    min-height: var(--app-height);
    padding-left: var(--ios-safe-left);
    padding-right: var(--ios-safe-right);
    padding-bottom: calc(var(--ios-safe-bottom) + 10px);
    overflow: hidden;
}

/* ������Ҫ�Ѱ�ȫ������Լ��ĸ߶ȣ���Ҫֻ padding-top */
.recharge-topbar {
    min-height: calc(56px + var(--ios-safe-top));
    padding-top: var(--ios-safe-top);
    padding-left: 12px;
    padding-right: 12px;
    flex-shrink: 0;
}

/* ��Ʒ���������Լ����������ⱻ�ײ���ȫ������ */
.recharge-layout {
    min-height: 0;
}

.product-grid {
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

/* User wallet capsules: gold and balance share the lobby glass style. */
.wallet-pill,
.profile-wallet-pill,
.balance-item {
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(88, 219, 255, 0.72) !important;
    border-radius: 24px !important;
    background:
        linear-gradient(126deg, rgba(255, 255, 255, 0.14), transparent 28%),
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(180deg, rgba(33, 98, 145, 0.44), rgba(6, 22, 40, 0.76)),
        rgba(6, 16, 30, 0.62) !important;
    box-shadow:
        inset 0 0 0 1px rgba(120, 228, 255, 0.28),
        inset 0 0 20px rgba(77, 186, 255, 0.13),
        inset 0 -12px 18px rgba(0, 0, 0, 0.22),
        0 0 16px rgba(61, 198, 255, 0.2) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.wallet-pill::after,
.profile-wallet-pill::after,
.balance-item::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: 0;
    border: 1px solid rgba(162, 242, 255, 0.2);
    border-radius: inherit;
    pointer-events: none;
}

.wallet-pill > *,
.profile-wallet-pill > *,
.balance-item > * {
    position: relative;
    z-index: 1;
}

.wallet-pill strong,
.profile-wallet-pill strong,
.balance-item span {
    color: #f7fbff !important;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.72),
        0 0 8px rgba(255, 210, 91, 0.2) !important;
}

.wallet-pill button,
.wallet-add,
.profile-wallet-add,
.balance-add {
    border: 1px solid rgba(116, 203, 255, 0.68) !important;
    border-radius: 50% !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.34), transparent 20px),
        linear-gradient(180deg, rgba(48, 133, 196, 0.96) 0%, rgba(18, 79, 139, 0.96) 48%, rgba(8, 44, 92, 0.98) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -10px 14px rgba(0, 0, 0, 0.18),
        0 0 14px rgba(78, 181, 255, 0.28) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}
/* Unified asset topbar: back button plus chip/USDT capsules. */
.profile-topbar,
.feature-topbar,
.recharge-topbar,
.usdt-topbar,
.inline-page-topbar {
    min-height: clamp(46px, 11.5vw, 52px) !important;
    padding: 4px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    background: rgba(2, 12, 32, 0.62) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(72, 203, 255, 0.32) !important;
    box-shadow: none !important;
}

.profile-topbar .back-link,
.feature-topbar .back-btn,
.recharge-topbar .back-btn,
.usdt-topbar .back-btn,
.inline-page-topbar .inline-page-back {
    width: clamp(40px, 10.5vw, 46px) !important;
    height: clamp(46px, 11.5vw, 52px) !important;
    flex: 0 0 clamp(40px, 10.5vw, 46px) !important;
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #c8efff !important;
}

.profile-topbar .back-link::before,
.feature-topbar .back-btn::before,
.recharge-topbar .back-btn::before,
.usdt-topbar .back-btn::before,
.inline-page-topbar .inline-page-back::before {
    content: "" !important;
    width: 21px !important;
    height: 21px !important;
    display: block !important;
    border: 0 !important;
    background: currentColor !important;
    transform: none !important;
    --asset-topbar-back-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.8 4 7.8 12l8 8-1.9 1.9L4 12l9.9-9.9L15.8 4Z'/%3E%3C/svg%3E");
    -webkit-mask: var(--asset-topbar-back-icon) center / contain no-repeat !important;
    mask: var(--asset-topbar-back-icon) center / contain no-repeat !important;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 8px rgba(94, 216, 255, 0.48)) !important;
}

.profile-wallet-strip,
.wallet-strip,
.inline-balance-row {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 8px !important;
    padding-right: 4px !important;
}

.profile-wallet-pill,
.wallet-pill,
.inline-page-topbar .inline-balance-pill {
    min-width: 0 !important;
    width: 100% !important;
    height: clamp(35px, 9.2vw, 40px) !important;
    min-height: clamp(35px, 9.2vw, 40px) !important;
    padding: 3px 5px !important;
    display: grid !important;
    grid-template-columns: clamp(26px, 7vw, 31px) minmax(0, 1fr) clamp(26px, 7vw, 31px) !important;
    align-items: center !important;
    gap: 3px !important;
    overflow: hidden !important;
    border: 1px solid rgba(122, 189, 255, 0.42) !important;
    border-radius: 20px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%),
        linear-gradient(90deg, rgba(11, 31, 61, 0.88), rgba(3, 10, 24, 0.92)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 12px rgba(0, 0, 0, 0.42),
        0 0 8px rgba(71, 165, 255, 0.14) !important;
    text-decoration: none !important;
}

.profile-wallet-pill::after,
.wallet-pill::after,
.inline-page-topbar .inline-balance-pill::after {
    content: none !important;
}

.wallet-icon,
.profile-wallet-icon,
.wallet-pill img,
.inline-page-topbar .inline-balance-pill svg,
.inline-page-topbar .inline-balance-pill .balance-currency-icon {
    width: clamp(27px, 7.2vw, 32px) !important;
    height: clamp(27px, 7.2vw, 32px) !important;
    justify-self: center !important;
    place-self: center !important;
    flex: 0 0 auto !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.profile-wallet-pill strong,
.wallet-pill strong,
.inline-page-topbar .inline-balance-pill span {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    color: #f7fbff !important;
    font-size: clamp(12px, 3.3vw, 15px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.72),
        0 0 8px rgba(255, 210, 91, 0.2) !important;
}

.profile-wallet-add,
.wallet-pill button,
.wallet-add,
.inline-page-topbar .inline-balance-pill .balance-add {
    width: clamp(26px, 7vw, 31px) !important;
    height: clamp(26px, 7vw, 31px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: center !important;
    position: static !important;
    border: 1px solid rgba(111, 198, 255, 0.68) !important;
    border-radius: 50% !important;
    color: #c8ecff !important;
    background:
        radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.36), transparent 28%),
        linear-gradient(180deg, rgba(26, 91, 143, 0.94), rgba(5, 22, 48, 0.96)) !important;
    box-shadow:
        inset 0 0 7px rgba(255, 255, 255, 0.12),
        0 0 8px rgba(95, 197, 255, 0.25) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(18px, 5vw, 22px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    transform: none !important;
}