/* ========== FIFA WC 2026 · 静态资源（整站统一样式） ========== */

:root {
    --bg0: #070f18;
    --bg1: #0a1628;
    --card: rgba(18, 42, 64, 0.78);
    --line: rgba(212, 160, 18, 0.26);
    --gold: #e8c04a;
    --gold-bright: #f2d872;
    --gold-dim: #c9a84e;
    --pitch: #143d32;
    --text: #f2f7fb;
    --text-secondary: #d2dee9;
    --muted: #b4c5d8;
    --muted-soft: #92a8be;
    --on-accent: #fffdf5;
    --text-accent: #f8ecc4;
    --danger: #f87171;
    --ok: #4ade80;
    --live: #fdba74;
    /* 字号阶梯：正文 16 → 辅助 13 → 标签 11 */
    --font-base: 16px;
    --font-xs: 11px;
    --font-sm: 13px;
    --font-md: 14px;
    --font-lg: 15px;
    --font-xl: 17px;
    --font-2xl: 18px;
    --leading-tight: 1.3;
    --leading-body: 1.55;
    --leading-snug: 1.4;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "DM Sans", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(212, 160, 18, 0.12), transparent 55%),
        linear-gradient(165deg, var(--bg0), var(--bg1) 40%, #061018);
    background-attachment: fixed;
    color: var(--text);
    font-size: var(--font-base);
    line-height: var(--leading-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

code {
    font-size: 0.85em;
    color: var(--gold);
    background: rgba(0, 0, 0, 0.25);
    padding: 0.12em 0.35em;
    border-radius: 4px;
}

.hidden {
    display: none !important;
}

/* ========== 首页壳 ========== */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    max-width: 32rem;
    margin: 0 auto;
    padding: calc(10px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right));
}

.main-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.pull-refresh {
    display: none;
    align-items: center;
    justify-content: center;
    height: 0;
    overflow: hidden;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--gold-dim);
    letter-spacing: 0.03em;
    transition: height 0.15s ease;
}

.pull-refresh--visible {
    display: flex;
    height: 36px;
}

.pull-refresh--ready {
    color: var(--gold);
}

.pull-refresh--busy {
    color: var(--muted);
}

/* ========== Header ========== */
.header-hero {
    text-align: center;
    padding: 10px 10px 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(20, 61, 50, 0.35), var(--card));
    margin-bottom: 10px;
}

.header-hero__badge {
    font-size: var(--font-xs);
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    line-height: var(--leading-tight);
}

.header-hero__title {
    margin: 3px 0 2px;
    font-weight: 800;
    font-size: clamp(1.15rem, 4.5vw, 1.55rem);
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: var(--leading-tight);
}

.header-hero__title span {
    color: var(--gold-bright);
}

.header-hero__desc {
    margin: 0;
    font-size: var(--font-sm);
    color: var(--muted);
    line-height: var(--leading-snug);
}

.header-hero__desc--mobile {
    margin-bottom: 2px;
}

@media (min-width: 480px) {
    .header-hero__desc--mobile {
        display: none;
    }
}

/* 头部免责声明：横向滚动（两段相同文案无缝循环） */
.header-marquee {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    text-align: start;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.header-marquee__track {
    display: inline-flex;
    width: max-content;
    animation: header-marquee-scroll 32s linear infinite;
}

.header-marquee__segment {
    flex-shrink: 0;
    padding-right: 3rem;
    white-space: nowrap;
    font-size: var(--font-xs);
    color: var(--muted);
    line-height: var(--leading-snug);
}

.header-marquee__hl {
    color: var(--gold-bright);
    font-weight: 600;
}

@keyframes header-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-marquee {
        -webkit-mask-image: none;
        mask-image: none;
        text-align: center;
    }

    .header-marquee__track {
        animation: none;
        transform: none;
        display: block;
        width: auto;
        max-width: 100%;
        white-space: normal;
    }

    .header-marquee__segment {
        padding-right: 0;
        white-space: normal;
    }

    .header-marquee__segment[aria-hidden="true"] {
        display: none;
    }
}

.user-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: stretch;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.user-bar__actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-left: 2px;
    padding-left: 10px;
    border-left: 1px solid rgba(212, 160, 18, 0.16);
}

.user-bar__card {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 5px 8px;
    border-radius: 10px;
    border: 1px solid rgba(212, 160, 18, 0.22);
    background: rgba(0, 0, 0, 0.22);
}

.user-bar__card--profile {
    min-width: 0;
    width: 100%;
    text-align: left;
}

.user-bar__card--points {
    gap: 6px;
    background: linear-gradient(145deg, rgba(232, 192, 74, 0.14), rgba(20, 61, 50, 0.45));
    border-color: rgba(232, 192, 74, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.user-bar__card--profile.user-bar__card--tap {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.user-bar__card--profile.user-bar__card--tap:active {
    transform: scale(0.98);
    background: rgba(232, 192, 74, 0.1);
    border-color: rgba(232, 192, 74, 0.32);
}

.user-bar__card--profile:not(.user-bar__card--tap) {
    cursor: default;
    user-select: none;
}

.user-bar__avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(232, 192, 74, 0.35), rgba(20, 61, 50, 0.85));
    border: 1px solid rgba(232, 192, 74, 0.35);
    position: relative;
}

.user-bar__avatar::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 42%;
    width: 9px;
    height: 9px;
    margin: -8px 0 0 -4.5px;
    border-radius: 50%;
    background: rgba(240, 246, 252, 0.92);
    box-shadow: 0 11px 0 -2px rgba(240, 246, 252, 0.92);
}

.user-bar__points-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: var(--font-sm);
    font-weight: 800;
    color: var(--gold-bright);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(232, 192, 74, 0.4);
}

.user-bar__points-icon::before {
    content: '¥';
    font-size: var(--font-md);
    font-weight: 800;
    line-height: 1;
}

.user-bar__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.user-bar__card--points .user-bar__meta,
.user-bar__meta--points {
    align-items: flex-end;
    text-align: right;
    gap: 0;
    justify-content: center;
}

.user-bar__label {
    font-size: var(--font-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    line-height: 1.1;
}

.user-bar__label--points {
    font-size: var(--font-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--muted-soft);
}

.user-bar__value {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--gold-bright);
    line-height: var(--leading-tight);
}

