/* 用户中心：基于 zg app.css 的少量扩展 */

.uc-tab-panel[hidden] {
    display: none !important;
}

.brand--text-only .brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.uc-nav {
    gap: 0;
}

.uc-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uc-nav-group + .uc-nav-group {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--sidebar-edge);
}

.uc-nav-group-label {
    padding: 0.15rem 12px 0.45rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    user-select: none;
}

#nav-tree .nav-leaf.uc-tab {
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    border-left: 2px solid transparent;
    background: transparent;
    transition: background var(--t-fast) var(--ease-soft), color var(--t-fast) var(--ease-soft),
        border-color var(--t-fast) var(--ease-soft), transform var(--t-fast) var(--ease-out);
}

#nav-tree .nav-leaf.uc-tab:hover {
    background: var(--surface);
    color: var(--text);
    transform: translate3d(2px, 0, 0);
}

#nav-tree .nav-leaf.uc-tab:hover .nav-leaf-icon {
    color: #475569;
    transform: scale(1.08);
}

#nav-tree .nav-leaf.uc-tab.is-active {
    color: var(--text);
    font-weight: 600;
    background: var(--surface);
    border-left-color: var(--accent);
    transform: none;
}

#nav-tree .nav-leaf.uc-tab.is-active .nav-leaf-icon {
    color: var(--accent);
    transform: none;
}

.uc-nav .nav-leaf:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

#pointLogsPager .pager-link {
    cursor: pointer;
}

#pointLogsPager button.pager-link {
    font: inherit;
}

.uc-online-hint {
    font-size: 0.875rem;
    align-self: center;
    margin: 0;
}

.mkt-online-card .uc-online-hint {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0;
}

.mkt-online-card .uc-online-hint.is-ok::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.uc-online-hint.is-ok {
    color: #15803d;
    font-weight: 500;
}

.uc-online-hint.is-err {
    color: var(--danger);
    font-weight: 500;
}

.uc-sponsor-head {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.uc-sponsor-head img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
}

.uc-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.uc-shop-grid .card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uc-shop-grid .card img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.uc-shop-grid .btn {
    margin-top: auto;
}

.flash-inline-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

/* 九宫格抽奖 */
.mbr-lottery-wheel {
    max-width: 28rem;
    margin: 0 auto;
    position: relative;
}

.mbr-lottery-wheel.is-spinning .mbr-lottery-wheel__frame {
    animation: mbr-lottery-frame-pulse 0.85s ease-in-out infinite;
}

.mbr-lottery-wheel.is-spinning--fine .mbr-lottery-wheel__grid {
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: inset 0 0 24px rgba(139, 92, 246, 0.12);
}

.mbr-lottery-wheel.is-spinning--supreme .mbr-lottery-wheel__grid {
    border-color: rgba(251, 191, 36, 0.65);
    box-shadow: inset 0 0 28px rgba(245, 158, 11, 0.18);
}

.mbr-lottery-wheel.is-reveal--fine .mbr-lottery-wheel__frame {
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.22),
        0 0 40px rgba(139, 92, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mbr-lottery-wheel.is-reveal--supreme .mbr-lottery-wheel__frame {
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.22),
        0 0 48px rgba(245, 158, 11, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mbr-lottery-wheel__frame {
    position: relative;
    padding: 0.65rem;
    border-radius: 1.1rem;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #1a1f35 100%);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.mbr-lottery-wheel__grid {
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.04) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mbr-lottery-wheel__grid[data-side="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(5.5rem, 1fr));
}

.mbr-lottery-wheel__grid[data-side="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(4.75rem, 1fr));
}

.mbr-lottery-wheel__grid[data-side="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(4rem, 1fr));
}

.mbr-lottery-wheel__grid[data-side="6"],
.mbr-lottery-wheel__grid[data-side="7"],
.mbr-lottery-wheel__grid[data-side="8"] {
    grid-template-columns: repeat(var(--lottery-side, 4), minmax(0, 1fr));
    grid-auto-rows: minmax(3.75rem, 1fr);
}

.mbr-lottery-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 4.5rem;
    padding: 0.45rem 0.35rem;
    border-radius: 0.65rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.35);
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    overflow: hidden;
}

