/**
 * TFISOFT CMS FREE 
 * www.tfisoft.com.br
 * @version 1.0.0
 * @author Moreira / DevKinG 
 * @copyright (c) 2026 TFISFOT, All Rights Reserved
 *
 */
/* Crimson profile UI: all presentation is scoped to this template. */
body.tfi-arena .cp-profile {
    --cp-red: #9f6b1f;
    --cp-glow: #e7a647;
    --cp-silver: #b4a8a0;
    --cp-gold: #d9b178;
    --cp-line: #534344;
    --cp-panel: #15141d;
    --cp-text: #f1e8dc;
    --cp-muted: #a99d9c;
    color: var(--cp-text);
    font:
        14px/1.6 Arial,
        sans-serif;
    min-width: 0;
    width: 100%;
    container-type: inline-size;
    container-name: cp-page;
}
body.tfi-arena .cp-profile * {
    box-sizing: border-box;
}
body.tfi-arena .cp-profile [hidden] {
    display: none !important;
}
body.tfi-arena .cp-profile a {
    color: inherit;
    text-decoration: none;
}
body.tfi-arena .cp-profile a:hover {
    color: #ffcc81;
}
body.tfi-arena .cp-profile :is(h1, h2, h3, h4, p) {
    margin-top: 0;
}
body.tfi-arena .cp-profile :is(h1, h2, h3, h4) {
    color: var(--cp-text);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}