.user-bar__name {
    display: block;
    max-width: 100%;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-bar__value--points,
.user-bar__card--points .user-bar__value {
    margin: 0;
    font-size: var(--font-base);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.user-bar__stat--tap {
    margin: 0;
    padding: 5px 8px;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    text-align: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.user-bar__stat--tap:active {
    transform: scale(0.98);
    background: linear-gradient(145deg, rgba(232, 192, 74, 0.22), rgba(20, 61, 50, 0.5));
}

.user-bar__value.points-bump {
    animation: points-bump 0.55s ease;
}

.user-bar__tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(212, 160, 18, 0.24);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.user-bar__tool:active {
    transform: scale(0.98);
}

.user-bar__tool--refresh {
    width: 36px;
    min-width: 36px;
    flex-shrink: 0;
    padding: 0;
    color: var(--gold-bright);
    background: rgba(20, 61, 50, 0.35);
}

.user-bar__tool--refresh:active {
    background: rgba(232, 192, 74, 0.12);
}

.user-bar__tool--logout {
    flex-shrink: 0;
    min-width: 52px;
    padding: 0 12px;
    color: var(--text-secondary);
    border-color: rgba(168, 189, 212, 0.28);
}

.user-bar__tool--logout:active {
    color: var(--danger);
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.08);
}

.user-bar__tool:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.user-bar__tool-icon {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
}

.user-bar__tool.is-busy .user-bar__refresh-icon {
    animation: user-bar-refresh-spin 0.75s linear infinite;
}

@keyframes user-bar-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes points-bump {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.12);
        color: var(--ok);
    }
    100% {
        transform: scale(1);
    }
}

/* ========== Auth pages ========== */
.auth-page {
    max-width: 26rem;
    margin: 0 auto;
    padding: calc(16px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
}

.auth-hero {
    text-align: center;
    margin-bottom: 18px;
}

.auth-hero__badge {
    font-size: var(--font-xs);
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.auth-hero__title {
    margin: 8px 0 4px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
}

.auth-hero__title span {
    color: var(--gold-bright);
}

.auth-hero__desc {
    margin: 0;
    font-size: var(--font-sm);
    color: var(--muted);
}

.auth-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 16px;
    background: rgba(0, 0, 0, 0.22);
}

.auth-card__title {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.auth-card__link {
    text-align: center;
    margin: 16px 0 0;
    font-size: var(--font-sm);
}

.auth-card__link a {
    color: var(--gold-bright);
}

/* 「我的」内嵌登录 / 注册 */
.mine-auth-panel {
    margin-bottom: 12px;
}

.auth-text-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: var(--font-sm);
    color: var(--gold-bright);
    cursor: pointer;
    text-decoration: underline;
}

.auth-text-btn:hover {
    opacity: 0.92;
}

/* ========== Form fields ========== */
.field {
    display: block;
    margin-bottom: 12px;
}

.field-label {
    display: block;
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

/* 账户绑定：标签列固定为「约四字宽」（用 em 随标签字号缩放）；短标签左对齐，右侧自然留白 */
.field--bind-row {
    font-size: var(--font-md);
    display: grid;
    grid-template-columns: 4.5em minmax(0, 1fr);
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 14px;
}

.field--bind-row .field-label {
    margin-bottom: 0;
    text-align: left;
    font-size: inherit;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    line-height: var(--leading-snug);
    white-space: nowrap;
}

.field--bind-row .input-num {
    font-size: 16px;
    min-width: 0;
    width: 100%;
}

@media (min-width: 380px) {
    .field--bind-row {
        grid-template-columns: 4.65em minmax(0, 1fr);
    }
}

@media (min-width: 420px) {
    .field--bind-row {
        grid-template-columns: 4.85em minmax(0, 1fr);
        gap: 10px 16px;
    }
}

.field-input,
.field-select,
.field-textarea,
.input-num {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    padding: 11px 12px;
    font-size: 16px;
}

.field-textarea {
    resize: vertical;
    min-height: 88px;
    font-family: inherit;
}

.form-msg {
    min-height: 1.25em;
    font-size: var(--font-md);
    color: var(--danger);
    margin: 8px 0 0;
    line-height: var(--leading-snug);
}

.form-msg.form-msg--ok {
    color: var(--ok);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.toolbar .field-label {
    flex: 1 1 100%;
}

.toolbar .input-num {
    flex: 1 1 120px;
    min-width: 0;
}

/* 猜比分 / 串关：标签单独一行，投入与操作按钮同一行 */
.toolbar--score-bet,
.toolbar--parlay-bet {
    display: block;
}

.stake-inline--parlay .btn {
    white-space: nowrap;
}

.stake-block .field-label {
    margin-bottom: 6px;
}

.stake-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stake-inline .input-num {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.stake-inline .btn {
    flex-shrink: 0;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    line-height: var(--leading-snug);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
    color: var(--text);
}

.btn.primary {
    background: linear-gradient(180deg, rgba(232, 192, 74, 0.42), rgba(20, 61, 50, 0.58));
    border-color: var(--gold-dim);
    color: var(--on-accent);
}

.btn.primary:active {
    color: var(--on-accent);
}

.btn.ghost {
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-secondary);
}

.btn.ghost:active {
    color: var(--text);
    background: rgba(232, 192, 74, 0.08);
}

.btn.block {
    width: 100%;
}

.btn--sm {
    padding: 7px 12px;
    font-size: var(--font-md);
}

.btn:disabled {
    color: var(--muted-soft);
    opacity: 0.62;
    cursor: not-allowed;
}

.spaced {
    margin-top: 14px;
}

/* ========== Cards / panels ========== */
.card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
}

.card--collapse > summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-accent);
    list-style: none;
}

.card--collapse > summary::-webkit-details-marker {
    display: none;
}

.card--collapse > summary::after {
    content: "▾";
    float: right;
    font-size: var(--font-sm);
    color: var(--muted);
    transition: transform 0.2s ease;
}

.card--collapse[open] > summary::after {
    transform: rotate(180deg);
}

.card--inner {
    background: rgba(0, 0, 0, 0.18);
}

.bind-summary-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.audit-badge {
    display: inline-block;
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: var(--font-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    color: var(--muted);
}

.audit-badge--none {
    border-color: rgba(139, 163, 190, 0.35);
}

.audit-badge--pending {
    border-color: rgba(232, 192, 74, 0.45);
    color: var(--gold);
    background: rgba(232, 192, 74, 0.08);
}

.audit-badge--approved {
    border-color: rgba(74, 222, 128, 0.45);
    color: var(--ok);
}

.audit-badge--rejected {
    border-color: rgba(248, 113, 113, 0.45);
    color: var(--danger);
}

.panel {
    display: none;
}

.panel.is-active {
    display: block;
}

.hint {
    font-size: var(--font-sm);
    color: var(--muted);
    margin: 0 0 12px;
    line-height: var(--leading-body);
}

/* 面板内统一提示框（串关关数不足、校验说明等） */
.panel-notice-host:empty,
.panel-notice-host.hidden {
    display: none !important;
}

.panel-notice-host {
    margin: 10px 0 0;
}

.panel-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.2);
    font-size: var(--font-sm);
    line-height: var(--leading-body);
}