.mbr-lottery-cell__glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.85), transparent 65%);
    transition: opacity 0.18s ease;
}

.mbr-lottery-cell__tier-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    z-index: 2;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.15rem 0.3rem;
    border-radius: 999px;
    color: #fff;
}

.mbr-lottery-cell--tier-fine {
    background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 48%, #ddd6fe 100%);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.12);
}

.mbr-lottery-cell--tier-fine .mbr-lottery-cell__tier-badge {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 2px 6px rgba(109, 40, 217, 0.35);
}

.mbr-lottery-cell--tier-supreme {
    background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 35%, #fde68a 100%);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.18);
}

.mbr-lottery-cell--tier-supreme::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.55), transparent 35%);
    animation: mbr-lottery-shimmer 3.5s linear infinite;
    pointer-events: none;
}

.mbr-lottery-cell--tier-supreme .mbr-lottery-cell__tier-badge {
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.mbr-lottery-cell--game_cash {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: rgba(34, 197, 94, 0.35);
}

.mbr-lottery-cell--sponsor_coin {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border-color: rgba(245, 158, 11, 0.4);
}

.mbr-lottery-cell--nothing {
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
}

.mbr-lottery-cell.is-active {
    border-color: #fbbf24;
    box-shadow:
        0 0 0 3px rgba(251, 191, 36, 0.35),
        0 8px 20px rgba(251, 191, 36, 0.25);
    transform: scale(1.06);
    z-index: 2;
}

.mbr-lottery-cell.is-active .mbr-lottery-cell__glow {
    opacity: 1;
}

.mbr-lottery-cell.is-active--supreme-hint {
    border-color: #f59e0b;
    box-shadow:
        0 0 0 3px rgba(245, 158, 11, 0.45),
        0 10px 24px rgba(245, 158, 11, 0.32);
}

.mbr-lottery-cell.is-winner {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    box-shadow:
        0 0 0 3px rgba(245, 158, 11, 0.4),
        0 10px 24px rgba(245, 158, 11, 0.28);
    animation: mbr-lottery-win 0.75s ease-in-out 3;
}

.mbr-lottery-cell.is-winner-fine {
    border-color: #8b5cf6;
    background: linear-gradient(180deg, #faf5ff 0%, #ede9fe 55%, #ddd6fe 100%);
    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.35),
        0 12px 28px rgba(109, 40, 217, 0.28);
    animation: mbr-lottery-win-fine 0.8s ease-in-out 4;
}

.mbr-lottery-cell.is-winner-supreme {
    border-color: #ea580c;
    background: linear-gradient(180deg, #fffbeb 0%, #fde68a 45%, #fbbf24 100%);
    box-shadow:
        0 0 0 4px rgba(245, 158, 11, 0.5),
        0 0 24px rgba(251, 191, 36, 0.45),
        0 14px 32px rgba(234, 88, 12, 0.32);
    animation: mbr-lottery-win-supreme 0.85s ease-in-out 5;
    z-index: 3;
}

.mbr-lottery-cell.is-empty {
    opacity: 0.45;
    background: #f1f5f9;
}

.mbr-lottery-cell__icon-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
    margin-bottom: 0.1rem;
}

.mbr-lottery-cell__icon {
    font-size: 1.1rem;
    line-height: 1;
}

.mbr-lottery-cell__img {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
    display: block;
}

.mbr-item-thumb {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.45rem;
    border-radius: 0.35rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.mbr-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.mbr-item-thumb-btn {
    display: inline-block;
    padding: 0;
    margin: 0 0.45rem 0 0;
    border: none;
    background: none;
    cursor: zoom-in;
    vertical-align: middle;
    border-radius: 0.35rem;
    line-height: 0;
}

.mbr-item-thumb-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.mbr-item-thumb--zoom {
    cursor: zoom-in;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mbr-item-thumb-btn:hover .mbr-item-thumb--zoom {
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.mbr-item-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.mbr-item-lightbox[hidden] {
    display: none !important;
}

.mbr-item-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.mbr-item-lightbox__figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(28rem, 92vw);
    text-align: center;
}

.mbr-item-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: min(70vh, 28rem);
    margin: 0 auto;
    object-fit: contain;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.mbr-item-lightbox__caption {
    margin: 0.75rem 0 0;
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 600;
}

.mbr-item-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.mbr-item-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* 饰品抽奖 - 横向卡池 */
.acc-lottery-mount {
    margin-top: 0.25rem;
}

.acc-gacha {
    position: relative;
    padding: 1.35rem 1rem 1.15rem;
    border-radius: 1.1rem;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.acc-gacha__ambient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% -5%, rgba(251, 191, 36, 0.07), transparent 58%),
        radial-gradient(ellipse 55% 40% at 100% 100%, rgba(139, 92, 246, 0.05), transparent 52%);
    pointer-events: none;
}

.acc-gacha__header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 1rem;
}

.acc-gacha__badge {
    display: inline-block;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #b45309;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.acc-gacha__tagline {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.acc-gacha__showcase {
    position: relative;
    z-index: 2;
    margin: 0 auto 1rem;
    max-width: 40rem;
    padding: 0.65rem 0;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.acc-gacha__viewport {
    position: relative;
    overflow: hidden;
    padding: 1.1rem 0;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.acc-gacha__strip {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    will-change: transform;
}

.acc-gacha__cell {
    flex: 0 0 auto;
    width: 7.25rem;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.acc-gacha__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    height: 9.5rem;
    padding: 0.65rem 0.55rem 0.7rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.acc-gacha__card-shine {
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: acc-gacha-shine 4.5s ease-in-out infinite;
    pointer-events: none;
}

.acc-gacha__img {
    width: 4.6rem;
    height: 4.6rem;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.acc-gacha__fallback {
    font-size: 2.2rem;
    line-height: 1;
}

.acc-gacha__name {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acc-gacha__frame {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7.75rem;
    height: 10.2rem;
    transform: translate(-50%, -50%);
    border-radius: 1.05rem;
    border: 2px solid rgba(251, 191, 36, 0.75);
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.2),
        0 0 32px rgba(251, 191, 36, 0.28),
        inset 0 0 24px rgba(251, 191, 36, 0.08);
    pointer-events: none;
    z-index: 3;
}

.acc-gacha__frame-glow {
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, rgba(251, 191, 36, 0.35), transparent 70%);
    animation: acc-gacha-frame-pulse 2.4s ease-in-out infinite;
}

.acc-gacha__pointer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.55rem solid transparent;
    border-right: 0.55rem solid transparent;
    z-index: 4;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.45));
}

.acc-gacha__pointer--top {
    top: 0.15rem;
    border-bottom: 0.7rem solid #fbbf24;
}

.acc-gacha__pointer--bottom {
    bottom: 0.15rem;
    border-top: 0.7rem solid #fbbf24;
}

.acc-gacha__gallery {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.65rem;
    border-radius: 0.85rem;
    background: var(--surface-muted);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.acc-gacha__thumb {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.55rem;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.acc-gacha__thumb img {
    width: 1.85rem;
    height: 1.85rem;
    object-fit: contain;
}

.acc-gacha.is-spinning .acc-gacha__thumb {
    opacity: 0.72;
}

.acc-gacha__thumb.is-winner {
    opacity: 1;
    transform: scale(1.18);
    border-color: #c4b5fd;
    box-shadow: 0 0 16px rgba(167, 139, 250, 0.55);
    animation: acc-gacha-thumb-win 0.7s ease-in-out 3;
}

.acc-gacha__draw-btn {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
    padding: 0;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 48%, #d97706 100%);
    color: #1c1917;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 0 3px rgba(251, 191, 36, 0.22),
        0 14px 36px rgba(245, 158, 11, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.acc-gacha__draw-btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-130%);
    animation: acc-gacha-btn-shine 3.2s ease-in-out infinite;
    pointer-events: none;
}

.acc-gacha__draw-btn-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.95rem 1.5rem;
}

.acc-gacha__draw-btn-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.acc-gacha__draw-btn-cost {
    font-size: 0.74rem;
    font-weight: 700;
    opacity: 0.88;
}

.acc-gacha__draw-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 0 0 4px rgba(251, 191, 36, 0.3),
        0 18px 42px rgba(245, 158, 11, 0.48);
}

.acc-gacha__draw-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.acc-gacha.is-spinning .acc-gacha__frame {
    animation: acc-gacha-frame-spin 0.85s ease-in-out infinite;
}

.acc-gacha.is-spinning .acc-gacha__draw-btn {
    animation: acc-gacha-btn-pulse 0.9s ease-in-out infinite;
}

.acc-gacha__cell.is-winner .acc-gacha__card {
    border-color: #c4b5fd;
    background: linear-gradient(180deg, #faf5ff 0%, #ede9fe 100%);
    box-shadow:
        0 0 0 3px rgba(167, 139, 250, 0.45),
        0 0 36px rgba(139, 92, 246, 0.28);
    animation: acc-gacha-win-card 0.75s ease-in-out 4;
}

.acc-gacha__cell.is-winner .acc-gacha__name {
    color: #6d28d9;
}

.acc-gacha.is-reveal {
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06), 0 0 40px rgba(167, 139, 250, 0.18);
}

.acc-gacha__burst {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 0;
    height: 0;
    z-index: 6;
    pointer-events: none;
}

.acc-gacha__burst-spark {
    position: absolute;
    left: 0;
    top: 0;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    transform: rotate(calc(var(--fx-i) * 22.5deg)) translateX(var(--fx-r));
    animation: acc-gacha-burst var(--fx-d) ease-out forwards;
    opacity: 0;
}

.acc-gacha__error {
    margin-top: 0.85rem;
    color: #fca5a5;
    text-align: center;
    font-size: 0.875rem;
}

.acc-gacha__result {
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.92rem;
}

.acc-gacha__result.is-win {
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.95), rgba(237, 233, 254, 0.92));
    border: 1px solid #c4b5fd;
    color: #6d28d9;
    font-weight: 700;
    animation: mbr-lottery-result-in 0.45s ease-out;
}

