/*
 * ============================================================
 * XMAFIA R3.53 — ORIGINAL USER PROFILE
 *
 * Immutable graphics: original SWF.
 * Dynamic text/layout: UserProfilePanel.as.
 * ============================================================
 */

.xmafia-profile-r353 {
    position: absolute;

    left: 0;
    top: 0;

    width: 820px;
    height: 660px;

    overflow: hidden;

    z-index: 160;

    font-family: Arial, sans-serif;

    pointer-events: auto;
}


.xmafia-profile-original-layer {
    position: absolute;

    left: 0;
    top: 0;

    max-width: none;

    transform-origin: 0 0;

    pointer-events: none;
    user-select: none;

    -webkit-user-drag: none;
}


/*
 * symbol373.infoContainer / character359
 *
 * PlaceObject:
 * x = 160.10
 * y = 68.05
 */
.xmafia-profile-info {
    position: absolute;

    left: 160.1px;
    top: 68.05px;

    width: 430px;
    height: 500px;

    z-index: 1000;

    pointer-events: none;
}


.xmafia-profile-field {
    position: absolute;

    box-sizing: border-box;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    color: #cccccc;

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 14px;

    white-space: normal;

    overflow: hidden;

    pointer-events: none;
}


.xmafia-profile-nick {
    color: #ffffff;

    font-size: 16px;
    font-weight: bold;

    line-height: 19px;
}


.xmafia-profile-slogan {
    color: #ffe799;

    line-height: 14px;
}


.xmafia-profile-total {
    color: #cccccc;

    font-family: Cambria, serif;
    font-size: 16px;

    line-height: 19px;
}


.xmafia-profile-point-title {
    color: #cccccc;
}


.xmafia-profile-stat-title {
    color: #cccccc;

    font-weight: bold;
}


.xmafia-profile-stat-cell {
    height: 18px;

    color: #cccccc;

    line-height: 18px;
}


.xmafia-profile-avatar-holder {
    position: absolute;

    left: 0.5px;
    top: 0.5px;

    width: 99px;
    height: 99px;

    overflow: hidden;

    pointer-events: none;
}


.xmafia-profile-avatar {
    display: block;

    width: auto;
    height: auto;

    min-width: 99px;
    min-height: 99px;

    pointer-events: none;
}


/*
 * Exact hit owners are generated from original frame-1 SVG bounds.
 * No visual HTML button is drawn.
 */
.xmafia-profile-control-hit {
    position: absolute;

    z-index: 3000;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    cursor: pointer;
}

/* ============================================================
   XMAFIA_R53_PRESENTS_IN_PROFILE

   Original PresentsInProfile:
       x = 370
       y = 0

   Received presents:
       y = index * 60
       maximum = 4 visible

   BtnAllPresentsMC:
       x = 10
       y = 4 * 60 + 20 = 260
   ============================================================ */

.xmafia-profile-presents-compact {
    position: absolute;

    left: 370px;
    top: 0;

    width: 78px;
    height: 300px;

    z-index: 120;

    pointer-events: auto;
}

.xmafia-profile-present-slot {
    position: absolute;

    left: 0;

    width: 60px;
    height: 60px;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    font-size: 30px;
    line-height: 60px;
    text-align: center;

    cursor: pointer;
}

.xmafia-profile-presents-all {
    position: absolute;

    left: 10px;
    top: 260px;

    width: 68px;
    height: 28px;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #dedfde;

    font: 11px Arial, sans-serif;

    cursor: pointer;
}

/* ============================================================
   XMAFIA_R62_PROFILE_LAYER_NORMALIZATION

   Profile controls belong to their own panel and must not float
   above unrelated Main / Wall / VIP controls.
   ============================================================ */

.xmafia-profile-control-hit {
    z-index: 120 !important;
    pointer-events: auto;
}

.xmafia-profile-panel,
.xmafia-user-profile-panel {
    isolation: isolate;
}

/* ============================================================
   XMAFIA_R65_OWN_PROFILE_QA
   ============================================================ */

body[data-xmafia-ui="qa"]
.xmafia-profile-control-hit[data-control="btnEdit"],
body[data-xmafia-ui="qa"]
.xmafia-profile-control-hit[data-control="btnChangeAvatar"],
body[data-xmafia-ui="qa"]
.xmafia-profile-control-hit[data-control="btnPresent"],
body[data-xmafia-ui="qa"]
.xmafia-profile-control-hit[data-control="btnClose"] {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    border: 2px solid #31d17c !important;

    background: rgba(20,90,60,.75) !important;

    overflow: visible !important;
}

body[data-xmafia-ui="qa"]
.xmafia-profile-control-hit[data-control="btnEdit"]::after {
    content: "EDIT";
}

body[data-xmafia-ui="qa"]
.xmafia-profile-control-hit[data-control="btnChangeAvatar"]::after {
    content: "AVATAR";
}

body[data-xmafia-ui="qa"]
.xmafia-profile-control-hit[data-control="btnPresent"]::after {
    content: "PRESENT";
}

body[data-xmafia-ui="qa"]
.xmafia-profile-control-hit[data-control="btnClose"]::after {
    content: "CLOSE";
}

body[data-xmafia-ui="qa"]
.xmafia-profile-control-hit[data-control]::after {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    color: #fff;

    font: bold 9px/1 Arial, sans-serif;

    text-shadow: 0 1px 2px #000;

    pointer-events: none;
}