.panel-notice--warn {
    border-color: rgba(232, 192, 74, 0.38);
    background: rgba(232, 192, 74, 0.08);
}

.panel-notice--error {
    border-color: rgba(248, 113, 113, 0.32);
    background: rgba(248, 113, 113, 0.08);
}

.panel-notice__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: var(--font-sm);
    font-weight: 800;
    line-height: 1;
}

.panel-notice--warn .panel-notice__icon {
    color: var(--gold-bright);
    background: rgba(232, 192, 74, 0.16);
    border: 1px solid rgba(232, 192, 74, 0.35);
}

.panel-notice--error .panel-notice__icon {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.panel-notice__body {
    flex: 1;
    min-width: 0;
}

.panel-notice__title {
    margin: 0;
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--text);
    line-height: var(--leading-snug);
}

.panel-notice--warn .panel-notice__title {
    color: var(--text-accent);
}

.panel-notice--error .panel-notice__title {
    color: var(--danger);
}

.panel-notice__desc {
    margin: 4px 0 0;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: var(--leading-body);
}

.parlay-cart .panel-notice {
    margin-top: 4px;
}

/* 可折叠规则说明（头部投注规则 / 串关 / 充值步骤） */
.bet-rules {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    font-size: var(--font-sm);
    line-height: var(--leading-body);
}

.bet-rules--header {
    margin-top: 8px;
    text-align: start;
}

.bet-rules--parlay,
.bet-rules--recharge {
    margin-bottom: 10px;
}

.bet-rules__summary {
    cursor: pointer;
    padding: 6px 10px;
    font-weight: 700;
    font-size: var(--font-sm);
    color: var(--text-accent);
    list-style: none;
    letter-spacing: 0.02em;
    line-height: var(--leading-snug);
}

.bet-rules__summary::-webkit-details-marker {
    display: none;
}

.bet-rules__summary::after {
    content: "▾";
    float: right;
    font-size: var(--font-sm);
    color: var(--muted);
    transition: transform 0.2s ease;
}

.bet-rules[open] > .bet-rules__summary::after {
    transform: rotate(180deg);
}

.bet-rules__list {
    margin: 0;
    padding: 0 12px 10px 28px;
    color: var(--muted);
}

.bet-rules__list--ol {
    padding-left: 32px;
}

.bet-rules__list li {
    margin-bottom: 6px;
}

.bet-rules__list li:last-child {
    margin-bottom: 0;
}

.bet-rules__list strong {
    color: var(--text);
    font-weight: 700;
}

.subheading {
    font-size: var(--font-md);
    font-weight: 700;
    margin: 14px 0 8px;
    color: var(--text-accent);
    letter-spacing: 0.03em;
}

.page-footer {
    text-align: center;
    font-size: var(--font-xs);
    color: var(--muted);
    margin-top: 22px;
    padding-bottom: env(safe-area-inset-bottom);
    opacity: 0.92;
    letter-spacing: 0.04em;
}

/* ========== Bottom nav ========== */
.bottom-nav {
    position: fixed;
    z-index: 10040;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 32rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    padding: 10px max(10px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom))
        max(10px, env(safe-area-inset-right));
    background: rgba(8, 14, 24, 0.88);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
    -webkit-touch-callout: none;
}

.bottom-nav__btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 5px 2px 6px;
    min-height: 54px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--muted-soft);
    font-family: inherit;
    cursor: pointer;
}

.bottom-nav__icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: inherit;
    opacity: 0.82;
}

.bottom-nav__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav__label {
    font-size: var(--font-xs);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.bottom-nav__btn.is-active {
    color: var(--text-accent);
    background: rgba(232, 192, 74, 0.14);
    box-shadow:
        0 2px 10px rgba(232, 192, 74, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bottom-nav__btn.is-active .bottom-nav__icon {
    color: var(--gold-bright);
    opacity: 1;
}

.bottom-nav__btn.is-active .bottom-nav__label {
    font-weight: 600;
}

.bottom-nav__btn[data-tab='score'] .bottom-nav__label {
    letter-spacing: 0.01em;
}

.bottom-nav__badge {
    position: absolute;
    z-index: 2;
    top: 4px;
    right: 2px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    background: rgba(242, 216, 114, 0.95);
    color: rgba(10, 22, 40, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.bottom-nav__btn:focus-visible,
.btn:focus-visible,
.odds-btn:focus-visible,
.wdl-tab:focus-visible,
.hc-side-btn:focus-visible,
.score-chip:focus-visible,
.recharge-channel__btn:focus-visible,
.bet-rules__summary:focus-visible,
.card--collapse > summary:focus-visible,
.user-bar__stat--tap:focus-visible,
.user-bar__card--profile.user-bar__card--tap:focus-visible,
.user-bar__tool:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ========== 加载骨架 / 空状态 / 错误重试 ========== */
.match-list.is-loading {
    pointer-events: none;
}

.match-skeleton {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.18);
}

.match-skeleton__meta,
.match-skeleton__block,
.match-skeleton__odds > div {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.14) 45%,
        rgba(255, 255, 255, 0.06) 90%
    );
    background-size: 200% 100%;
    animation: wc-shimmer 1.35s ease-in-out infinite;
}

.match-skeleton__meta {
    width: 55%;
    margin-bottom: 12px;
}

.match-skeleton__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.match-skeleton__block {
    height: 28px;
}

.match-skeleton__vs {
    width: 24px;
    height: 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.match-skeleton__odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.match-skeleton__odds > div {
    height: 40px;
}

.list-skeleton {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-skeleton__row {
    height: 72px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.12) 45%,
        rgba(255, 255, 255, 0.05) 90%
    );
    background-size: 200% 100%;
    animation: wc-shimmer 1.35s ease-in-out infinite;
}

@keyframes wc-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .match-skeleton__meta,
    .match-skeleton__block,
    .match-skeleton__odds > div,
    .list-skeleton__row {
        animation: none;
        background: rgba(255, 255, 255, 0.08);
    }
}

.empty-state {
    text-align: center;
    padding: 26px 16px 22px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
}

.empty-state--error {
    border-style: solid;
    border-color: rgba(248, 113, 113, 0.28);
}

.empty-state__icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 10px;
}

