.prof-top {
    background: linear-gradient(110deg, var(--cream) 0%, #ffdcec 65%, var(--soft) 100%);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--pink);
    position: relative;
    overflow: hidden;
}

/* Decorative sparkles — high contrast against the pink gradient */
.prof-top::before {
    content: '✦';
    position: absolute;
    top: 5px;
    left: 148px;
    font-size: 28px;
    color: var(--hot);
    pointer-events: none;
    line-height: 1;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
}

.prof-top::after {
    content: '✧';
    position: absolute;
    bottom: 10px;
    left: 222px;
    font-size: 18px;
    color: #fff;
    pointer-events: none;
    line-height: 1;
    text-shadow: 0 0 5px var(--hot), 0 1px 0 var(--hot);
}

.prof-av-wrap {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.prof-av-hint {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: var(--pink);
    color: white;
    border: 2px solid var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.prof-av-wrap:hover .prof-av-hint { opacity: 1; }

.prof-av {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--dark);
    overflow: hidden;
    background:
        radial-gradient(circle, var(--cream) 40%, transparent 41%),
        repeating-radial-gradient(circle at 0 0, transparent 0, transparent 6px, rgba(247,37,133,.08) 6px, rgba(247,37,133,.08) 7px);
    box-shadow: 0 0 0 3px var(--pink);
}

.prof-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prof-name-area {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
    border-right: 2px solid rgba(247, 37, 133, .45);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.prof-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 32px;
    letter-spacing: 1.5px;
    color: white;
    -webkit-text-stroke: 3px var(--hot);
    paint-order: stroke fill;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Subnick — styled as a rarity pill tag */
.prof-tag {
    cursor: pointer;
    align-self: flex-start;
}

.prof-tag:not(:empty) {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 2px solid var(--dark);
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.prof-tag:not(:empty)::before { content: '◆ '; }
.prof-tag:not(:empty)::after  { content: ' ◆'; }

/* ── Rarity tiers ── */
.prof-tag--common:not(:empty) {
    background: var(--hot);
    color: white;
    box-shadow: 2px 2px 0 var(--dark);
}
.prof-tag--common:not(:empty)::before,
.prof-tag--common:not(:empty)::after { color: rgba(255, 255, 255, 0.6); }

.prof-tag--uncommon:not(:empty) {
    background: #0891b2;
    color: white;
    box-shadow: 2px 2px 0 var(--dark);
}
.prof-tag--uncommon:not(:empty)::before,
.prof-tag--uncommon:not(:empty)::after { color: #7dd3fc; }

.prof-tag--rare:not(:empty) {
    background: #7c3aed;
    color: white;
    box-shadow: 2px 2px 0 var(--dark);
}
.prof-tag--rare:not(:empty)::before,
.prof-tag--rare:not(:empty)::after { color: #c4b5fd; }

.prof-tag--legendary:not(:empty) {
    background: #f59e0b;
    color: var(--dark);
    box-shadow: 2px 2px 0 var(--dark);
}
.prof-tag--legendary:not(:empty)::before,
.prof-tag--legendary:not(:empty)::after { color: #92400e; }

.prof-edit-btn {
    background: var(--pink);
    color: white;
    border: 2px solid var(--dark);
    border-radius: 8px;
    padding: 4px 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 6px;
    cursor: pointer;
    align-self: flex-end;
    margin-top: 8px;
}

.prof-bio-wrap {
    flex: 1;
    padding: 10px 14px;
    border-right: 2px solid var(--pink);
    display: flex;
    flex-direction: column;
}

.prof-traits {
    background: rgba(255, 255, 255, .78);
    border-radius: 16px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    align-self: center;
}

.trait {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: var(--dark);
}

.prof-bot {
    display: flex;
}

.prof-bio {
    flex: 1;
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    line-height: 1.85;
    color: var(--dark);
}

.prof-r {
    padding: 10px;
    min-width: 175px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pts-h {
    display: flex;
    justify-content: space-between;
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: var(--pink);
}

.pts-bar {
    height: 20px;
    background: var(--soft);
    border-radius: 20px;
    border: 2px solid var(--dark);
    overflow: hidden;
}

.pts-fill {
    height: 100%;
    background: var(--pink);
    border-radius: 20px;
    transition: width .4s;
}

.rew-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 6px;
    color: var(--pink);
    text-align: right;
}

.rew-box {
    background: var(--cream);
    border-radius: 10px;
    border: 2px solid var(--pink);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 20px;
    min-height: 70px;
}

/* ── Header color pickers ── */
.prof-colors-section {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
}

.prof-colors-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prof-colors-lbl {
    font-family: 'Press Start 2P', monospace;
    font-size: 6px;
    color: var(--dark);
    width: 52px;
    flex-shrink: 0;
}

.prof-swatches {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.prof-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--dark);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.1s;
}

.prof-swatch:hover { transform: scale(1.2); }

.prof-swatch--active {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--hot);
}