@keyframes acc-gacha-shine {
    0%, 70% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes acc-gacha-frame-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes acc-gacha-frame-spin {
    0%, 100% { box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 0 32px rgba(251, 191, 36, 0.28), inset 0 0 24px rgba(251, 191, 36, 0.08); }
    50% { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35), 0 0 48px rgba(251, 191, 36, 0.42), inset 0 0 32px rgba(251, 191, 36, 0.14); }
}

@keyframes acc-gacha-btn-shine {
    0%, 65% { transform: translateX(-130%); }
    100% { transform: translateX(130%); }
}

@keyframes acc-gacha-btn-pulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 0 3px rgba(251, 191, 36, 0.22), 0 14px 36px rgba(245, 158, 11, 0.38); }
    50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0 0 6px rgba(251, 191, 36, 0.32), 0 18px 42px rgba(245, 158, 11, 0.5); }
}

@keyframes acc-gacha-win-card {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes acc-gacha-thumb-win {
    0%, 100% { transform: scale(1.18); }
    50% { transform: scale(1.28); }
}

@keyframes acc-gacha-burst {
    0% { opacity: 1; transform: rotate(calc(var(--fx-i) * 22.5deg)) translateX(0); }
    100% { opacity: 0; transform: rotate(calc(var(--fx-i) * 22.5deg)) translateX(calc(var(--fx-r) * 1.4)); }
}

@media (max-width: 720px) {
    .acc-gacha {
        padding: 1.1rem 0.65rem 1rem;
    }

    .acc-gacha__cell {
        width: 6.1rem;
    }

    .acc-gacha__card {
        height: 8.4rem;
        padding: 0.55rem 0.45rem 0.6rem;
    }

    .acc-gacha__img {
        width: 3.8rem;
        height: 3.8rem;
    }

    .acc-gacha__frame {
        width: 6.55rem;
        height: 9rem;
    }

    .acc-gacha__gallery {
        gap: 0.3rem;
        padding: 0.5rem;
    }

    .acc-gacha__thumb {
        width: 2rem;
        height: 2rem;
    }

    .acc-gacha__thumb img {
        width: 1.55rem;
        height: 1.55rem;
    }
}

.mbr-lottery-cell__name {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.15rem;
}

.mbr-lottery-cell__sub {
    font-size: 0.62rem;
    line-height: 1.2;
    color: var(--muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.15rem;
}

.mbr-lottery-wheel__center-shine {
    position: absolute;
    inset: -50%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    animation: mbr-lottery-shimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}

.mbr-lottery-wheel__center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%);
    color: #1c1917;
    font-weight: 700;
    box-shadow:
        0 10px 28px rgba(245, 158, 11, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.mbr-lottery-wheel__center-ring {
    position: absolute;
    inset: 0.35rem;
    border-radius: 0.55rem;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.mbr-lottery-wheel__center-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
}

.mbr-lottery-wheel__center:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 14px 32px rgba(245, 158, 11, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mbr-lottery-wheel__center:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mbr-lottery-wheel__center-title {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.mbr-lottery-wheel__center-sub {
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.85;
}

.mbr-lottery-wheel-wrap {
    margin-top: 0.5rem;
}

.mbr-lottery-wheel-wrap .lottery-wheel-result {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 0.92rem;
    text-align: center;
    animation: mbr-lottery-result-in 0.45s ease-out;
}

.mbr-lottery-wheel-wrap .lottery-wheel-result.is-fine {
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    border-color: #c4b5fd;
    color: #6d28d9;
    font-weight: 700;
}

.mbr-lottery-wheel-wrap .lottery-wheel-result.is-supreme {
    background: linear-gradient(135deg, #fffbeb, #fde68a);
    border-color: #fbbf24;
    color: #b45309;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.mbr-lottery-wheel-wrap .lottery-wheel-error {
    margin-top: 0.75rem;
    color: var(--danger);
    font-size: 0.875rem;
    text-align: center;
}

@keyframes mbr-lottery-win {
    0%, 100% { transform: scale(1.06); }
    50% { transform: scale(1.12); }
}

@keyframes mbr-lottery-win-fine {
    0%, 100% { transform: scale(1.08); filter: brightness(1); }
    50% { transform: scale(1.14); filter: brightness(1.08); }
}

@keyframes mbr-lottery-win-supreme {
    0%, 100% { transform: scale(1.1) rotate(0deg); filter: brightness(1); }
    25% { transform: scale(1.16) rotate(-1deg); }
    75% { transform: scale(1.16) rotate(1deg); }
    50% { transform: scale(1.18); filter: brightness(1.12); }
}

@keyframes mbr-lottery-frame-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.008); }
}

@keyframes mbr-lottery-shimmer {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes mbr-lottery-result-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mbr-lottery-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
    overflow: hidden;
}

.mbr-lottery-fx__spark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    opacity: 0;
    animation: mbr-lottery-spark 1.1s ease-out forwards;
    animation-delay: calc(var(--fx-i, 0) * 0.04s);
}

.mbr-lottery-fx--fine .mbr-lottery-fx__spark {
    background: radial-gradient(circle, #fff, #a78bfa);
    box-shadow: 0 0 8px #8b5cf6;
}

.mbr-lottery-fx--supreme .mbr-lottery-fx__spark {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: radial-gradient(circle, #fff, #fbbf24);
    box-shadow: 0 0 10px #f59e0b;
}

.mbr-lottery-fx__halo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120%;
    height: 120%;
    margin: -60% 0 0 -60%;
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.35);
    animation: mbr-lottery-halo 1.6s ease-out forwards;
}

@keyframes mbr-lottery-spark {
    0% {
        opacity: 1;
        transform: rotate(calc(var(--fx-i, 0) * 20deg)) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(calc(var(--fx-i, 0) * 20deg)) translateY(calc(-1 * var(--fx-r, 80px))) scale(0.2);
    }
}

@keyframes mbr-lottery-halo {
    0% { opacity: 0.85; transform: scale(0.4); }
    100% { opacity: 0; transform: scale(1.15); }
}

@media (max-width: 960px) {
    .uc-layout.layout--admin {
        grid-template-columns: 1fr;
    }

    .uc-layout .sidebar {
        position: static;
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--sidebar-edge);
    }

    .uc-nav {
        padding: 0 0.5rem 0.75rem;
    }

    .uc-nav-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .uc-nav-group-label {
        flex: 0 0 100%;
        padding-left: 0.35rem;
    }

    .uc-nav-group + .uc-nav-group {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    #nav-tree .nav-leaf.uc-tab {
        width: auto;
        padding: 0.45rem 0.75rem;
        border: 1px solid var(--border);
        border-left: 1px solid var(--border);
    }

    #nav-tree .nav-leaf.uc-tab.is-active {
        background: var(--accent-soft);
        border-color: var(--accent);
        color: var(--accent);
    }
}

