/* ═══════════════════════════════════════════
   PROFILE — unified retro chrome
   ═══════════════════════════════════════════ */

.prof-body {
    --prof-rare-blue: #7dd3fc;
    --prof-rare-purple: #d9c7f2;
    --prof-rare-gold: var(--lb-yellow, #ffd83d);
    --prof-muted: #5c3b4a;
}

.prof-top {
    background: var(--prof-accent, var(--pink));
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 3px solid var(--dark);
    position: relative;
    overflow: hidden;
}

.prof-top::before {
    content: '✦';
    position: absolute;
    top: 6px;
    left: 148px;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    line-height: 1;
    text-shadow: 1px 1px 0 var(--dark);
}

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

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

.prof-av-hint {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--pink);
    color: #fff;
    border: 2.5px solid var(--dark);
    border-radius: 50%;
    box-shadow: 0 2px 0 var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    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: 4px 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 4px 0 var(--dark);
}

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

.prof-name-area {
    flex: 1;
    min-width: 0;
    padding-right: var(--space-3);
    border-right: 2.5px solid var(--dark);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
}

.prof-name {
    font-family: var(--font-display);
    font-size: 28px;
    color: #fff;
    -webkit-text-stroke: 2px var(--dark);
    paint-order: stroke fill;
    text-shadow: 3px 3px 0 var(--dark);
    letter-spacing: 0.5px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* Status — a small "vibe" line shown under the name. Hidden until
   the user actually sets one so the area doesn't reserve dead space. */
.prof-status {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    color: var(--hot);
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin-top: -4px;
}
.prof-status:empty { display: none; }
.prof-status:not(:empty)::before { content: '· '; opacity: .6; }

.prof-tag {
    cursor: pointer;
    align-self: flex-start;
}

.prof-tag:not(:empty) {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 2.5px solid var(--dark);
    box-shadow: 0 2px 0 var(--dark);
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.prof-tag--common:not(:empty) {
    background: var(--dark);
    color: #fff;
}
.prof-tag--common:not(:empty)::before,
.prof-tag--common:not(:empty)::after { color: var(--pink); }

.prof-tag--uncommon:not(:empty) {
    background: var(--prof-rare-blue);
    color: var(--dark);
}
.prof-tag--uncommon:not(:empty)::before,
.prof-tag--uncommon:not(:empty)::after { color: var(--pink); }

.prof-tag--rare:not(:empty) {
    background: var(--prof-rare-purple);
    color: var(--dark);
}
.prof-tag--rare:not(:empty)::before,
.prof-tag--rare:not(:empty)::after { color: var(--hot); }

.prof-tag--legendary:not(:empty) {
    background: var(--prof-rare-gold);
    color: var(--dark);
}
.prof-tag--legendary:not(:empty)::before,
.prof-tag--legendary:not(:empty)::after { color: var(--hot); }

.prof-edit-btn {
    background: var(--prof-accent, var(--pink));
    color: var(--prof-accent-text, #fff);
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    box-shadow: 0 2px 0 var(--dark);
    cursor: pointer;
    align-self: flex-end;
    margin-top: var(--space-2);
    letter-spacing: 0.5px;
}
.prof-edit-btn:hover { filter: brightness(0.85); }

.prof-bio-wrap {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border-right: 2.5px solid var(--dark);
    display: flex;
    flex-direction: column;
}

.prof-traits {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex-shrink: 0;
    align-self: center;
}

.trait {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #fff;
    border: 2px solid var(--dark);
    border-radius: var(--radius-pill);
    box-shadow: 2px 2px 0 var(--dark);
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--dark);
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

.prof-bot {
    display: flex;
}

.prof-bio {
    flex: 1;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.5;
    color: var(--dark);
}

.prof-r {
    padding: var(--space-3);
    min-width: 175px;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.pts-h {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    color: var(--prof-accent, var(--pink));
    letter-spacing: 0.5px;
}

.pts-bar {
    height: 22px;
    background: color-mix(in srgb, var(--prof-accent, var(--pink)) 22%, white);
    border-radius: var(--radius-pill);
    border: 2.5px solid var(--dark);
    box-shadow: 0 2px 0 var(--dark);
    overflow: hidden;
}

.pts-fill {
    height: 100%;
    background: var(--prof-accent, var(--pink));
    border-radius: var(--radius-pill);
    transition: width .4s;
}

.rew-label {
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    color: var(--prof-accent, var(--pink));
    text-align: right;
    letter-spacing: 0.5px;
}

.rew-box {
    background: color-mix(in srgb, var(--prof-accent, var(--pink)) 14%, var(--cream));
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-md);
    box-shadow: 0 3px 0 var(--dark);
    padding: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    flex-wrap: wrap;
    gap: var(--space-1);
    font-size: 22px;
    min-height: 70px;
}

.prof-colors-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.prof-colors-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.prof-colors-lbl {
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    color: var(--dark);
    width: 56px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.prof-swatches {
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.prof-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px 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 #fff, 0 0 0 4px var(--hot);
}

.prof-logout-btn {
    margin-top: var(--space-2);
    background: #fff;
    color: var(--prof-muted);
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 0 var(--dark);
    padding: 6px 10px;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.5px;
}
.prof-logout-btn:hover { background: var(--soft); color: var(--dark); }

#w-profile .wbar {
    background: var(--prof-accent, var(--pink));
}

#w-profile .wurl-h {
    color: var(--prof-accent, var(--pink));
}

#w-profile .wfoot {
    background: var(--prof-accent, var(--pink));
}

.prof-irl-list {
    flex: unset;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-1);
    min-height: unset;
}

