.user-card-mtg {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 560px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), linear-gradient(180deg, #1f1c1b 0%, #141314 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mtg-frame {
    position: absolute;
    inset: 0;
    padding: 12px;
    background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 24%, var(--bg-elevated) 49%, var(--bg-card) 71%, var(--bg-elevated) 100%);
}

.mtg-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: inset 0 0 0 1px var(--border-subtle), inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.mtg-art {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transform: scale(1.02);
}

    .mtg-art::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(6, 8, 12, 0.25) 0%, rgba(6, 8, 12, 0.06) 18%, rgba(6, 8, 12, 0.02) 40%, rgba(6, 8, 12, 0.18) 62%, rgba(8, 8, 9, 0.76) 82%, rgba(7, 7, 8, 0.95) 100%);
    }

.mtg-art-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
}

    .mtg-art-placeholder svg {
        width: 64px;
        height: 64px;
        opacity: 0.25;
        stroke: currentColor;
        color: var(--text-secondary);
    }

.mtg-art-placeholder-text {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.mtg-nameplate {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 2;
    min-height: 42px;
    border-radius: var(--radius-md);
    padding: 8px 14px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
}

.mtg-username {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.mtg-typebar {
    position: absolute;
    bottom: 200px;
    left: 14px;
    right: 14px;
    z-index: 3;
    min-height: 28px;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mtg-rank {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.mtg-tier {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    font-weight: 600;
}

.mtg-oracle {
    position: absolute;
    top: 338px;
    bottom: 48px;
    left: 14px;
    right: 14px;
    z-index: 2;
    border-radius: var(--radius-md);
    padding: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.mtg-stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    transition: all 0.2s ease;
    cursor: default;
}

    .mtg-stat-card:hover {
        background: var(--bg-hover);
        border-color: var(--border-default);
        transform: translateY(-1px);
    }

.mtg-stat-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 3px;
}

.mtg-stat-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

    .mtg-stat-value.accent {
        color: var(--accent-blue);
    }

.mtg-stat-subtitle {
    font-size: 9px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.2;
}

.mtg-stat-card.full-width {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(var(--accent-blue-rgb, 104, 164, 255), 0.1) 0%, rgba(var(--accent-purple-rgb, 147, 51, 234), 0.1) 100%);
    border-color: var(--accent-blue);
}

    .mtg-stat-card.full-width:hover {
        background: linear-gradient(135deg, rgba(var(--accent-blue-rgb, 104, 164, 255), 0.15) 0%, rgba(var(--accent-purple-rgb, 147, 51, 234), 0.15) 100%);
    }

    .mtg-stat-card.full-width .mtg-stat-value {
        color: var(--accent-blue);
    }

.mtg-oracle-line {
    display: none;
}

.mtg-oracle-label {
    display: none;
}

.mtg-oracle-value {
    display: none;
}

.mtg-footerbox {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    z-index: 2;
    min-height: 28px;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    background: var(--bg-elevated);
    color: var(--text-tertiary);
    border: 1px solid var(--border-default);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

body[data-theme="light"] .mtg-frame {
    background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 30%, var(--bg-elevated) 50%, var(--bg-card) 100%);
}