.empty-state--error .empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--danger);
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.empty-state__title {
    margin: 0 0 8px;
    font-size: var(--font-base);
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.02em;
}

.empty-state__desc {
    margin: 0 auto 14px;
    max-width: 22rem;
    font-size: var(--font-sm);
    color: var(--muted);
    line-height: var(--leading-body);
}

.empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.empty-state__actions .btn {
    min-width: 7.5rem;
}

/* 串关空车：三个跳转按钮单行均分（手机端） */
#parlayCart .empty-state__actions {
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    max-width: 100%;
}

#parlayCart .empty-state__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 5px;
    font-size: var(--font-sm);
    line-height: var(--leading-tight);
}

/* ========== Match cards ========== */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-date-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-date-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 6px 10px;
    margin: 0 -2px;
    border-radius: 10px;
    font-size: var(--font-sm);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--gold-bright);
    background: rgba(7, 15, 24, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line);
}

.match-date-group__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: var(--card);
}

.match-card--locked {
    opacity: 0.92;
}

.match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    font-size: var(--font-sm);
    color: var(--muted-soft);
    margin-bottom: 10px;
    line-height: var(--leading-snug);
}

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: var(--font-xs);
    font-weight: 700;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
    letter-spacing: 0.03em;
}

.badge--scheduled { color: var(--ok); }
.badge--live { color: var(--live); }
.badge--finished { color: var(--muted); }
.badge--locked { color: var(--muted-soft); }

.score-chip--readonly {
    opacity: 0.72;
    cursor: not-allowed;
}

.teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
}

.team-tag {
    display: block;
    font-size: var(--font-xs);
    color: var(--muted);
    margin-bottom: 3px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.team-name {
    font-size: clamp(16px, 4.2vw, 18px);
    font-weight: 700;
    color: var(--text);
    line-height: var(--leading-snug);
    letter-spacing: 0.02em;
}

.vs {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.wdl-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.wdl-block__title {
    font-size: var(--font-sm);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-accent);
}

.wdl-block--hc {
    margin-top: 12px;
}

.wdl-tabs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.wdl-tab {
    flex: 1;
    margin: 0;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--text-secondary);
    font-size: var(--font-md);
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.wdl-tab.is-active {
    border-color: var(--gold);
    color: var(--on-accent);
    background: rgba(232, 192, 74, 0.14);
    box-shadow: 0 0 0 1px rgba(232, 192, 74, 0.18);
}

.wdl-panel .wdl-block:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 6px;
}

.wdl-panel--hidden {
    display: none !important;
}

.pill {
    font-weight: 600;
    color: var(--gold-bright);
}

.odds-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.odds-btn {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 5px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary);
    font-size: var(--font-md);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    line-height: var(--leading-snug);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.odds-btn small {
    display: block;
    margin-top: 3px;
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--gold-bright);
}

.odds-btn.is-picked {
    border-color: var(--gold);
    background: rgba(232, 192, 74, 0.14);
    color: var(--text);
}

.odds-btn.odds-btn--flash,
.score-chip.score-chip--flash {
    animation: pick-flash 0.42s ease;
}

@keyframes pick-flash {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 192, 74, 0.55);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(232, 192, 74, 0);
    }
}

.parlay-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}

.parlay-row__label {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-secondary);
    width: 100%;
}

.stake-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: stretch;
}

.stake-row .input-num {
    flex: 1;
}

.stake-row .btn {
    flex: 0 0 auto;
}

.stake-row--score {
    flex-wrap: nowrap;
    align-items: stretch;
}

.stake-row--score .input-num {
    flex: 1 1 0;
    min-width: 0;
}

.stake-row--score .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.match-locked-hint {
    margin: 8px 0 0;
}

.match-result-line {
    margin-top: 8px;
    font-size: var(--font-sm);
    color: var(--muted);
}

.score-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.score-chip--match {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    flex: 1 1 100%;
}

.score-chip--match.is-active {
    border-color: var(--gold);
    background: rgba(232, 192, 74, 0.12);
    color: var(--text);
}

.score-chip--match__teams {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
}

.score-chip--match__meta {
    display: block;
    font-size: var(--font-sm);
    color: var(--muted);
    margin-top: 2px;
    line-height: var(--leading-snug);
}

.score-chip--match .muted {
    color: var(--muted-soft);
    font-weight: 500;
}

.muted {
    color: var(--muted);
}

.score-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 猜比分不可投注：球队下方无虚线，与胜平负锁定态一致（可投注时仍用 .wdl-block 虚线） */
.score-card-body--locked {
    margin-top: 0;
    padding-top: 0;
}

.score-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 11px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary);
    font-size: var(--font-md);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    line-height: var(--leading-snug);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.score-chip__score {
    font-size: var(--font-md);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.score-chip__odds {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--muted);
}

.score-chip.is-selected {
    border-color: var(--gold);
    background: rgba(232, 192, 74, 0.14);
    color: var(--text);
}

.score-parlay-add {
    flex: 1 1 100%;
    margin-top: 4px;
}

/* ========== Parlay cart ========== */
.parlay-cart {
    min-height: 60px;
}

.parlay-odds-preview {
    margin: 0 0 10px;
    font-size: var(--font-sm);
    color: var(--gold-bright);
}

.parlay-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.18);
    font-size: var(--font-sm);
}

.parlay-item__text {
    flex: 1;
    min-width: 0;
}

.parlay-item__actions {
    text-align: right;
    flex-shrink: 0;
}

.parlay-item__odds {
    display: block;
    color: var(--gold-bright);
    font-size: var(--font-sm);
}

/* ========== Slips ========== */
.slip-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slip-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.22);
    font-size: var(--font-md);
    line-height: var(--leading-snug);
}

.slip-card-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.slip-order-no-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
}

.slip-order-no {
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.slip-copy-order {
    flex-shrink: 0;
    margin: 0;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    font-size: var(--font-xs);
    line-height: 1.6;
    cursor: pointer;
}

.slip-copy-order:hover {
    color: var(--text-accent);
    border-color: var(--gold-dim);
}

.slip-copy-order:active {
    opacity: 0.85;
}

.slip-kind { font-weight: 700; }
.slip-status.is-won { color: var(--ok); }
.slip-status.is-lost { color: var(--danger); }
.slip-status.is-pending { color: var(--muted); }
.slip-status.is-void { color: var(--muted); opacity: 0.9; }

.slip-card-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.slip-cancel {
    font-size: var(--font-sm);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-sm);
    color: var(--muted);
    line-height: var(--leading-snug);
}