.prof-irl-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--dark);
    letter-spacing: 0.5px;
    background: #fff;
    border: 2px solid var(--dark);
    border-radius: var(--radius-pill);
    padding: 3px 8px;
    box-shadow: 0 1px 0 var(--dark);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   SECRET ENDING REWARD · staff archive print
   Unlocks when S.mailEnding === 'documented'.
   ═══════════════════════════════════════════════ */
.prof-secret-print {
    position: relative;
    background: #f4e4c1;
    border: 2.5px solid #2d1a08;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 0 #2d1a08;
    padding: var(--space-4) var(--space-3) var(--space-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.psp-tape {
    position: absolute;
    width: 56px;
    height: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(45, 26, 8, 0.25);
    top: -8px;
}
.psp-tape--tl { left: 14px; transform: rotate(-6deg); }
.psp-tape--tr { right: 14px; transform: rotate(7deg); }

.psp-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    background: linear-gradient(135deg, #a8865c 0%, #c4a373 55%, #8c6b3f 100%);
    border: 3px solid #4a2f17;
    box-shadow: 0 2px 0 #2d1a08, inset 0 0 0 2px #d4b896;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psp-photo-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 240, 200, 0.18), transparent 35%),
        radial-gradient(circle at 75% 70%, rgba(45, 26, 8, 0.22), transparent 40%),
        repeating-linear-gradient(0deg, rgba(45, 26, 8, 0.05) 0 2px, transparent 2px 4px);
}

.psp-photo-inner {
    position: relative;
    text-align: center;
    color: #f4e4c1;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 #2d1a08;
}

.psp-photo-row {
    font-size: var(--fs-xs);
    opacity: 0.85;
    margin-bottom: 6px;
}

.psp-photo-row--bottom {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 8px;
    opacity: 0.75;
}

.psp-photo-title {
    font-size: var(--fs-lg);
    margin-bottom: 4px;
    color: #f4e4c1;
}

.psp-photo-sub {
    font-size: var(--fs-xs);
    color: #fde9c4;
    opacity: 0.9;
}

.psp-caption {
    width: 100%;
    text-align: center;
    color: #2d1a08;
}

.psp-caption-pill {
    display: inline-block;
    background: #2d1a08;
    color: #f4e4c1;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    letter-spacing: 0.5px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-2);
    box-shadow: 0 2px 0 #6b4423;
}

.psp-caption-body {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #4a2f17;
    line-height: 1.45;
}
