/* Live-only components (old stylesheet rules, applied to .lx pages). Generated by tools/compat.mjs from legacy.css. */

.lx .mini-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.75rem;
    position: relative;
}

.lx .mini-card {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    transition: all var(--ease);
    display: flex;
    flex-direction: column;
}
.lx a.mini-card:hover, .lx .mini-card[onclick]:hover {
    transform: translateY(-2px);
    border-color: var(--glass-border-strong);
}

.lx .mini-card-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    margin-bottom: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.lx .mini-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lx .mini-card-name {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.lx .mini-card-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.lx .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.lx .stat-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.lx .stat-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.lx .stat-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lx .creature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.lx .creature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--ease);
    cursor: pointer;
    position: relative;
}

.lx .creature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-purple);
    border-color: var(--glass-border-strong);
}

.lx .creature-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    position: relative;
    overflow: hidden;
}

.lx .creature-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease);
}

.lx .creature-card:hover .creature-card-img img {
    transform: scale(1.05);
}

.lx .creature-card-body {
    padding: 1rem;
}

.lx .creature-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.lx .creature-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lx .creature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--glass);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.lx .creature-tag i { font-size: 0.65rem; }
.lx .creature-card[data-rarity="legendary"] { border-color: rgba(251, 191, 36, 0.3); }
.lx .creature-card[data-rarity="legendary"]:hover { box-shadow: var(--glow-gold); }
.lx .creature-card[data-rarity="mythical"] { border-color: rgba(244, 114, 182, 0.3); }
.lx .creature-card[data-rarity="mythical"]:hover { box-shadow: var(--glow-pink); }
.lx .creature-card[data-rarity="epic"] { border-color: rgba(167, 139, 250, 0.2); }
.lx .creature-card[data-rarity="epic"]:hover { box-shadow: var(--glow-purple); }
.lx .codex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.lx .codex-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--ease);
    cursor: pointer;
}

.lx a.codex-card:hover {
    transform: translateY(-3px);
    border-color: var(--glass-border-strong);
}

.lx .codex-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
    position: relative;
    overflow: hidden;
}

.lx .codex-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lx .codex-card-rarity {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}
.lx .codex-card.locked .codex-card-img {
    filter: brightness(0.15);
}

.lx .codex-card.locked .codex-card-img::after {
    content: '?';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
}

.lx .codex-card.locked .codex-card-body {
    opacity: 0.5;
}

.lx .codex-card-body {
    padding: 1rem;
}

.lx .codex-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.lx .codex-card-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.lx .dashboard-hero {
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--bg-card);
}

.lx .dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: -2;
}

.lx .dashboard-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 14, 40, 0.55) 0%, rgba(20, 14, 40, 0.85) 100%);
    z-index: -1;
}

.lx .dashboard-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    position: relative;
}

.lx .dashboard-portrait {
    width: 280px;
    max-width: 70%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    border: 2px solid var(--glass-border-strong);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
}

.lx .dashboard-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lx .dashboard-hero-text h2 {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
}

.lx .dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.lx .hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text);
}

.lx .hero-chip i {
    color: var(--purple-soft);
}
.lx .lunari-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.lx .lunari-card-img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-muted);
}

.lx .lunari-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lx .lunari-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lx .lunari-card-collection {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.4rem;
}

.lx .lunari-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.lx .lunari-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.lx .lunari-chip-level   { background: rgba(125, 211, 252, 0.12); color: var(--blue); border-color: rgba(125, 211, 252, 0.3); }
.lx .lunari-chip-rarity  { background: rgba(167, 139, 250, 0.12); color: var(--purple); border-color: rgba(167, 139, 250, 0.3); }
.lx .lunari-chip-stars   { background: rgba(251, 191, 36, 0.12); color: var(--gold); border-color: rgba(251, 191, 36, 0.3); letter-spacing: 0.1em; }
.lx .facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.lx .facility-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: all var(--ease);
}

.lx .facility-card:hover {
    border-color: var(--glass-border-strong);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.lx .facility-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.6rem;
    border-radius: var(--radius-md);
    background: rgba(134, 239, 172, 0.08);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--green);
    font-size: 1.5rem;
}