.checkbox-row input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.hc-line-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.14);
}

.hc-line-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.hc-line-head__title {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--text);
}

.hc-line-head__note {
    font-size: var(--font-sm);
    color: var(--muted);
}

.hc-line-toolbar .field.hc-line-toolbar__select {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
}

/* 自定义下拉：触发器 + 底部选项面板（让球球数、开户银行等） */
.app-select {
    position: relative;
    width: 100%;
}

.app-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.app-select__trigger,
select.hc-line-select {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    margin: 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    background-color: rgba(0, 0, 0, 0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e8c04a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    color: var(--text);
    padding: 10px 40px 10px 14px;
    font-size: var(--font-base);
    font-weight: 600;
    font-family: inherit;
    line-height: var(--leading-snug);
    text-align: left;
    cursor: pointer;
    color-scheme: dark;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.app-select__trigger.is-placeholder {
    color: var(--muted);
    font-weight: 500;
}

.app-select__trigger:hover:not(:disabled),
select.hc-line-select:hover:not(:disabled) {
    border-color: rgba(232, 192, 74, 0.38);
}

.app-select__trigger:focus-visible,
select.hc-line-select:focus {
    outline: none;
    border-color: var(--gold-dim);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 2px rgba(232, 192, 74, 0.18);
}

.app-select__trigger:disabled,
select.hc-line-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body.app-picker-open {
    overflow: hidden;
}

.app-picker {
    position: fixed;
    inset: 0;
    /* 须高于 .bottom-nav (10040) 与投注确认层，避免最后一项被底栏遮住 */
    z-index: 10060;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
}

.app-picker[hidden] {
    display: none !important;
}

.app-picker__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 18, 0.72);
}

.app-picker__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    max-height: min(70dvh, 520px);
    display: flex;
    flex-direction: column;
    border-radius: 18px 18px 0 0;
    border: 1px solid rgba(212, 160, 18, 0.32);
    border-bottom: none;
    background: linear-gradient(180deg, rgba(18, 36, 56, 0.99), rgba(8, 16, 26, 0.99));
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.app-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.app-picker__title {
    margin: 0;
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.app-picker__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.app-picker__close:hover {
    color: var(--text);
    background: rgba(232, 192, 74, 0.12);
}

.app-picker__list {
    list-style: none;
    margin: 0;
    padding: 6px 0 calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.app-picker__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 18px;
    border: none;
    border-bottom: 1px solid rgba(212, 160, 18, 0.1);
    background: transparent;
    color: var(--text);
    font-size: var(--font-base);
    font-weight: 600;
    font-family: inherit;
    line-height: var(--leading-snug);
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.app-picker__item:last-child {
    border-bottom: none;
}

.app-picker__item:hover {
    background: rgba(232, 192, 74, 0.08);
}

.app-picker__item.is-active {
    background: rgba(232, 192, 74, 0.14);
    color: var(--gold);
}

.app-picker__item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.app-picker__item-label {
    flex: 1;
    min-width: 0;
}

.app-picker__item-sub {
    display: block;
    margin-top: 3px;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--muted);
}

.app-picker__item.is-active .app-picker__item-sub {
    color: rgba(232, 192, 74, 0.75);
}

.app-picker__check {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

.hc-line-explain {
    margin: 0;
    padding-top: 6px;
    border-top: 1px dashed var(--line);
}

.hc-line-explain__title {
    display: block;
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--text-accent);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.hc-line-explain__body {
    margin: 0;
    font-size: var(--font-sm);
    line-height: var(--leading-body);
    color: var(--muted);
}

.hc-line-step {
    margin-bottom: 10px;
}

.hc-side-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.hc-side-btn {
    flex: 1 1 120px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
    color: var(--text-secondary);
    font-size: var(--font-md);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    line-height: var(--leading-snug);
}

.hc-side-btn:hover:not(:disabled) {
    border-color: rgba(232, 192, 74, 0.35);
    color: var(--text);
}

.hc-side-btn.is-active {
    border-color: var(--gold-dim);
    color: var(--on-accent);
    background: rgba(232, 192, 74, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hc-side-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.hc-line-toolbar .field-label {
    font-size: var(--font-sm);
}

.hc-line-toolbar .hc-line-field-kw {
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.slip-card-stake {
    color: var(--muted);
    font-size: var(--font-sm);
}

.slip-redeem {
    margin-top: 6px;
    font-size: var(--font-sm);
    color: var(--muted);
}

.slip-redeem--done { color: var(--ok); }

.slip-win {
    margin-top: 8px;
    color: var(--ok);
}

.slip-legs {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: var(--font-sm);
}

.slip-footer {
    margin-top: 12px;
}

/* ========== Support chat ========== */
.support-unread-badge {
    display: inline-block;
    min-width: 18px;
    margin-left: 8px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: var(--font-xs);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    background: #e85d5d;
    color: #fff;
    vertical-align: middle;
}

.support-unread-badge.hidden {
    display: none;
}

.support-chat-room {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
    min-height: 280px;
    max-height: min(52vh, 420px);
}

.support-chat-thread {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.support-chat-composer {
    --chat-composer-h: 44px;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.12);
}

.support-chat-composer.hidden {
    display: none;
}

.support-chat-input {
    flex: 1;
    height: var(--chat-composer-h);
    min-height: var(--chat-composer-h);
    max-height: var(--chat-composer-h);
    margin: 0;
    padding: 11px 12px;
    line-height: 1.25;
    resize: none;
    overflow-y: auto;
}

.support-chat-send {
    flex-shrink: 0;
    min-width: 64px;
    height: var(--chat-composer-h);
    min-height: var(--chat-composer-h);
    padding: 0 16px;
}

.chat-bubble-row {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}

.chat-bubble-row--mine {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-bubble-row--other {
    align-self: flex-start;
}

.chat-bubble-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    font-size: var(--font-xs);
    color: var(--muted);
}

.chat-bubble-row--mine .chat-bubble-meta {
    flex-direction: row-reverse;
}

.chat-bubble {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: var(--font-md);
    line-height: var(--leading-body);
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-bubble-row--mine .chat-bubble {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--text);
    border-bottom-right-radius: 4px;
}

.chat-bubble-row--other .chat-bubble {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-bubble-row--system {
    align-self: center;
    max-width: 100%;
}

.chat-bubble-row--system .chat-bubble {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: var(--font-sm);
    text-align: center;
    padding: 4px 8px;
}

/* Toast：统一卡片式 */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(100px + env(safe-area-inset-bottom));
    z-index: 10050;
    max-width: min(26rem, calc(100vw - 24px));
    padding: 0;
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(16, 32, 50, 0.98), rgba(8, 16, 28, 0.98));
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    text-align: start;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast--show {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.toast__card {
    padding: 14px 16px;
}

.toast__card--closable {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px 14px 16px;
}

.toast__card--closable .toast__content {
    flex: 1 1 auto;
    min-width: 0;
}

.toast__content {
    min-width: 0;
}

.toast__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: -2px -2px 0 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}

.toast__close:active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.toast__title {
    margin: 0 0 4px;
    font-size: var(--font-md);
    font-weight: 800;
    color: var(--text);
    line-height: var(--leading-snug);
}

.toast__msg {
    margin: 0;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: var(--leading-body);
}

.toast--ok {
    border-color: rgba(74, 222, 128, 0.35);
}

.toast--ok .toast__title {
    color: var(--ok);
}

.toast--error {
    border-color: rgba(248, 113, 113, 0.38);
}

.toast--error .toast__title {
    color: var(--danger);
}

.toast--warn {
    border-color: rgba(232, 192, 74, 0.42);
}

.toast--warn .toast__title {
    color: var(--gold);
}

.toast--info .toast__title {
    color: var(--text-accent);
}

/* 登录/注册页无底部导航，Toast 贴近底边 */
body:has(.auth-page) .toast {
    bottom: calc(24px + env(safe-area-inset-bottom));
}

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

/* ========== 通用确认弹层 ========== */
body.app-confirm-open {
    overflow: hidden;
}

.app-confirm {
    position: fixed;
    inset: 0;
    z-index: 10054;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom))
        max(12px, env(safe-area-inset-left));
}

.app-confirm[hidden] {
    display: none !important;
}

.app-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 18, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.app-confirm__panel {
    position: relative;
    width: 100%;
    max-width: 26rem;
    border-radius: 18px;
    border: 1px solid rgba(212, 160, 18, 0.32);
    background: linear-gradient(180deg, rgba(18, 36, 56, 0.99), rgba(8, 16, 26, 0.99));
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.app-confirm__head {
    padding: 14px 16px 8px;
    border-bottom: 1px solid rgba(212, 160, 18, 0.14);
    background: rgba(0, 0, 0, 0.12);
}

.app-confirm__title {
    margin: 0;
    font-size: var(--font-base);
    font-weight: 800;
    color: var(--on-accent);
    letter-spacing: 0.04em;
    line-height: var(--leading-tight);
    text-align: center;
}

.app-confirm__title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold-bright), var(--gold-dim), transparent);
    opacity: 0.9;
}

.app-confirm__body {
    margin: 0;
    padding: 14px 18px 16px;
    font-size: var(--font-sm);
    line-height: var(--leading-body);
    color: var(--text-secondary);
    text-align: center;
}

.app-confirm__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 14px 14px;
}

