body {
    background-color: #F2F2F2;
}

.profile-container {
    max-width: 970px;
    margin: 0 auto;
    font-size: 16px;
    color: #191919;
}

.profile-container h2,
.profile-container h3 {
    line-height: 1em;
    margin: 0;
    padding: 5px 0;
}

.profile-container h2 {
    font-size: 30px;
    font-weight: 400;
}

.profile-container h3 {
    font-size: 24px;
    font-weight: 300;
}

.profile-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-container .clearfix::after,
.profile-header .profile-header-top::after,
.profile-header .header-details::after,
.profile-header .details-info::after,
.profile-header .details-actions::after,
.profile-about-footer::after,
.profile-avatar::after,
.profile-stats-container::after,
.profile-game .game-grid::after,
.profile-game .rbx-switcher-item::after {
    content: " ";
    display: table;
    clear: both;
}

.profile-header .profile-avatar-image {
    float: left;
    position: relative;
    margin-right: 12px;
}

.profile-header .avatar-image-link {
    display: block;
    border: 1px solid #B8B8B8;
}

.profile-header .avatar-image-link img {
    display: block;
    width: 110px;
    height: 110px;
}

.profile-header .header-title {
    display: inline-block;
}

.profile-header .header-title h2 {
    display: inline-block;
    margin: 0 12px 0 0;
    overflow-wrap: anywhere;
}

.profile-header .header-userstatus {
    margin: 6px 0;
    overflow: hidden;
    font-weight: 400;
    color: #191919;
}

.profile-header .header-userstatus span {
    display: inline-block;
    width: 100%;
    height: 1em;
}

.profile-header .header-details {
    position: relative;
}

.profile-header .details-info {
    float: left;
    width: 36%;
}

.profile-header .details-info li {
    float: left;
    width: 33%;
    padding: 0 5px;
    text-align: center;
}

.profile-header .details-info .text-name {
    display: block;
}

.profile-header .details-actions {
    float: right;
    width: 45%;
}

.profile-header .details-actions li {
    float: right;
    padding: 0 5px;
    text-align: center;
}

.profile-header .profile-header-more {
    position: absolute;
    top: 0;
    right: 6px;
}

.profile-header .profile-header-more .rbx-menu-item {
    display: inline-block;
    padding: 6px;
}

.profile-header .dropdown-menu {
    min-width: 105px;
    margin: 0;
    padding: 0;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 0;
    box-shadow: 0 -5px 20px rgba(25, 25, 25, 0.15);
}

.profile-header .dropdown-menu a {
    display: block;
    padding: 10px 12px;
    color: #191919;
    text-decoration: none;
}

.profile-header .dropdown-menu a:hover,
.profile-header .dropdown-menu a:focus {
    background-color: #fff;
    box-shadow: 4px 0 0 0 #7B2CBF inset;
}

.profile-about .profile-about-content {
    position: relative;
    padding-bottom: 5px;
}

.profile-about p {
    position: relative;
    margin: 0;
    line-height: 1.5em;
    overflow: hidden;
    white-space: normal;
}

.profile-about p.para-height {
    max-height: 72px;
}

.profile-about p.para-overflow-toggle::after {
    content: "...";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 80px;
    height: 24px;
    background-color: #fff;
}

.profile-about p.para-overflow-toggle-off {
    max-height: none;
    overflow: visible;
}

.profile-about p.para-overflow-toggle-off::after {
    content: "";
}

.profile-about .toggle-para {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding-left: 6px;
    color: #7B2CBF;
    background-color: #fff;
    cursor: pointer;
}

.profile-about .toggle-para:hover {
    text-decoration: underline;
}

.profile-about-content-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.profile-about-footer {
    border-top: 1px solid #B8B8B8;
    padding: 5px 0 0;
}

.profile-about-footer .abuse-report-link {
    float: right;
    text-decoration: none;
}

.profile-about-footer .abuse-report-link:hover {
    text-decoration: underline;
}

/* currently wearing */
.profile-avatar {
    margin-bottom: 18px;
}

.profile-avatar-left,
.profile-avatar-right {
    float: left;
    width: 50%;
    height: 300px;
}

.profile-avatar-left {
    position: relative;
    padding: 0 12px;
    text-align: center;
    background-color: #fff;
}

.profile-avatar-left .thumbnail-span {
    display: inline-block;
    width: 300px;
    height: 300px;
    max-width: 100%;
}

.profile-avatar-left .thumbnail-span img {
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
}

.profile-avatar-right {
    position: relative;
    background-color: #7B2CBF;
}

.profile-avatar-right .profile-avatar-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 18px;
    background-color: rgba(117, 117, 117, 0.5);
}