.lx .facility-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lx .facility-card-emoji { font-size: 1.75rem; }

.lx .facility-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.lx .facility-card-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

@media (max-width: 768px) {
    .lx .dashboard-hero {
        padding: 1.5rem 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .lx .lunari-card { flex-direction: column; text-align: center; }
}

.lx .help-command {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--purple-soft);
}

.lx .help-steps {
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.lx .help-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    counter-increment: step;
}

.lx .help-step::before {
    content: counter(step);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 139, 250, 0.12);
    color: var(--purple-soft);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.lx .help-step p {
    margin: 0;
    padding-top: 0.3rem;
}
.lx .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.lx .news-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--ease);
    position: relative;
}

.lx .news-card:hover {
    border-color: var(--glass-border-strong);
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

.lx .news-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.lx .news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.lx .news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.lx .news-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lx .news-card-pin {
    font-size: 0.7rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lx .news-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
}

.lx .news-card-summary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.lx .news-card-read {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--purple-soft);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--ease);
}

.lx .news-card:hover .news-card-read {
    color: var(--purple);
}
.lx .news-post-hero-img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.lx .news-post-body {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 0.975rem;
    white-space: pre-wrap;
}

.lx .news-post-body a {
    color: var(--purple-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.lx .progress-bar {
    height: 6px;
    background: var(--glass);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.lx .progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-magical);
    transition: width 0.6s ease;
}
.lx .skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.lx .skeleton-text { height: 1rem; margin-bottom: 0.5rem; }
.lx .skeleton-title { height: 1.5rem; width: 60%; margin-bottom: 0.75rem; }
.lx .skeleton-img { aspect-ratio: 1; border-radius: var(--radius-md); }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes lc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.lx .egg-card.egg-missing .mini-card-img img {
    opacity: 0.25;
    filter: grayscale(1);
}
.lx .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
@media (max-width: 1024px) {

    .lx .detail-img-sidebar {
        order: -1;
    }
}

@media (max-width: 700px) {

    .lx .creature-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .lx .codex-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .lx .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lx .mini-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lx .stats-grid {
        grid-template-columns: 1fr;
    }

    .lx .creature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .lx .creature-card-body {
        padding: 0.75rem;
    }

    .lx .creature-card-name {
        font-size: 0.85rem;
    }
    .lx .codex-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }
    .lx .creature-card-meta {
        gap: 0.25rem;
    }

    .lx .creature-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.35rem;
    }
}
.lx .tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.lx .tier-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.lx .tier-card-pro {
    border: 1px solid var(--gold);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25), 0 8px 24px rgba(251, 191, 36, 0.08);
}

.lx .tier-ribbon {
    position: absolute;
    top: -0.6rem;
    right: 1rem;
    background: var(--gold);
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}

.lx .tier-card-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.lx .tier-card-header h4 {
    font-size: 1.25rem;
    margin: 0 0 0.4rem;
}

.lx .tier-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple-soft);
}

.lx .tier-card-pro .tier-price { color: var(--gold); }

.lx .tier-price-alt {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.lx .tier-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.lx .tier-perks li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--glass-border);
    font-size: 0.85rem;
}

.lx .tier-perks li:last-child { border-bottom: none; }

.lx .tier-perk-label { color: var(--text-muted); }
.lx .tier-perk-value { font-weight: 600; }

.lx .tier-card-pro .tier-perk-value { color: var(--gold); }

.lx .tier-cta { margin-top: auto; }
.lx .pass-xp-bar {
    height: 10px;
    background: var(--bg-elevated);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.lx .pass-xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--gold));
    transition: width 0.4s ease;
}
.lx .pass-track {
    display: grid;
    grid-template-rows: 1.75rem repeat(3, minmax(80px, auto));
    grid-auto-flow: column;
    grid-auto-columns: 150px;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    scroll-snap-type: x proximity;
    scroll-padding-left: 110px;
}

