/* 排行页 — Cooler Neo 重设计 */

.tab-page-rank {
    padding: 0;
}

.rank-page {
    position: relative;
    padding: 12px 14px calc(16px + var(--safe-bottom));
}

.rank-page:has(.rank-my-dock) {
    padding-bottom: calc(108px + var(--safe-bottom));
}

.rank-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background:
        radial-gradient(ellipse 70% 80% at 20% 0%, rgba(96, 165, 250, 0.08), transparent 60%),
        radial-gradient(ellipse 80% 100% at 80% 0%, rgba(251, 191, 36, 0.12), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* 通用卡片 / 区块标题 */
.ui-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-card, 0 8px 24px rgba(0, 0, 0, 0.28));
    box-sizing: border-box;
}

.rank-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.rank-section-bar {
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary, #60a5fa));
    flex-shrink: 0;
}

.rank-section-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
}

.rank-section-sub {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* 分段 Tab */
.rank-seg {
    display: flex;
    gap: 6px;
    padding: 5px;
    margin-bottom: 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    position: relative;
    z-index: 1;
}

.rank-seg-item {
    flex: 1;
    padding: 10px 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.rank-seg-item.is-active {
    color: #1a1408;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), #f59e0b);
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.25);
}

/* 筛选条 */
.rank-filter {
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.rank-filter-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-sizing: border-box;
}

button.rank-filter-chip {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.rank-filter-chip.is-static {
    flex-wrap: wrap;
}

.rank-filter-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    padding: 3px 8px;
    background: var(--color-primary-dim, rgba(251, 191, 36, 0.14));
    border-radius: 6px;
}

.rank-filter-value {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-filter-meta {
    width: 100%;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* 门店下拉 */
.rank-shop-filter {
    z-index: 30;
}

.rank-shop-trigger {
    width: 100%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.rank-shop-trigger:active,
.rank-shop-trigger.is-open {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(165deg, rgba(251, 191, 36, 0.08), var(--color-surface));
}

.rank-shop-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: var(--color-text-muted);
    transition: transform 0.18s ease, fill 0.18s ease;
}

.rank-shop-trigger.is-open .rank-shop-chevron {
    transform: rotate(180deg);
    fill: var(--color-primary);
}

.rank-shop-mask {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.rank-shop-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    border-radius: 12px;
    background: var(--color-surface-2, #182230);
    border: 1px solid var(--color-border-strong, rgba(251, 191, 36, 0.28));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    animation: rank-shop-drop 0.16s ease;
}

@keyframes rank-shop-drop {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rank-shop-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.rank-shop-option:active {
    background: rgba(255, 255, 255, 0.04);
}

.rank-shop-option.is-active {
    background: var(--color-primary-dim, rgba(251, 191, 36, 0.14));
    color: var(--color-primary);
}

.rank-shop-option-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-shop-option-check {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-primary);
}

/* 荣誉榜 */
.rank-honor {
    margin-bottom: 14px;
    padding: 14px 14px 12px;
    position: relative;
    z-index: 1;
}

.rank-honor-row {
    display: flex;
    gap: 8px;
}

.rank-honor-slot {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 6px 4px;
}

.rank-honor-medal {
    width: 24px;
    height: 24px;
    margin: 0 auto 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #1a1408;
}

.rank-honor-medal-1 { background: var(--color-primary); }
.rank-honor-medal-2 { background: #94a3b8; color: #fff; }
.rank-honor-medal-3 { background: #60a5fa; color: #fff; }

.rank-honor-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0 auto 6px;
}

.rank-honor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--color-border-strong, rgba(251, 191, 36, 0.28));
}

.rank-honor-avatar.is-empty {
    opacity: 0.35;
}

.rank-honor-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-honor-shop {
    font-size: 11px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-honor-empty {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* 我的排名 · 底部悬浮 */
.rank-my-dock {
    position: fixed;
    left: 50%;
    bottom: calc(var(--tabbar-height) + var(--safe-bottom));
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 20;
    padding: 8px 12px 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 16, 0.5) 30%, rgba(6, 10, 16, 0.92) 100%);
    pointer-events: none;
    box-sizing: border-box;
}

.rank-my-card {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 8px 12px 10px 14px;
    border-radius: 12px;
    background: linear-gradient(165deg, #1a2430 0%, var(--color-surface) 100%);
    border: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: auto;
}

.rank-my-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.rank-my-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-left: 2px;
}

.rank-my-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

.rank-my-tag {
    flex-shrink: 0;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 999px;
}

.rank-my-empty {
    padding: 2px 0 0 2px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.rank-my-body {
    display: flex;
    align-items: center;
}

.rank-my-place {
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 2px;
    padding-left: 2px;
}

.rank-my-rank-num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}

.rank-my-rank-lab {
    font-size: 11px;
    color: rgba(251, 191, 36, 0.7);
    font-weight: 600;
}

.rank-my-vline {
    width: 1px;
    height: 22px;
    margin: 0 10px;
    background: rgba(251, 191, 36, 0.2);
    flex-shrink: 0;
}

.rank-my-score-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rank-my-score-row {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.rank-my-score {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: #fbbf24;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.rank-my-score-unit {
    font-size: 11px;
    font-weight: 700;
    color: rgba(251, 191, 36, 0.75);
}

.rank-my-meta {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-my-meta-dot {
    margin: 0 4px;
    opacity: 0.5;
}

/* 领奖台 */
.rank-podium-stage {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    padding: 16px 8px 0;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(251, 191, 36, 0.1), transparent 65%),
        linear-gradient(180deg, var(--color-surface-2, #182230) 0%, var(--color-surface) 100%);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-sizing: border-box;
}

.rank-podium-glow {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: radial-gradient(ellipse, rgba(251, 191, 36, 0.22), transparent 70%);
    pointer-events: none;
}

.rank-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.rank-podium-slot {
    flex: 1;
    min-width: 0;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rank-podium-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 4px 2px;
    margin-bottom: -3px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.rank-podium-crown {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.rank-podium-avatar-ring {
    position: relative;
    margin-bottom: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rank-podium-ring-1 {
    padding: 2px;
    background: linear-gradient(145deg, var(--color-primary), #f59e0b);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.3);
}

.rank-podium-ring-2 {
    padding: 1px;
    background: linear-gradient(145deg, #cbd5e1, #64748b);
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.22);
}

.rank-podium-ring-3 {
    padding: 1px;
    background: linear-gradient(145deg, #93c5fd, #3b82f6);
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.22);
}

.rank-podium-avatar-wrap {
    position: relative;
    width: 58px;
    height: 58px;
}

.rank-podium-slot-1 .rank-podium-avatar-wrap {
    width: 72px;
    height: 72px;
}

.rank-podium-avatar {
    position: absolute;
    left: 2%;
    top: 2%;
    width: 96%;
    height: 96%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2430;
    box-sizing: border-box;
}

.rank-podium-avatar.is-empty {
    opacity: 0.35;
}

.rank-podium-avatar.has-frame,
.rank-row-avatar.has-frame,
.rank-honor-avatar.has-frame,
.rank-user-avatar.has-frame {
    border-color: transparent;
}

.rank-podium-avatar.has-frame {
    left: 15.5%;
    top: 15.5%;
    width: 69%;
    height: 69%;
    border: none;
}

.rank-podium-avatar img,
.rank-podium-avatar .app-avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-avatar-frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    object-fit: contain;
}

.rank-podium-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid var(--color-surface);
    z-index: 4;
    box-sizing: border-box;
}

.rank-podium-badge-1 {
    width: 22px;
    height: 22px;
    font-size: 12px;
    color: #1a1408;
    background: linear-gradient(135deg, var(--color-primary), #f59e0b);
}

.rank-podium-badge-2 {
    color: #fff;
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.rank-podium-badge-3 {
    color: #fff;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.rank-podium-name {
    max-width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.rank-podium-name-empty {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.rank-podium-score-pill {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--color-primary-dim, rgba(251, 191, 36, 0.14));
    border: 1px solid var(--color-border);
}

.rank-podium-score-pill-1 {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
}

.rank-podium-score-pill-2 {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.35);
}

.rank-podium-score-pill-3 {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.35);
}

.rank-podium-score {
    font-size: 16px;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.rank-podium-score-unit {
    font-size: 10px;
    color: var(--color-text-muted);
}

.rank-podium-step {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-sizing: border-box;
}

.rank-podium-step-1 {
    height: 56px;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.28) 0%, rgba(251, 191, 36, 0.06) 100%);
    border-top: 1px solid rgba(251, 191, 36, 0.45);
}

.rank-podium-step-2 {
    height: 42px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.22) 0%, rgba(148, 163, 184, 0.05) 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.rank-podium-step-3 {
    height: 32px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.22) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-top: 1px solid rgba(96, 165, 250, 0.35);
}

.rank-podium-step-no {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    font-variant-numeric: tabular-nums;
    user-select: none;
}

.rank-podium-slot-1 .rank-podium-step-no {
    font-size: 40px;
    color: rgba(251, 191, 36, 0.12);
}

.rank-podium-slot.is-clickable {
    cursor: pointer;
}

.rank-podium-slot.is-clickable:active {
    opacity: 0.88;
}

/* 荣誉星 */
.rank-feature-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.rank-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-sizing: border-box;
}

.rank-feature-active {
    border-color: rgba(96, 165, 250, 0.35);
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.1), var(--color-surface));
}

.rank-feature-revive {
    border-color: rgba(251, 146, 60, 0.35);
    background: linear-gradient(90deg, rgba(251, 146, 60, 0.1), var(--color-surface));
}

.rank-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--color-primary-dim, rgba(251, 191, 36, 0.14));
}

.rank-feature-active .rank-feature-icon {
    background: rgba(96, 165, 250, 0.16);
}

.rank-feature-revive .rank-feature-icon {
    background: rgba(251, 146, 60, 0.16);
}

.rank-feature-body {
    flex: 1;
    min-width: 0;
}

.rank-feature-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
}

.rank-feature-active .rank-feature-title { color: var(--color-secondary, #60a5fa); }
.rank-feature-revive .rank-feature-title { color: #fb923c; }

.rank-feature-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-feature-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.rank-feature-avatar-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.rank-feature-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--color-border-strong, rgba(251, 191, 36, 0.28));
}

.rank-feature-avatar img,
.rank-feature-avatar .app-avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 完整榜单 */
.rank-list-card {
    padding: 4px 0;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    box-sizing: border-box;
}

.rank-row:last-child {
    border-bottom: none;
}

.rank-row.is-me {
    background: var(--color-primary-dim, rgba(251, 191, 36, 0.14));
}

.rank-row-rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-soft, #0b111a);
    border: 1px solid var(--color-border);
}

.rank-row.is-me .rank-row-rank {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--color-border-strong, rgba(251, 191, 36, 0.28));
}