/* 登录 / 注册 */
.mbr-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, sans-serif;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.12), transparent 55%),
        var(--bg);
    color: var(--text);
}

.mbr-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.mbr-auth-shell {
    width: 100%;
    max-width: 420px;
}

.mbr-auth-shell--wide {
    max-width: 480px;
}

.mbr-auth-card {
    padding: 1.75rem 1.85rem 1.65rem;
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow);
}

.mbr-auth-head {
    margin-bottom: 1.35rem;
}

.mbr-auth-back {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-soft);
}

.mbr-auth-back:hover {
    color: var(--accent);
    text-decoration: none;
}

.mbr-auth-brand {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

.mbr-auth-sub {
    margin: 0.3rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.mbr-auth-form {
    margin-top: 0.25rem;
}

.mbr-auth-form .field {
    margin-bottom: 0;
}

.mbr-auth-remember {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.15rem 0 0.35rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-muted);
    cursor: pointer;
    user-select: none;
    transition: border-color var(--t-fast) var(--ease-soft), background var(--t-fast) var(--ease-soft);
}

.mbr-auth-remember:hover {
    border-color: var(--border-strong);
    background: var(--surface);
}

.mbr-auth-remember__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mbr-auth-remember__box {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    border-radius: 0.3rem;
    border: 2px solid var(--border-strong);
    background: var(--surface);
    position: relative;
    transition: border-color var(--t-fast) var(--ease-soft), background var(--t-fast) var(--ease-soft);
}

.mbr-auth-remember__box::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 0.35rem;
    height: 0.6rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform var(--t-fast) var(--ease-out);
}