.profile-accoutrements-container {
    height: 260px;
    overflow: hidden;
}

.profile-accoutrements-slider {
    height: 220px;
    margin: 12px 0 6px;
    overflow: hidden;
}

.accoutrement-items-container {
    float: left;
}

.accoutrement-item {
    float: left;
    padding: 5px;
    text-align: center;
}

.accoutrement-item a {
    display: inline-block;
    background-color: #fff;
    border-radius: 3px;
}

.accoutrement-item .accoutrement-image {
    width: 100px;
    height: 100px;
    border-radius: 3px;
}

.accoutrement-empty {
    padding: 5px;
    color: #fff;
}

/* statistics */
.profile-stats-container .profile-stat {
    float: left;
    width: 33.3333%;
    text-align: center;
}

.profile-stats-container .profile-stat .text-label {
    margin: 0;
    white-space: nowrap;
}

.profile-stats-container .profile-stat .text-lead {
    margin: 0 0 12px;
}

/* creations */
.profile-game {
    margin-bottom: 20px;
}

.profile-game .container-buttons {
    float: right;
}

.profile-game .profile-view-selector {
    padding: 2px 20px 0 20px;
    margin-left: 4px;
}

.profile-game .profile-view-selector span {
    display: inline-block;
    vertical-align: middle;
}

/* slideshow view */
.profile-game .rbx-switcher {
    position: relative;
    margin-bottom: 18px;
}

.profile-game .slide-switcher.games {
    background-color: #118237;
}

.profile-game .rbx-switcher-items {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.profile-game .rbx-switcher-item {
    position: relative;
    display: none;
    width: 100%;
    z-index: 0;
}

.profile-game .rbx-switcher-item.active {
    display: block;
    z-index: 1;
}

.profile-game .profile-slide-item-left {
    float: left;
    width: 50%;
    height: 300px;
}

.profile-game .slide-item-emblem-container {
    width: 280px;
    height: 280px;
    margin: 10px auto 0;
    text-align: center;
}

.profile-game .game-item-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.49);
}

.profile-game .profile-slide-item-right {
    position: relative;
    float: right;
    width: 50%;
    height: 300px;
    padding: 20px 50px 20px 40px;
    background-color: #fff;
}

.profile-game .slide-item-info {
    overflow: hidden;
}

.profile-game .slide-item-name {
    border-bottom: 1px solid #fff;
}

.profile-game .slide-item-name a {
    color: #191919;
    text-decoration: none;
}

.profile-game .slide-item-description {
    position: relative;
    height: 100px;
    margin: 0;
    padding: 5px 0 0;
    border-top: 1px solid #B8B8B8;
    overflow: hidden;
    white-space: pre-wrap;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5em;
}

.profile-game .slide-item-description::after {
    content: "...";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 32px;
    height: 24px;
    background-color: #fff;
}

.profile-game .slide-item-stats {
    position: absolute;
    bottom: 36px;
    width: calc(100% - 90px);
}

.profile-game .slide-item-stats .list-item {
    float: left;
    width: 50%;
    text-align: left;
}

.profile-game .slide-item-stats p {
    margin: 0;
}

.profile-game .rbx-switcher-control {
    display: none;
    position: absolute;
    top: calc(50% - 24px);
    width: 48px;
    height: 48px;
    z-index: 1000;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: rgba(25, 25, 25, 0.3);
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease-in-out;
}

.profile-game .rbx-switcher:hover .rbx-switcher-control {
    display: block;
}

.profile-game .rbx-switcher-control:hover {
    background-color: rgba(25, 25, 25, 0.75);
}

.profile-game .rbx-switcher-control.left {
    left: 18px;
}

.profile-game .rbx-switcher-control.right {
    right: 18px;
}

.profile-game .rbx-switcher-control span {
    display: block;
    margin: 8px auto;
}

/* grid view */
.profile-game .rbx-game {
    float: left;
    width: 16.6667%;
    min-width: 140px;
    height: 221px;
    margin-bottom: 12px;
    padding: 0 4px;
    text-align: center;
}

.profile-game .rbx-game-item {
    position: relative;
    width: 100%;
    min-width: 123px;
    margin: 0 auto;
    padding: 9px 6px 6px 6px;
    text-align: left;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(150, 150, 150, 0.74);
}

.profile-game .rbx-game-item-link {
    display: block;
    color: #191919;
    text-decoration: none;
}

.profile-game .rbx-game-thumb-content {
    position: relative;
    display: inline-block;
    height: 140px;
}

.profile-game .rbx-game-thumb-wrapper {
    display: inline-block;
    height: 140px;
    margin: auto;
    overflow: hidden;
}