.rank-row-no {
    font-size: 14px;
    font-weight: 800;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}

.rank-row.is-me .rank-row-no {
    color: #fde68a;
}

.rank-row-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.rank-row-avatar {
    position: absolute;
    left: 15.5%;
    top: 15.5%;
    width: 69%;
    height: 69%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2430;
    border: 1px solid var(--color-border);
    box-sizing: border-box;
}

.rank-row-avatar img,
.rank-row-avatar .app-avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-row-body {
    flex: 1;
    min-width: 0;
}

.rank-row-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.rank-row-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-row-me {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #1a1408;
    background: var(--color-primary);
}

.rank-row-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-row-score {
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
}

.rank-row-score-val {
    font-size: 18px;
    font-weight: 800;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}

/* 空态 / 加载 */
.rank-loading,
.rank-empty,
.rank-error {
    text-align: center;
    padding: 40px 16px;
    font-size: 16px;
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
}

.rank-error {
    color: #f87171;
}

.rank-login-tip {
    text-align: center;
    padding: 48px 24px;
    position: relative;
    z-index: 1;
}

.rank-login-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--color-primary-dim, rgba(251, 191, 36, 0.14));
    border: 1px solid var(--color-border-strong, rgba(251, 191, 36, 0.28));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.rank-login-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.rank-login-sub {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.rank-login-btn {
    display: inline-block;
    min-width: 140px;
    height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--color-primary), #f59e0b);
    color: #1a1408;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.25);
}

