html {
    zoom: 100%;
}

:root {
    --theme-from: #0b4f9c;
    --theme-to: #1a8ad4;
    --theme-primary: #0c6ebd;
    --theme-primary-strong: #083a73;
    --theme-primary-hover: #095a9a;
    --theme-soft: #eef6ff;
    --theme-soft-2: #dbeafe;
    --theme-link: #0b5cad;
    --theme-shadow: rgba(12, 110, 189, 0.38);
    --theme-gradient: linear-gradient(135deg, var(--theme-from) 0%, var(--theme-to) 100%);
    --theme-nav-active: #083a73;
    --bs-primary: #0c6ebd;
    --bs-link-color: #0b5cad;
}

html[data-theme="gold"] {
    --theme-from: #8b5a12;
    --theme-to: #e0b01d;
    --theme-primary: #c98912;
    --theme-primary-strong: #7c4a0e;
    --theme-primary-hover: #a16207;
    --theme-soft: #fff8e8;
    --theme-soft-2: #fde68a;
    --theme-link: #b45309;
    --theme-shadow: rgba(180, 83, 9, 0.38);
    --theme-gradient: linear-gradient(135deg, var(--theme-from) 0%, var(--theme-to) 100%);
    --theme-nav-active: #7c4a0e;
    --bs-primary: #c98912;
    --bs-link-color: #b45309;
}

.theme-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.theme-choice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}

.theme-choice:hover {
    border-color: var(--theme-primary);
}

.theme-choice.is-on {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-soft-2);
    color: var(--theme-nav-active);
}

.theme-choice-swatch {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-block;
    flex-shrink: 0;
}

.theme-choice-swatch.blue {
    background: linear-gradient(135deg, #0b4f9c, #1a8ad4);
}

.theme-choice-swatch.gold {
    background: linear-gradient(135deg, #8b5a12, #e0b01d);
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.theme-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    padding: 0;
    cursor: pointer;
}

.theme-dot[data-theme-choice="blue"] {
    background: linear-gradient(135deg, #0b4f9c, #1a8ad4);
}

.theme-dot[data-theme-choice="gold"] {
    background: linear-gradient(135deg, #8b5a12, #e0b01d);
}

.theme-dot.is-on {
    box-shadow: 0 0 0 2px #fff;
}

/* 积分兑换装扮：头像框 / 称号 */
.avatar-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 3px;
    line-height: 0;
}

.avatar-frame img,
.avatar-frame .profile-avatar,
.avatar-frame .profile-avatar-empty {
    border-radius: 50%;
}

.avatar-frame.frame-aurora {
    background: linear-gradient(135deg, #38bdf8, #a78bfa, #34d399);
}

.avatar-frame.frame-obsidian {
    background: linear-gradient(135deg, #111827, #d4a017, #111827);
}

.avatar-frame.frame-jade {
    background: linear-gradient(135deg, #0f766e, #5eead4, #115e59);
}

.cosmetic-title-chip {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
    color: #0f172a;
    background: #e2e8f0;
    vertical-align: middle;
}

.cosmetic-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    height: 100%;
}

.cosmetic-card.is-equipped {
    border-color: #0ea5e9;
    background: #f0f9ff;
}