.app-confirm__actions .btn.primary {
    color: var(--on-accent);
}

/* ========== 添加到主屏幕引导 ========== */
body.a2hs-guide-open {
    overflow: hidden;
}

.a2hs-guide {
    position: fixed;
    inset: 0;
    z-index: 10053;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom))
        max(12px, env(safe-area-inset-left));
}

.a2hs-guide[hidden] {
    display: none !important;
}

.a2hs-guide__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 18, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.a2hs-guide__panel {
    position: relative;
    width: 100%;
    max-width: 26rem;
    border-radius: 18px;
    border: 1px solid rgba(212, 160, 18, 0.32);
    background: linear-gradient(180deg, rgba(18, 36, 56, 0.99), rgba(8, 16, 26, 0.99));
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.a2hs-guide__head {
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(212, 160, 18, 0.14);
    background: rgba(0, 0, 0, 0.12);
    text-align: center;
}

.a2hs-guide__title {
    margin: 0;
    font-size: var(--font-base);
    font-weight: 800;
    color: var(--on-accent);
    letter-spacing: 0.04em;
    line-height: var(--leading-tight);
}

.a2hs-guide__title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold-bright), var(--gold-dim), transparent);
    opacity: 0.9;
}

.a2hs-guide__desc {
    margin: 10px 0 0;
    font-size: var(--font-sm);
    line-height: var(--leading-body);
    color: var(--text-secondary);
}

.a2hs-guide__steps {
    margin: 0;
    padding: 14px 18px 6px 2.4rem;
    list-style: none;
    counter-reset: a2hs-step;
}

.a2hs-guide__steps li {
    position: relative;
    counter-increment: a2hs-step;
    margin: 0 0 12px;
    padding-left: 0.25rem;
    font-size: var(--font-sm);
    line-height: var(--leading-body);
    color: var(--text-primary);
}

.a2hs-guide__steps li::before {
    content: counter(a2hs-step);
    position: absolute;
    left: -1.75rem;
    top: 0.05em;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--on-accent);
    background: linear-gradient(135deg, rgba(212, 160, 18, 0.35), rgba(212, 160, 18, 0.12));
    border: 1px solid rgba(212, 160, 18, 0.45);
}

.a2hs-guide__steps strong {
    color: var(--text-accent);
    font-weight: 700;
}

.a2hs-guide__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 14px 10px;
}

.a2hs-guide__actions .btn.primary {
    color: var(--on-accent);
}

.a2hs-guide__never {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 14px 14px;
    border: 0;
    background: none;
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.a2hs-guide__never:active {
    color: var(--text-secondary);
}

/* ========== 下单确认（摘要 + 右滑确认） ========== */
body.bet-confirm-open {
    overflow: hidden;
}

.bet-confirm {
    position: fixed;
    inset: 0;
    z-index: 10055;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom))
        max(12px, env(safe-area-inset-left));
}

.bet-confirm[hidden] {
    display: none !important;
}

.bet-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 18, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bet-confirm__panel {
    position: relative;
    width: 100%;
    max-width: 26rem;
    max-height: min(82vh, 540px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px 18px 16px 16px;
    border: 1px solid rgba(212, 160, 18, 0.32);
    background: linear-gradient(180deg, rgba(18, 36, 56, 0.99), rgba(8, 16, 26, 0.99));
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
}

.bet-confirm__head {
    flex-shrink: 0;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(212, 160, 18, 0.14);
    background: rgba(0, 0, 0, 0.12);
}

.bet-confirm__title {
    margin: 0;
    font-size: var(--font-base);
    font-weight: 800;
    color: var(--on-accent);
    letter-spacing: 0.04em;
    line-height: var(--leading-tight);
    text-align: center;
}

.bet-confirm__title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold-bright), var(--gold-dim), transparent);
    opacity: 0.9;
}