.mbr-auth-remember__input:checked + .mbr-auth-remember__box {
    border-color: var(--accent);
    background: var(--accent);
}

.mbr-auth-remember__input:checked + .mbr-auth-remember__box::after {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.mbr-auth-remember__input:focus-visible + .mbr-auth-remember__box {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.mbr-auth-remember__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.mbr-auth-remember__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.mbr-auth-remember__hint {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.35;
}

.mbr-auth-error {
    margin: 0;
}

.mbr-auth-submit {
    margin-top: 0.15rem;
}

.mbr-auth-foot {
    margin: 1.15rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.88rem;
}

.mbr-auth-foot a {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.mbr-auth-foot a:hover {
    text-decoration: underline;
}

.mbr-auth-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.mbr-auth-steps__item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
}

.mbr-auth-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 2px solid var(--border-strong);
    color: var(--muted);
    background: var(--surface);
    transition: all var(--t-fast) var(--ease-soft);
}

.mbr-auth-steps__label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}

.mbr-auth-steps__item.is-active .mbr-auth-steps__num {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.mbr-auth-steps__item.is-active .mbr-auth-steps__label {
    color: var(--text);
    font-weight: 600;
}

.mbr-auth-steps__item.is-done .mbr-auth-steps__num {
    border-color: #15803d;
    background: #dcfce7;
    color: #15803d;
}

.mbr-auth-steps__item.is-done .mbr-auth-steps__label {
    color: var(--text);
}

.mbr-auth-steps__line {
    flex: 0 0 2rem;
    height: 2px;
    margin: 0 0.35rem;
    background: var(--border);
    border-radius: 1px;
}

.mbr-auth-section + .mbr-auth-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.mbr-auth-section__title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.mbr-auth-online-row {
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-end;
    margin-top: 0.65rem;
}

.mbr-auth-online-hint {
    margin: 0.65rem 0 0;
    min-height: 1.25rem;
}

@media (max-width: 480px) {
    .mbr-auth-page {
        padding: 1rem;
    }

    .mbr-auth-card {
        padding: 1.35rem 1.15rem 1.25rem;
    }

    .mbr-auth-steps__label {
        font-size: 0.75rem;
    }

    .mbr-auth-steps__line {
        flex-basis: 1rem;
    }

    .mbr-lottery-wheel__grid {
        gap: 0.35rem;
        padding: 0.45rem;
    }

    .mbr-lottery-cell {
        min-height: 3.25rem;
    }

    .mbr-lottery-cell__name {
        font-size: 0.62rem;
    }
}