.cp-breadcrumb {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #c1b9ad;
    margin: 0 0 18px;
}
.cp-breadcrumb > span:nth-child(even) {
    color: #d89a3f;
}
.cp-header {
    border: 1px solid #766265;
    border-radius: 5px;
    background: linear-gradient(145deg, #1b1619, #0f0e10);
    box-shadow:
        inset 0 0 0 3px #19151a,
        0 16px 35px #0004;
    overflow: hidden;
    position: relative;
}
.cp-header:after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid #57484b;
    pointer-events: none;
}
.cp-cover {
    height: 235px;
    position: relative;
    overflow: hidden;
    background: #161410;
}
.cp-cover > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.cp-cover:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #110d12bb, transparent 48%);
}
.cp-ribbon {
    position: absolute;
    top: 18px;
    left: 0;
    z-index: 1;
    min-width: 270px;
    padding: 8px 36px 8px 22px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    border-top: 1px solid #d4a055;
    border-bottom: 1px solid #966d32;
    background: linear-gradient(100deg, #845b20, #34240e);
    font:
        700 20px/1.35 Georgia,
        serif;
    color: #f2e1c8;
    letter-spacing: 0.5px;
}
.cp-identity {
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    z-index: 1;
    padding: 0 26px 22px;
    min-height: 160px;
    flex-wrap: wrap;
}
.cp-portrait {
    width: 146px;
    height: 146px;
    flex: none;
    position: relative;
    margin-top: -38px;
    border-radius: 50%;
    padding: 8px;
    isolation: isolate;
}
.cp-metal-frame {
    background: conic-gradient(
        from 35deg,
        #d0c7b9,
        #282027 15%,
        #c2b5a1 25%,
        #5f5445 40%,
        #e5dacb 50%,
        #483f33 65%,
        #c7baa6 80%,
        #221e17 90%,
        #d0c7b9
    );
    box-shadow:
        0 0 0 1px #a99981,
        0 0 0 5px #0b090c,
        0 8px 22px #0009;
}
.cp-portrait:before,
.cp-portrait:after {
    content: "✦";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: #df9e40;
    text-shadow:
        0 0 2px #f6e6d0,
        0 2px 7px #000;
    z-index: 3;
    line-height: 1;
}
.cp-portrait:before {
    top: -13px;
}
.cp-portrait:after {
    bottom: -13px;
}
.cp-avatar-images {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    flex: none;
    width: 40px;
    height: 40px;
    background: #09080b;
    border: 1px solid #736550;
    border-radius: 50%;
    isolation: isolate;
}
.cp-avatar-images img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    margin: 0;
}
.cp-avatar-images .cp-avatar-photo {
    z-index: 1;
}
.cp-portrait > .cp-avatar-images {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #4e3a1c;
}
.cp-identity-copy {
    min-width: 0;
    flex: 1 1 220px;
    padding-top: 12px;
}
.cp-name-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
body.tfi-arena .cp-profile h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 8px;
    text-shadow: 0 2px 2px #000;
    color: #f3e3cc;
    overflow-wrap: anywhere;
}
.cp-class {
    color: #d0c6b7;
    font-size: 14px;
    margin: 0 0 10px;
}
.cp-description {
    font-size: 12px;
    color: #b9aaa6;
    line-height: 1.6;
    margin: 10px 0 0;
    max-width: 550px;
    overflow-wrap: anywhere;
}
.cp-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font:
        10px/1.4 Arial,
        sans-serif;
    padding: 3px 7px;
    border: 1px solid #625659;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.cp-online {
    color: #9cde7e;
    border-color: #466635;
    background: #17231a;
}
.cp-offline {
    color: #b4a6ab;
    background: #211a20;
    border-color: #493b43;
}
.cp-unknown {
    color: #b3aab3;
    background: #1c1920;
}
.cp-status > span {
    font-size: 10px;
}
.cp-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    color: #efcd9b;
    border: 1px solid #94774e;
    background: linear-gradient(100deg, #4e3817, #16130f);
    border-radius: 4px;
    font:
        700 11px/1.3 Georgia,
        serif;
    letter-spacing: 0.4px;
}
.cp-rank-badge svg {
    width: 18px;
    height: 18px;
    flex: none;
}
.cp-guild-affiliation {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 18px;
    border-left: 1px solid #605647;
    margin-left: auto;
}
.cp-mini-guild-mark {
    width: 46px;
    min-height: 46px;
    display: grid;
    place-items: center;
    color: var(--cp-gold);
}
.cp-mini-guild-mark img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}
.cp-guild-affiliation small {
    font-size: 9px;
    letter-spacing: 1px;
    color: #c6b59c;
}
.cp-guild-affiliation strong {
    display: block;
    font:
        700 17px/1.4 Georgia,
        serif;
    color: #f2dcbd;
}
.cp-small-button {
    display: inline-block;
    border: 1px solid #9a7237;
    background: linear-gradient(#7e5b28, #3b2910);
    border-radius: 4px;
    padding: 4px 14px;
    font-size: 10px;
    margin-top: 5px;
    color: #fff !important;
}
.cp-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}
.cp-metric {
    padding: 13px 12px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #87706b;
    border-radius: 4px;
    background:
        radial-gradient(ellipse at bottom, #67481c55, transparent 80%),
        linear-gradient(145deg, #25211b, #0f0d11);
    box-shadow:
        inset 0 0 0 3px #1f1c17,
        0 2px 5px #0007;
    position: relative;
}
.cp-metric:after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid #463f34;
    pointer-events: none;
}
.cp-metric > svg {
    width: 30px;
    height: 30px;
    flex: none;
    color: #d8b076;
    filter: drop-shadow(0 0 5px #95692a);
}
.cp-metric span {
    display: block;
    text-transform: uppercase;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 0.7px;
    color: #d5c8b6;
}
.cp-metric strong {
    display: block;
    font:
        700 28px/1.2 Georgia,
        serif;
    color: #f4e1c6;
}
.cp-tabs {
    display: flex;
    gap: 0;
    border: 1px solid #5c5347;
    border-radius: 4px;
    margin: 0 0 18px;
    background: linear-gradient(#23201b, #0e0d11);
    overflow-x: auto;
}
.cp-profile .cp-tabs button {
    flex: 1;
    min-width: 105px;
    background: transparent;
    border: 0;
    border-right: 1px solid #484136;
    color: #cac1b4;
    border-radius: 0;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}
.cp-profile .cp-tabs button:last-child {
    border-right: 0;
}
.cp-profile .cp-tabs button[aria-selected="true"] {
    color: #fff6e8;
    background: linear-gradient(#745221, #2f2311);
    box-shadow:
        inset 0 -2px #e5a445,
        0 2px 8px #b67e2d;
}
.cp-profile .cp-tabs button:focus-visible {
    outline: 2px solid #ffcb80;
    outline-offset: -3px;
}
.cp-player-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
    gap: 16px;
}
.cp-player-columns.cp-single-column {
    grid-template-columns: 1fr;
}
.cp-panel {
    min-width: 0;
    background:
        radial-gradient(ellipse at 80% 0, #46362025, transparent 65%),
        linear-gradient(135deg, #181417, #0d0d10);
    border: 1px solid #706064;
    border-radius: 5px;
    padding: 16px 18px;
    margin: 0 0 16px;
    box-shadow: inset 0 0 0 3px #151115;
}
body.tfi-arena .cp-profile .cp-panel h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    font:
        700 18px/1.4 Georgia,
        "Times New Roman",
        serif;
    margin: -16px -18px 17px;
    padding: 10px 16px;
    color: #efd8b7;
    background: linear-gradient(90deg, #3d2f1b, #1a151a);
    border-bottom: 1px solid #584f41;
}
body.tfi-arena .cp-profile .cp-panel h2 > svg {
    width: 21px;
    height: 21px;
    flex: none;
    color: #e2c190;
}
.cp-attributes {
    display: grid;
    gap: 14px;
}
.cp-attribute > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #e3d8c7;
}
.cp-profile progress {
    display: block;
    appearance: none;
    width: 100%;
    height: 10px;
    border: 1px solid #675352;
    border-radius: 9px;
    background: #09080b;
    overflow: hidden;
    accent-color: #c58933;
}
.cp-profile progress::-webkit-progress-bar {
    background: #09080b;
    border-radius: 8px;
}
.cp-profile progress::-webkit-progress-value {
    background: linear-gradient(#f5bc6a, #a36f24);
    box-shadow: inset 0 0 3px #ffd597;
    border-radius: 8px;
}
.cp-profile progress::-moz-progress-bar {
    background: linear-gradient(#f5bc6a, #a36f24);
    border-radius: 8px;
}
.cp-medals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
    gap: 14px;
}
.cp-medals-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.cp-medal {
    min-width: 0;
    text-align: center;
    padding: 16px 12px;
    border: 1px solid #4c3c43;
    border-radius: 5px;
    background: linear-gradient(#25211a, #121014);
}
.cp-medals-compact .cp-medal {
    border: 0;
    background: transparent;
    padding: 10px 3px;
}
.cp-medal-emblem {
    position: relative;
    width: 76px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    color: #e3b471;
    background: linear-gradient(
        145deg,
        #d7c1a0,
        #554329 25%,
        #c8a26b 50%,
        #403423 75%,
        #d6b482
    );
    clip-path: polygon(
        50% 0,
        88% 17%,
        100% 50%,
        82% 79%,
        50% 100%,
        18% 79%,
        0 50%,
        12% 17%
    );
    isolation: isolate;
    filter: drop-shadow(0 4px 5px #0008);
}
.cp-medal-emblem:before {
    content: "";
    position: absolute;
    inset: 6px;
    background: radial-gradient(circle, #644921, #241d13 70%);
    clip-path: inherit;
    z-index: -1;
}
.cp-medal-emblem svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 1px 2px #000);
}
.cp-medals-compact .cp-medal-emblem {
    width: 64px;
    height: 76px;
}
.cp-medals-compact .cp-medal-emblem svg {
    width: 35px;
    height: 35px;
}
body.tfi-arena .cp-profile .cp-medal h4 {
    font:
        700 12px/1.4 Georgia,
        serif;
    margin: 0 0 7px;
    color: #eddabf;
    overflow-wrap: anywhere;
}
.cp-medal-state {
    font-size: 9px;
    letter-spacing: 0.4px;
    color: #c19f6d;
    text-transform: uppercase;
}
.cp-medal p {
    font-size: 11px;
    color: #ae9f9e;
    margin: 12px 0;
    line-height: 1.6;
}
.cp-medal progress {
    height: 7px;
    margin-top: 12px;
}
.cp-medal.cp-locked {
    opacity: 0.6;
}
.cp-locked .cp-medal-emblem {
    filter: grayscale(1);
}
.cp-rank-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}
.cp-rank-strip > a {
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-right: 1px solid #62533e;
    font-size: 11px;
}
.cp-rank-strip > a:last-child {
    border-right: 0;
}
.cp-rank-strip strong {
    font:
        700 24px/1 Georgia,
        serif;
    color: #f1d6b0;
}
.cp-muted {
    color: var(--cp-muted);
    font-size: 12px;
    line-height: 1.8;
}
.cp-small-note {
    font-size: 10px;
    margin: 15px 0 0;
}
.cp-public-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #b2a5a5;
    padding: 0 4px;
}
.cp-public-details b {
    margin-left: 8px;
    color: #ddcdb6;
}
.cp-signature {
    font-size: 9px;
    color: #c6b192;
    letter-spacing: 4px;
    text-align: center;
    padding: 22px 0 4px;
    border-top: 1px solid #4a3d2b;
    margin-top: 20px;
}
.cp-profile-error {
    border: 1px solid #725a36;
    background: #211b13;
    border-radius: 8px;
    padding: 28px;
    color: #e9e1d5;
}
.cp-profile-error h2 {
    font-size: 24px;
}
.cp-profile-error a {
    display: inline-block;
    margin-top: 12px;
    color: #ffcd84;
}
.cp-timeline {
    border-left: 2px solid #a6752e;
    padding: 14px 18px;
    margin: 20px 0;
    background: #211c15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cp-timeline time {
    font-size: 11px;
    color: #cdbca4;
}
.cp-guild-crest {
    border-radius: 16% 16% 38% 38%;
    display: grid;
    place-items: center;
    padding: 12px;
}
.cp-guild-crest > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    border-radius: 10%;
}
.cp-emblem-placeholder {
    font-size: 54px;
    color: #d5b17e;
}
.cp-guild-honors {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.cp-guild-motto {
    font-family: Georgia, serif;
    font-size: 15px;
    font-style: italic;
    color: #dcc8ac;
    margin-bottom: 10px;
}
.cp-master-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c7bcac;
    font-size: 12px;
    margin: 8px 0 0;
}
.cp-master-name svg {
    width: 18px;
    height: 18px;
    color: #ddb172;
}
.cp-owner-badge {
    font-size: 10px;
    color: #d7bd97;
}
.cp-guild-columns {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
}
.cp-leader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #493f31;
}
.cp-leader:last-child {
    border-bottom: 0;
}
.cp-leader .cp-avatar-images {
    width: 44px;
    height: 44px;
    border-radius: 5px;
}
.cp-leader > div {
    min-width: 0;
}
.cp-leader strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}
.cp-leader small {
    display: block;
    font-size: 10px;
    color: #c6b090;
}
.cp-member-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.cp-profile .cp-member-heading h2 {
    margin-bottom: 14px;
    flex: 1 1 100%;
}
.cp-search {
    display: block;
    margin: 0 0 14px;
    width: 100%;
}
.cp-profile .cp-search input[type="search"] {
    display: block;
    width: 100%;
    min-height: 36px !important;
    font-size: 11px !important;
    background: #110e12 !important;
    border: 1px solid #5c5140 !important;
    border-radius: 4px;
    padding: 8px 10px !important;
    color: #eee3d3 !important;
}
.cp-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}
.cp-profile table.cp-member-table {
    width: 100%;
    min-width: 440px;
    background: transparent;
    font-size: 11px;
    border-collapse: collapse;
}
body.tfi-arena .cp-profile .cp-member-table th {
    font-size: 9px;
    letter-spacing: 0.4px;
    text-align: left;
    padding: 10px 8px;
    background: #242019 !important;
    border-color: #50473b !important;
    color: #c8baa5 !important;
}
body.tfi-arena .cp-profile .cp-member-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #4b4133 !important;
    white-space: normal;
    vertical-align: middle;
    color: #dfd5c7;
}
body.tfi-arena .cp-profile .cp-member-table tbody tr {
    background: #171511 !important;
}
body.tfi-arena .cp-profile .cp-member-table tbody tr:nth-child(even) {
    background: #1e1a15 !important;
}
.cp-member-name {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 130px;
}
.cp-member-name strong {
    font-size: 12px;
}
.cp-member-name small {
    display: block;
    font-size: 9px;
    color: #a99699;
}
.cp-member-role {
    font-size: 10px;
}
.cp-member-table .cp-status {
    font-size: 8px;
    padding: 2px 5px;
    border: 0;
    background: transparent;
    text-transform: none;
    letter-spacing: 0;
}
.cp-guild-medals .cp-medals-compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.cp-guild-medals .cp-medal {
    padding-top: 0;
}
.cp-overview-list {
    margin: 0;
}
.cp-overview-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #473e32;
}
.cp-overview-list dt {
    font-size: 12px;
    color: #bdb4a6;
    font-weight: 400;
}
.cp-overview-list dd {
    margin: 0;
    font-size: 12px;
}
.cp-empty {
    padding: 20px;
    color: #bab2a6;
    font-size: 12px;
}
.cp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 1100px) {
    .cp-guild-columns {
        grid-template-columns: 1fr;
    }
    .cp-leaders {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }
    .cp-profile .cp-leaders h2 {
        flex: 1 1 100%;
        width: calc(100% + 36px);
    }
    .cp-leader {
        flex: 1 1 160px;
        border: 0;
        padding: 8px 0;
    }
    .cp-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cp-guild-affiliation {
        padding: 12px 0 0;
        border-left: 0;
        flex-basis: 100%;
        margin-left: 0;
    }
    .cp-identity {
        gap: 18px;
        padding: 0 20px 22px;
    }
    .cp-portrait {
        width: 126px;
        height: 126px;
    }
}
@media (max-width: 760px) {
    .cp-cover {
        height: 200px;
    }
    .cp-ribbon {
        font-size: 17px;
        min-width: 245px;
    }
    .cp-identity {
        padding: 0 18px 22px;
    }
    .cp-identity-copy {
        flex-basis: 170px;
    }
    .cp-player-columns {
        grid-template-columns: 1fr;
    }
    .cp-medals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cp-medals-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .cp-rank-strip {
        grid-template-columns: 1fr;
    }
    .cp-rank-strip > a {
        padding: 13px 5px;
        border-right: 0;
        border-bottom: 1px solid #4b4030;
    }
    .cp-rank-strip > a:last-child {
        border-bottom: 0;
    }
    .cp-guild-honors {
        align-items: flex-start;
        margin-left: 0;
        flex-basis: 100%;
    }
    .cp-guild-affiliation {
        flex-basis: auto;
        margin-left: auto;
    }
    .cp-profile .cp-tabs button {
        padding: 10px 12px;
        font-size: 11px;
    }
    .cp-timeline {
        display: block;
    }
    .cp-timeline time {
        display: block;
        margin-top: 8px;
    }
    body.tfi-arena .cp-profile h1 {
        font-size: 32px;
    }
}
@media (max-width: 480px) {
    .cp-cover {
        height: 165px;
    }
    .cp-ribbon {
        font-size: 15px;
        min-width: 220px;
        top: 14px;
        padding-left: 15px;
    }
    .cp-portrait {
        width: 112px;
        height: 112px;
        margin-top: -28px;
    }
    .cp-identity {
        gap: 18px;
        padding: 0 15px 20px;
    }
    .cp-identity-copy {
        padding-top: 5px;
        flex-basis: 100%;
    }
    .cp-name-row {
        gap: 10px;
    }
    body.tfi-arena .cp-profile h1 {
        font-size: 31px;
    }
    .cp-guild-affiliation {
        margin-left: 0;
    }
    .cp-metric {
        padding: 12px 8px;
        gap: 9px;
    }
    .cp-metric > svg {
        width: 22px;
        height: 22px;
    }
    .cp-metric strong {
        font-size: 25px;
    }
    .cp-metric span {
        font-size: 8px;
        letter-spacing: 0.2px;
    }
    .cp-panel {
        padding: 15px;
    }
    .cp-profile .cp-panel h2 {
        font-size: 17px !important;
        margin: -15px -15px 16px !important;
        padding: 10px 13px !important;
    }
    .cp-medals {
        gap: 9px;
    }
    .cp-medals-compact {
        gap: 5px;
    }
    .cp-medals-compact .cp-medal-emblem {
        width: 60px;
        height: 72px;
    }
    .cp-medal {
        padding: 13px 7px;
    }
    .cp-medal-emblem {
        width: 68px;
        height: 80px;
    }
    .cp-profile .cp-tabs button {
        min-width: 92px;
    }
    .cp-signature {
        font-size: 8px;
        letter-spacing: 2px;
    }
    .cp-breadcrumb {
        font-size: 10px;
    }
    .cp-guild-columns {
        gap: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cp-profile * {
        transition: none !important;
        animation: none !important;
    }
}

/* Preserve profile typography and controls against general module styles. */
body.tfi-arena .tfi-module .cp-profile :is(h1, h2, h3, h4) {
    font-family: Georgia, "Times New Roman", serif;
}
body.tfi-arena .cp-profile .cp-tabs button {
    background: transparent;
    color: #cdc2b2;
    border: 0;
    border-right: 1px solid #484136;
    border-radius: 0;
}
body.tfi-arena .cp-profile .cp-tabs button[aria-selected="true"] {
    background: linear-gradient(#745221, #2f2311);
    color: #fff6e8;
}
body.tfi-arena .cp-profile .cp-portrait > .cp-avatar-images {
    width: 130px;
    height: 130px;
}
body.tfi-arena .cp-profile .cp-guild-crest > img {
    width: 112px;
    height: 112px;
    max-width: 100%;
}
.cp-rank-badge {
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
}
.cp-medal-emblem,
.cp-medals-compact .cp-medal-emblem {
    background: none;
    clip-path: none;
    filter: drop-shadow(0 3px 4px #0008);
}
.cp-medal-emblem:before {
    display: none;
}
.cp-medal-emblem > svg.cp-medal-svg {
    width: 100%;
    height: 100%;
    filter: none;
}
@media (max-width: 1100px) {
    body.tfi-arena .cp-profile .cp-portrait > .cp-avatar-images {
        width: 110px;
        height: 110px;
    }
    body.tfi-arena .cp-profile .cp-guild-crest > img {
        width: 96px;
        height: 96px;
    }
}
@media (max-width: 480px) {
    body.tfi-arena .cp-profile .cp-portrait > .cp-avatar-images {
        width: 96px;
        height: 96px;
    }
    body.tfi-arena .cp-profile .cp-guild-crest > img {
        width: 88px;
        height: 88px;
    }
}

.cp-locked .cp-medal-emblem {
    filter: grayscale(1) drop-shadow(0 3px 4px #0008);
}