.bet-confirm__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px;
    font-size: var(--font-sm);
    line-height: var(--leading-body);
    color: var(--text-secondary);
}

.bet-confirm__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 12px;
    border: 1px solid rgba(212, 160, 18, 0.2);
    background: rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.bet-confirm__list li {
    margin: 0;
    padding: 10px 12px;
    font-size: var(--font-sm);
    line-height: var(--leading-snug);
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bet-confirm__list li:first-child {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--text);
    background: rgba(232, 192, 74, 0.06);
}

.bet-confirm__list li:last-child {
    border-bottom: none;
    color: var(--muted);
    background: rgba(74, 222, 128, 0.04);
}

.bet-confirm__list li:last-child strong {
    color: var(--ok);
}

.bet-confirm__list li strong {
    color: var(--gold-bright);
    font-weight: 700;
}

.bet-confirm__list li:first-child strong {
    color: var(--text);
}

.bet-confirm__note {
    margin: 10px 0 0;
    padding: 8px 10px;
    font-size: var(--font-xs);
    color: var(--muted);
    line-height: var(--leading-snug);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px dashed rgba(212, 160, 18, 0.18);
}

.bet-confirm__foot {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px 12px;
    border-top: 1px solid rgba(212, 160, 18, 0.14);
    background: rgba(0, 0, 0, 0.2);
}

.bet-confirm__swipe-wrap {
    margin: 0;
}

.bet-confirm__swipe-track {
    position: relative;
    height: 44px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(212, 160, 18, 0.28);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bet-confirm__swipe-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 44px;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--muted);
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.02em;
}

.bet-confirm__swipe-knob {
    position: absolute;
    left: 3px;
    top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: calc(100% - 6px);
    border-radius: 999px;
    border: 1px solid rgba(255, 236, 170, 0.45);
    background: linear-gradient(180deg, var(--gold-bright), var(--gold) 45%, #b8892a);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    cursor: grab;
    touch-action: none;
    z-index: 2;
    padding: 0;
}

.bet-confirm__swipe-knob::after {
    content: '››';
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: rgba(10, 22, 40, 0.82);
    letter-spacing: -0.14em;
}

.bet-confirm__swipe-knob:active {
    cursor: grabbing;
}

.bet-confirm--busy .bet-confirm__swipe-knob {
    opacity: 0.65;
    cursor: not-allowed;
}

.bet-confirm__alt {
    display: block;
    width: 100%;
    margin: 0;
    padding: 4px 6px;
    border: none;
    background: none;
    color: var(--muted);
    font-size: var(--font-xs);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    line-height: var(--leading-tight);
}

.bet-confirm__alt:hover {
    color: var(--gold-bright);
}

.bet-confirm__cancel {
    margin: 0;
    min-height: 38px;
    color: var(--muted);
    border-color: rgba(168, 189, 212, 0.22);
}

.bet-confirm__cancel:active {
    color: var(--text-secondary);
}

/* ========== 积分充值弹层 ========== */
body.recharge-open {
    overflow: hidden;
}

.recharge-sheet,
.withdraw-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.recharge-sheet[hidden] {
    display: none !important;
}

.recharge-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 18, 0.78);
}

.recharge-sheet__panel,
.withdraw-sheet__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 20.5rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(24, 52, 78, 0.98), rgba(8, 18, 32, 0.99));
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.wallet-sheet__panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    overflow: hidden;
    padding: 0;
}

.wallet-sheet__panel--no-foot {
    grid-template-rows: auto minmax(0, 1fr);
}

.wallet-sheet__head {
    padding: 10px 14px 0;
}

.wallet-sheet__head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.wallet-sheet__head-row .recharge-sheet__title,
.wallet-sheet__head-row .withdraw-sheet__title {
    margin: 0;
    flex: 1;
    text-align: left;
    font-size: 1rem;
}

.wallet-sheet__dismiss {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: -2px -2px 0 0;
    padding: 0;
    border: 1px solid rgba(212, 160, 18, 0.28);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.32);
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.wallet-sheet__dismiss:hover {
    border-color: rgba(212, 160, 18, 0.55);
    background: rgba(212, 160, 18, 0.12);
    color: var(--gold);
}

.wallet-sheet__dismiss:active {
    transform: scale(0.94);
    background: rgba(212, 160, 18, 0.2);
}

.wallet-sheet__body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 6px 14px 8px;
}

.wallet-sheet__foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 14px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 18, 32, 0.98);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

.wallet-sheet__foot .form-msg {
    margin: 0;
    min-height: 0;
}

.wallet-sheet__foot .form-msg:empty {
    display: none;
}

.wallet-sheet__foot .panel-notice-host {
    margin: 0;
}

.wallet-sheet__foot .panel-notice-host:empty,
.wallet-sheet__foot .panel-notice-host.hidden {
    display: none !important;
}

.wallet-sheet__foot .panel-notice {
    margin: 0;
}

.wallet-sheet__foot .btn.block {
    min-height: 44px;
}

.recharge-sheet__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold);
    text-align: center;
}

.recharge-channel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 0;
}

.recharge-channel__btn {
    padding: 9px 10px;
    border-radius: 999px;
    border: 1px solid rgba(212, 160, 18, 0.22);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.recharge-channel__btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.recharge-channel__btn.is-active {
    border-color: var(--gold);
    background: rgba(212, 160, 18, 0.16);
    color: var(--gold-bright);
    font-weight: 600;
}

.recharge-sheet__guide {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.recharge-sheet__guide-title {
    margin: 0 0 6px;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text);
}

.recharge-sheet__guide-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: var(--font-sm);
    line-height: var(--leading-body);
    color: var(--muted);
}

.recharge-sheet__guide-list li + li {
    margin-top: 4px;
}

.recharge-sheet__guide-list strong {
    color: var(--gold);
    font-weight: 600;
}

.recharge-sheet__hint {
    margin: 0 0 8px;
    padding: 8px 10px;
    font-size: var(--font-sm);
    line-height: var(--leading-snug);
    color: var(--ok);
    background: rgba(74, 222, 128, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.18);
}

.recharge-order-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px 8px;
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: var(--font-sm);
}

.recharge-order-bar__label {
    color: var(--muted);
    white-space: nowrap;
}

.recharge-order-bar__no {
    margin: 0;
    padding: 0;
    background: none;
    color: var(--gold);
    font-size: var(--font-xs);
    line-height: var(--leading-snug);
    word-break: break-all;
}

.recharge-order-bar__copy {
    padding: 4px 8px;
    font-size: var(--font-xs);
}