.rank-login-btn:hover {
    filter: brightness(1.06);
}

.rank-podium-slot.is-clickable,
.rank-feature.is-clickable,
.rank-row.is-clickable,
.rank-honor-slot.is-clickable {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rank-podium-slot.is-clickable:active,
.rank-feature.is-clickable:active,
.rank-row.is-clickable:active {
    opacity: 0.88;
}

/* 用户弹窗 */
body.rank-modal-open {
    overflow: hidden;
}

.rank-user-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px calc(24px + var(--safe-bottom));
    box-sizing: border-box;
}

.rank-user-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rank-user-sheet {
    position: relative;
    width: 100%;
    max-width: 320px;
    padding: 24px 18px 20px;
    border-radius: 18px;
    background: linear-gradient(165deg, #182230 0%, var(--color-surface) 100%);
    border: 1px solid var(--color-border-strong, rgba(251, 191, 36, 0.28));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
    text-align: center;
}

.rank-user-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    font-size: 20px;
    line-height: 32px;
    padding: 0;
    cursor: pointer;
}

.rank-user-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 8px auto 0;
}

.rank-user-avatar {
    position: absolute;
    left: 15.5%;
    top: 15.5%;
    width: 69%;
    height: 69%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2430;
    border: 2px solid var(--color-border-strong, rgba(251, 191, 36, 0.28));
    box-sizing: border-box;
}

.rank-user-avatar img,
.rank-user-avatar .app-avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-user-name {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-user-place {
    margin-top: 6px;
    font-size: 14px;
    color: var(--color-primary);
}

.rank-user-shop {
    margin-top: 4px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.rank-user-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

.rank-user-stat {
    width: 50%;
    padding: 10px 4px;
    text-align: center;
    box-sizing: border-box;
}

.rank-user-stat-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.rank-user-stat-lab {
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* 骨架屏 */
.rank-page .sk-wrap {
    padding: 0;
    position: relative;
    z-index: 1;
}

.sk-rank-hero {
    height: 100px;
    margin-bottom: 12px;
}

.sk-rank-podium {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}

.sk-rank-podium-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sk-rank-podium-item.is-first .sk-avatar {
    width: 48px;
    height: 48px;
}

.sk-rank-podium-stage {
    padding: 12px 6px 0;
    margin-bottom: 12px;
    min-height: 140px;
}

.sk-rank-podium-step {
    width: 100%;
    height: 32px;
    border-radius: 6px 6px 0 0;
}

.sk-rank-podium-item.is-first .sk-rank-podium-step {
    height: 44px;
}
