.profile-card-wrap{
    position: relative;
    z-index: 20;
    width: min(1320px, calc(100vw - 36px));
    margin: 16px auto 0;
}

.profile-card-wrap,
.profile-card-wrap *{
    box-sizing: border-box;
    font-family: "Press Start 2P", "Zpix", "方正像素体", "Stardew Valley Regular", "Courier New", Courier, monospace;
    image-rendering: pixelated;
}

.profile-card {
    display: flex;
    background-color: #f7cc88;
    border: 8px solid #8b4513;
    border-radius: 8px;
    padding: 16px;
    gap: 20px;
    box-shadow: 0 8px 0 #5a2d0c, 0 24px 50px rgba(0,0,0,.35);
}

.profile-card .left-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.profile-card .avatar-box {
    width: 160px;
    height: 160px;
    background-color: #8b4513;
    border: 4px solid #d4a046;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card .avatar-placeholder {
    width: 144px;
    height: 144px;
    background-color: #87ceeb;
    background-image: linear-gradient(to bottom, #87ceeb 0%, #87ceeb 60%, #90ee90 60%, #90ee90 100%);
    overflow: hidden;
}

.profile-card .avatar-placeholder img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
}

.profile-card .basic-info {
    text-align: center;
    color: #5a2d0c;
}

.profile-card .username {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.2;
}

.profile-card .title {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.45;
}

.profile-card .stats {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.profile-card .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.profile-card .stat-icon {
    font-size: 18px;
}

.profile-card .joja-logo {
    width: 160px;
    height: 160px;
    background-color: #a0d8ef;
    border: 2px solid #4682b4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-card .joja-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.profile-card .joja-block {
    width: 24px;
    height: 24px;
    background-color: #4682b4;
    border-radius: 2px;
}

.profile-card .joja-text {
    font-size: 20px;
    font-weight: bold;
    color: #4682b4;
    font-style: italic;
}

.profile-card .right-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-width: 0;
}

.profile-card .skill-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-card .skill-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex: 0 0 auto;
}

.profile-card .skill-name {
    width: 98px;
    font-size: 12px;
    color: #5a2d0c;
    font-weight: bold;
    line-height: 1.3;
}

.profile-card .skill-bar {
    display: flex;
    gap: 3px;
    flex-wrap: nowrap;
}

.profile-card .bar-segment {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    flex: 0 0 auto;
}

.profile-card .bar-segment.red {
    background-color: #d63031;
    border: 2px solid #a82020;
}

.profile-card .bar-segment.gold {
    background-color: #ffc107;
    border: 2px solid #d49a00;
}

.profile-card .skill-level {
    font-size: 14px;
    font-weight: bold;
    color: #5a2d0c;
    width: 24px;
    text-align: center;
}

.profile-card .mastery-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.profile-card .mastery-icon {
    font-size: 22px;
}

.profile-card .mastery-bar {
    width: 240px;
    height: 18px;
    background-color: #2d5a27;
    border: 3px solid #1a3a18;
    border-radius: 2px;
    overflow: hidden;
}

.profile-card .mastery-fill {
    height: 100%;
    background-color: #4caf50;
}

.profile-card .mastery-level {
    font-size: 14px;
    font-weight: bold;
    color: #5a2d0c;
    width: 24px;
    text-align: center;
}

.profile-card .footer-info {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    color: #5a2d0c;
    font-size: 11px;
    flex-wrap: wrap;
}

.profile-card .footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-card .footer-icon {
    font-size: 16px;
}

@media (max-width: 1180px){
    .profile-card{
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 760px){
    .profile-card{
        padding: 12px;
        gap: 14px;
    }

    .profile-card .right-panel{
        width: 100%;
    }

    .profile-card .skill-row{
        flex-wrap: wrap;
    }

    .profile-card .skill-bar{
        width: 100%;
        order: 3;
    }
}