.recharge-qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.recharge-qr-card {
    width: 100%;
    max-width: 15.5rem;
    margin: 0 auto;
    padding: 12px 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(212, 160, 18, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.recharge-qr-card__badge {
    display: block;
    margin-bottom: 10px;
    text-align: center;
    font-size: var(--font-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold);
}

.recharge-qr-card__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: min(36dvh, 11.5rem);
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.recharge-qr-img {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.22s ease;
}

.recharge-qr-wrap.is-loading .recharge-qr-img {
    opacity: 0.35;
}

.recharge-qr-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: var(--font-sm);
    color: #6b7c8f;
    background: #f4f6f8;
}

.recharge-qr-card__spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(10, 22, 40, 0.12);
    border-top-color: var(--gold-dim);
    border-radius: 50%;
    animation: recharge-spin 0.75s linear infinite;
}

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

.recharge-qr-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(1px);
    pointer-events: none;
}

.recharge-qr-wrap.is-loading .recharge-qr-card__overlay {
    display: block !important;
}

/* ========== 我的：添加到主屏幕入口 ========== */
.mine-a2hs-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 16px;
    border: 1px solid rgba(212, 160, 18, 0.28);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212, 160, 18, 0.12), rgba(8, 16, 26, 0.65));
    color: var(--text-accent);
    font-size: var(--font-sm);
    font-weight: 700;
    cursor: pointer;
}

.mine-a2hs-cta:active {
    opacity: 0.88;
}

.mine-a2hs-cta__chev {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
}

/* ========== 我的：菜单与子页面 ========== */
.mine-menu {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
    margin-top: 0;
}

.mine-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: var(--font-base);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mine-menu__lead {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mine-menu__item:last-child {
    border-bottom: none;
}

.mine-menu__item:active {
    background: rgba(232, 192, 74, 0.08);
}

.mine-menu__text {
    font-weight: 600;
}

.mine-menu__meta.audit-badge {
    font-size: var(--font-xs);
    padding: 2px 8px;
}

.mine-menu__chev {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

.mine-menu__item .support-unread-badge {
    position: static;
    margin: 0;
}

.mine-subpages {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

.mine-subpages.hidden {
    display: none !important;
}

.mine-page[hidden] {
    display: none !important;
}

.mine-page__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 52px;
    margin: 0 0 12px;
    padding: 8px 2px 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(7, 15, 24, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 160, 18, 0.14);
}

.mine-page__head-side {
    display: flex;
    align-items: center;
    min-width: 0;
}

.mine-page__head-side:first-child {
    justify-content: flex-start;
}

.mine-page__head-side--end {
    justify-content: flex-end;
    min-height: 36px;
}

.mine-page__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px 0 11px;
    margin: 0;
    border: 1px solid rgba(212, 160, 18, 0.3);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: var(--font-md);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.mine-page__back-icon {
    display: block;
    width: 8px;
    height: 8px;
    margin-left: 1px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.92;
    transition: transform 0.15s ease;
}

.mine-page__back-text {
    color: inherit;
}

.mine-page__back:hover {
    border-color: rgba(232, 192, 74, 0.5);
    background: rgba(232, 192, 74, 0.1);
    color: var(--gold);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.mine-page__back:hover .mine-page__back-icon {
    transform: rotate(45deg) translate(-1px, 1px);
}

.mine-page__back:active {
    transform: scale(0.96);
    background: rgba(232, 192, 74, 0.16);
    border-color: rgba(232, 192, 74, 0.55);
    color: var(--gold);
}

.mine-page__title {
    grid-column: 2;
    margin: 0;
    padding: 2px 6px 0;
    max-width: 11.5rem;
    font-size: var(--font-base);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: var(--text);
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.mine-page__title::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    margin: 7px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold-dim) 20%, var(--gold) 50%, var(--gold-dim) 80%, transparent);
    opacity: 0.85;
}

.mine-page__head .audit-badge {
    flex-shrink: 0;
    font-size: var(--font-xs);
    padding: 3px 8px;
    max-width: 100%;
}

.mine-page__body {
    margin-bottom: 12px;
}

.mine-page__body--chat {
    display: flex;
    flex-direction: column;
    min-height: min(70vh, 520px);
}

.mine-page__body--chat .support-chat-room {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mine-page__body--chat .support-chat-thread {
    flex: 1;
    min-height: 200px;
    max-height: none;
}

.mine-wallet-card {
    margin-bottom: 12px;
}

.mine-wallet-hint {
    margin: 0 0 10px;
}

.mine-wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.withdraw-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.withdraw-item {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: var(--font-sm);
}

.withdraw-item__head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.withdraw-item__status {
    color: var(--gold);
    font-weight: 600;
}

.withdraw-item__status--ok {
    color: var(--ok);
}

.withdraw-item__status--err {
    color: var(--danger);
}

.withdraw-item__meta {
    color: var(--muted);
    font-size: var(--font-sm);
    line-height: var(--leading-snug);
}

.withdraw-item__actions {
    margin-top: 10px;
}

.withdraw-item__actions .btn {
    width: 100%;
}

/* ========== 积分提现弹层 ========== */
body.withdraw-open {
    overflow: hidden;
}

.withdraw-sheet[hidden] {
    display: none !important;
}

.withdraw-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 18, 0.78);
}

.withdraw-sheet__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold);
    text-align: center;
}

.withdraw-sheet__tip {
    margin: 0 0 10px;
    font-size: var(--font-sm);
}

.withdraw-bank-card {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(212, 160, 18, 0.2);
}

.withdraw-bank-row {
    display: grid;
    grid-template-columns: 4.2em 1fr;
    gap: 8px;
    padding: 6px 0;
    font-size: var(--font-sm);
}

.withdraw-bank-row + .withdraw-bank-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.withdraw-bank-row__label {
    color: var(--muted);
}

.withdraw-bank-row__val {
    word-break: break-all;
    color: var(--text);
    font-weight: 500;
}

.withdraw-balance-hint {
    margin: 8px 0 12px;
    font-size: var(--font-sm);
}

.withdraw-balance-hint strong {
    color: var(--gold);
}

@media (max-width: 420px) {
    .bet-rules--recharge .bet-rules__list {
        font-size: var(--font-sm);
        line-height: var(--leading-snug);
    }

    .recharge-qr-card {
        max-width: 10.5rem;
        padding: 8px 10px 10px;
    }

    .recharge-qr-card__frame {
        max-height: min(32dvh, 10rem);
    }

    .wallet-sheet__head {
        padding-top: 10px;
    }
}