.profile-game .rbx-game-thumb {
    display: block;
    height: 100%;
    width: auto;
    margin: auto;
}

.profile-game .rbx-game-title {
    display: block;
    width: 132px;
    margin: 1px 3px 0 3px;
    font-weight: 300;
    line-height: 1.2em;
    white-space: nowrap;
}

.profile-not-found {
    margin-top: 40px;
}

@media (max-width: 991px) {
    .profile-container {
        margin: 0 5px;
    }

    .profile-header .details-actions li .rbx-btn-control-sm,
    .profile-header .details-actions li .rbx-btn-primary-sm {
        padding: 9px 5px;
    }

    .profile-stats-container .profile-stat .text-label {
        margin: 12px 6px;
    }

    .profile-game .profile-slide-item-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .profile-game .slide-item-name {
        font-size: 24px;
    }

    .profile-game .game-item-image {
        border-radius: 9px;
    }
}

@media (max-width: 767px) {
    .profile-container h2 {
        font-size: 24px;
    }

    .profile-container h3 {
        font-size: 21px;
    }

    .profile-header .header-title {
        padding-top: 12px;
    }

    .profile-header .header-title h2 {
        margin: 0 12px;
    }

    .profile-header .header-details {
        display: inline-block;
        padding-left: 4px;
        padding-top: 3px;
    }

    .profile-header .details-info {
        float: none;
        width: 100%;
    }

    .profile-header .details-actions {
        width: 100%;
        margin-top: 6px;
    }

    .profile-avatar-right {
        height: auto;
        padding: 0;
    }

    .profile-avatar-right .profile-avatar-mask {
        position: relative;
        padding: 0 0 0 8px;
    }

    .profile-accoutrements-container {
        height: 145px;
    }

    .profile-accoutrements-slider {
        height: 95px;
    }

    .accoutrement-item .accoutrement-image {
        width: 85px;
        height: 85px;
    }

    .profile-stats-container .profile-stat {
        width: 100%;
        margin: 0 0 12px;
    }

    .profile-stats-container .profile-stat::after {
        content: " ";
        display: table;
        clear: both;
    }

    .profile-stats-container .profile-stat .text-label {
        display: inline-block;
        float: left;
        width: 45%;
        margin: 0;
        text-align: left;
    }

    .profile-stats-container .profile-stat .text-lead {
        display: inline-block;
        width: 45%;
        margin: 0;
        text-align: left;
    }

    .profile-game .profile-slide-item-left {
        width: 30%;
    }

    .profile-game .profile-slide-item-right {
        width: 70%;
    }

    .profile-game .slide-item-emblem-container {
        width: 70%;
        height: auto;
        margin: 10% 20%;
    }

    .profile-game .game-item-image {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .profile-header .profile-avatar-image {
        width: 25%;
        margin-right: 0;
        margin-bottom: 12px;
        padding-top: 12px;
    }

    .profile-header .avatar-image-link img {
        width: 100%;
        height: auto;
    }

    .profile-header .header-title {
        float: right;
        width: 75%;
        overflow: hidden;
        padding-left: 12px;
    }

    .profile-header .header-title h2 {
        margin: 0;
    }

    .profile-header .header-userstatus {
        font-size: 14px;
        font-weight: 300;
    }

    .profile-header .details-actions li {
        width: 100%;
    }

    .profile-header .details-actions li .rbx-btn-control-sm {
        width: 100%;
        margin: 6px auto;
    }

    .profile-avatar-left,
    .profile-avatar-right {
        width: 100%;
    }

    .profile-game .rbx-switcher-items {
        height: auto;
    }

    .profile-game .profile-slide-item-left,
    .profile-game .profile-slide-item-right {
        width: 100%;
        height: auto;
        display: block;
    }

    .profile-game .profile-slide-item-right {
        padding-top: 0;
        min-height: 220px;
    }

    .profile-game .slide-item-emblem-container {
        width: 35%;
        margin: 0 auto;
        padding: 3% 0;
    }

    .profile-game .slide-item-name {
        font-size: 21px;
    }

    .profile-game .slide-item-description {
        height: auto;
        max-height: 85px;
        font-size: 14px;
    }
}
/* earned badges */
.profile-badge-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.profile-badge-list li { width: 92px; text-align: center; }
.profile-badge-list a { color: #333; text-decoration: none; font-size: 12px; }
.profile-badge-list img { display: block; width: 82px; height: 82px; margin: 0 auto 5px; object-fit: contain; border: 1px solid #ccc; background: #f6f6f6; }
.profile-badge-list span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