.lx .pass-corner,
.lx .pass-lane {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.lx .pass-corner { background: transparent; border: none; }

.lx .pass-lane-free  { color: var(--text-muted); }
.lx .pass-lane-plus  { color: var(--blue); }
.lx .pass-lane-pro   { color: var(--gold); }

.lx .pass-col-num {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem;
    scroll-snap-align: start;
}

.lx .pass-col-num.reached { color: var(--purple-soft); }
.lx .pass-col-num.current {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.lx .pass-cell {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
}

.lx .pass-cell.current {
    border-color: var(--gold);
    box-shadow: inset 0 0 0 1px var(--gold);
}

.lx .pass-cell.claimed { opacity: 0.5; }

.lx .pass-cell-empty { color: var(--text-muted); font-size: 1rem; }

.lx .pass-cell-check {
    position: absolute;
    top: 0.25rem;
    right: 0.35rem;
    color: var(--green-deep);
    font-size: 1rem;
    background: var(--bg-card);
    border-radius: 999px;
    padding: 0 0.1rem;
}

.lx .pass-cell-plus { border-top: 2px solid var(--blue); }
.lx .pass-cell-pro  { border-top: 2px solid var(--gold); }

.lx .pass-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: default;
    padding: 0.15rem;
    width: 100%;
}

.lx .pass-reward i {
    font-size: 1.25rem;
    color: var(--purple-soft);
}

.lx .pass-cell-plus .pass-reward i { color: var(--blue); }
.lx .pass-cell-pro  .pass-reward i { color: var(--gold); }

.lx .pass-reward span {
    font-size: 0.65rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

@media (max-width: 768px) {
    .lx .tier-grid {
        grid-template-columns: 1fr;
    }
    .lx .pass-track {
        grid-auto-columns: 130px;
        scroll-padding-left: 100px;
    }
    .lx .pass-corner,
    .lx .pass-lane {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
}
.lx .stats-lg .detail-stat-label { font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--text-secondary); display: flex; align-items: center; gap: 0.35rem; }
.lx .stats-lg .detail-stat-value { font-size: 1.6rem; }
.lx .stats-lg .detail-stat        { padding: 1rem 1.25rem; }

.lx .detail-stat-value.compare .stat-base {
    color: var(--text-muted);
    font-size: 0.7em;
    font-weight: 600;
    opacity: 0.75;
    font-family: 'Outfit', sans-serif;
}

.lx .detail-stat-value.compare .stat-base::after {
    content: " →";
    margin-left: 0.25rem;
    opacity: 0.55;
}
.lx .codex-level-control {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin: 1rem 0 0.75rem;
}

.lx .codex-level-control-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.lx .codex-level-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.lx .codex-level-input {
    width: 4rem;
    padding: 0.3rem 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary, #fff);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.lx .codex-level-mult {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.lx .codex-level-presets {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
}

.lx .codex-level-slider {
    width: 100%;
    accent-color: var(--gold);
}
.lx .mini-card-img { position: relative; }
.lx .mini-card-dual {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    background: rgba(167, 139, 250, 0.9);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    z-index: 2;
}

.lx .anatomy-graph {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.lx .ag-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr 3rem;
    align-items: center;
    gap: 0.75rem;
}

.lx .ag-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lx .ag-bar {
    display: flex;
    height: 1.75rem;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.lx .ag-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(10, 8, 30, 0.85);
    white-space: nowrap;
    overflow: hidden;
}

.lx .ag-seg.ag-father   { background: var(--blue); }
.lx .ag-seg.ag-mother   { background: var(--pink); }
.lx .ag-seg.ag-wildcard {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.55);
}

.lx .ag-value {
    text-align: right;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold);
}

.lx .ag-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lx .ag-key {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lx .ag-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 3px;
    display: inline-block;
}

.lx .ag-dot.ag-father   { background: var(--blue); }
.lx .ag-dot.ag-mother   { background: var(--pink); }
.lx .ag-dot.ag-wildcard { background: var(--gold); }
@media (max-width: 640px) {
    .lx .ag-row {
        grid-template-columns: 1fr 3rem;
        row-gap: 0.25rem;
    }

    .lx .ag-name  { grid-column: 1 / -1; }
    .lx .ag-seg   { font-size: 0.7rem; }
}