* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-width: 400px;
    min-height: 100%;
}

body {
    background: var(--bg-body);
    color: var(--text-white);
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    overflow: hidden;
}

button {
    border: 0;
    font: inherit;
}

.chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--chat-width);
    height: 100vh;
    overflow: hidden;
    background: var(--section-bg);
    box-shadow: -10px 0 26px var(--panel-shadow);
}

.chat-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 8px;
    background: var(--br-bg);
    border-bottom: 1px solid var(--border-transparent);
}


.chat-title,
.chat-actions,
.message-head,
.shared-user,
.auth-bar {
    display: flex;
    align-items: center;
}

.chat-title {
    gap: 8px;
    font-size: 15px;
}

.chat-title .globe {
    font-size: 16px;
    line-height: 1;
}

.chat-title i {
    color: var(--icon-color);
    font-size: 12px;
    margin-left: 1px;
}

.global-channel {
    position: relative;
}

.channel-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--text-white);
    background: transparent;
    font-size: 15px;
    cursor: pointer;
}

.channel-toggle::after {
    display: none;
}

.channel-toggle .globe {
    font-size: 16px;
    line-height: 1;
}

.channel-toggle>i {
    color: var(--icon-color);
    font-size: 12px;
    margin-left: 1px;
    transition: transform .2s ease;
}

.global-channel.show .channel-toggle>i {
    transform: rotate(180deg);
}

.channel-menu {
    width: 140px;
    min-width: 140px;
    margin-top: 8px !important;
    padding: 6px 7px;
    border: 0;
    border-radius: 0 0 8px 8px;
    background: var(--secondary-color);
    box-shadow: 0 8px 18px var(--button-shadow);
}

.channel-item {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    color: var(--text-white);
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.channel-icon img {
    width: 18px;
}

.channel-item:hover,
.channel-item.active {
    background: var(--other-bg);
}

.channel-item strong {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.channel-icon {
    width: 18px;
    flex: 0 0 18px;
    font-size: 15px;
    text-align: center;
}

.vip-crown {
    color: var(--gold);
    font-size: 16px;
}

.channel-lock {
    color: var(--muted);
    font-size: 12px;
}

.channel-item.disabled {
    color: var(--muted);
    opacity: .55;
    cursor: not-allowed;
}

.chat-actions {
    gap: 15px;
}

.icon-button {
    position: relative;
    padding: 0;
    color: var(--icon-color);
    background: transparent;
    font-size: 19px;
    cursor: pointer;
}

.icon-button.close-button {
    font-size: 18px;
    color: var(--icon-color);
}

.chat-settings {
    position: relative;
}

.chat-settings .dropdown-toggle::after {
    display: none;
}

.chat-settings-menu {
    width: 216px;
    min-width: 216px;
    margin-top: 8px !important;
    padding: 6px 0;
    border: 0;
    border-radius: 0 0 9px 9px;
    background: var(--scroll-track);
    box-shadow: 0 8px 18px var(--button-shadow);
}

.chat-settings-menu .chat-setting-row {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    color: var(--text-white);
    cursor: pointer;
}

.chat-settings-menu .chat-setting-row:hover {
    background: var(--other-bg);
}

.chat-settings-menu .chat-setting-row strong {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.chat-settings-menu .setting-icon {
    width: 18px;
    flex: 0 0 18px;
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
}

.chat-settings-menu .setting-gif {
    height: 16px;
    border-radius: 3px;
    background: var(--text-light);
    color: var(--secondary-color);
    font-size: 9px;
    font-weight: 800;
    line-height: 16px;
}

.chat-settings-menu .setting-font {
    font-size: 15px;
    font-weight: 700;
}

.chat-settings-menu .setting-switch {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.chat-settings-menu .setting-toggle {
    width: 34px;
    height: 20px;
    position: relative;
    flex: 0 0 34px;
    border-radius: 12px;
    background: var(--level-bg);
    transition: background .2s ease;
}

.chat-settings-menu .setting-toggle::after {
    content: "";
    width: 16px;
    height: 16px;
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    background: var(--text-light);
    transition: transform .2s ease, background .2s ease;
}

.chat-settings-menu .setting-switch:checked+.setting-toggle {
    background: var(--primary-color);
}

.chat-settings-menu .setting-switch:checked+.setting-toggle::after {
    background: var(--text-white);
    transform: translateX(14px);
}

.chat-settings-menu .settings-divider {
    height: 1px;
    margin: 6px 0;
    background: var(--header-border);
}

.chat-settings-menu .ignore-list {
    border: 0;
    background: transparent;
    color: var(--text-light);
    text-align: left;
}

.chat-settings-menu .ignore-list .setting-icon {
    color: var(--muted);
    font-size: 16px;
}


.chat-feed {
    height: calc(100vh - 47px);
    overflow-y: auto;
    padding: 50px 10px 82px 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-track) transparent;
}

.chat-feed::-webkit-scrollbar {
    width: 5px;
}

.chat-feed::-webkit-scrollbar-thumb {
    background: var(--scroll-track);
    border-radius: 4px;
}

.after-login-page .load-more-btn {
    color: var(--text-white);
    background: var(--btn-bg);
    margin-left: 13px;
    margin-top: 12px;
    border-radius: 5px;
    position: absolute;
}

.top-players {
    display: flex;
    justify-content: flex-end;
    height: 42px;
    margin: -18px 0 3px;
    padding-right: 1px;
    position: absolute;
    right: 16px;
    top: 73px;
}

.mini-avatar {
    width: 32px;
    height: 32px;
    margin-left: -5px;
    position: relative;
    z-index: 1;
    display: block;
    padding: 0;
    border: 2px solid var(--pink);
    border-radius: 50%;
    background: var(--avatar-bg);
    overflow: visible;
    animation: player-avatar-zoom 2.4s cubic-bezier(.45, 0, .55, 1) infinite;
    cursor: pointer;
}

.mini-avatar:nth-child(2) {
    animation-delay: .8s;
}

.mini-avatar:nth-child(3) {
    animation-delay: 1.6s;
}

.mini-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mini-avatar span {
    position: absolute;
    right: -4px;
    bottom: -4px;
    background: var(--level-bg);
    color: var(--text-white);
    border-radius: 8px;
    padding: 0 4px;
    font-size: 9px;
}

@keyframes player-avatar-zoom {

    0%,
    20%,
    100% {
        transform: scale(1);
    }

    8% {
        transform: scale(1.12);
    }

    14% {
        transform: scale(1.05);
    }
}

.message-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 8px;
    min-height: 56px;
}

.message-like {
    width: 22px;
    min-width: 22px;
    align-self: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    color: var(--icon-color);
    background: transparent;
    cursor: pointer;
}

.message-like i { font-size: 16px; line-height: 1; }
.message-like span { color: var(--time-text); font-size: 10px; line-height: 1; }
.message-like.is-liked i, .message-like.is-liked span { color: var(--danger); }

.profile-ring {
    width: 36px;
    min-width: 36px;
    height: 36px;
    position: relative;
    padding: 3px;
    align-self: center;
    border: 0;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color, var(--text-primary)) var(--strength, 50%), var(--ring-track) 0);
}

.profile-ring::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: 0;
    border-radius: 50%;
    background: var(--text-dark);
}

.profile-ring img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-ring img {
    position: relative;
    z-index: 1;
}

.profile-ring b {
    position: absolute;
    left: 8px;
    bottom: -8px;
    min-width: 17px;
    padding: 1px 4px;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--text-white);
    font-size: 10px;
    line-height: 13px;
    text-align: center;
}

.ring-green {
    --ring-color: var(--green);
}

.ring-green b {
    background: var(--green-badge);
}

.ring-gold {
    --ring-color: var(--gold);
}

.ring-gold b {
    background: var(--red-badge);
}

.ring-gray {
    --ring-color: var(--gray-ring);
}

.message-bubble {
    width: 88%;
    min-height: 76px;
    padding: 9px 12px;
    border: 1px solid var(--border-transparent);
    border-radius: 12px;
    background: var(--br-bg);
    overflow: hidden;
    position: relative;
}

.message-bubble.compact {
    min-height: 56px;
}

.message-head {
    justify-content: space-between;
    min-height: 17px;
    min-width: 0;
    color: var(--text-white);
    font-size: 13px;
}

.message-head strong {
    font-weight: 600;
}

.message-tools {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    color: var(--icon-color);
    font-size: 14px;
}
.message-tools button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--icon-color);
}

.message-bubble p {
    margin: 4px 0 0;
    color: var(--text-light);
    line-height: 1.3;
    font-size: 14px;
}

.shared-message {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    padding-left: 8px;
    border-left: 2px solid var(--shared-border);
    color: var(--shared-text);
    line-height: 1.25;
}

.shared-message span,
.shared-user span {
    color: var(--muted);
}

.shared-user {
    gap: 7px;
    margin-top: 8px;
}

.shared-user img {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    object-fit: cover;
}

.shared-user div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 12px;
}

.media-row {
    align-items: flex-start;
}

.media-row .profile-ring {
    margin-top: 12px;
}

.media-bubble {
    padding-bottom: 9px;
}

.media-placeholder {
    width: 100%;
    max-width: 52%;
    aspect-ratio: 218 / 148;
    height: auto;
    position: relative;
    margin-top: 8px;
    border-radius: 5px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.media-placeholder i {
    color: var(--media-icon);
    font-size: 31px;
    opacity: .8;
}

.purple-media {
    background: radial-gradient(circle at 30% 34%, var(--purple-light) 0 4%, transparent 5%), radial-gradient(circle at 60% 35%, var(--purple-dark) 0 16%, transparent 17%), linear-gradient(145deg, var(--purple-deep), var(--purple-mid) 48%, var(--media-navy) 49%, var(--media-blue));
}

.coral-media {
    aspect-ratio: 218 / 151;
    background: radial-gradient(ellipse at 55% 50%, var(--coral-light), var(--coral-mid) 42%, var(--coral-dark) 80%);
}

.time-divider {
    margin: 4px 7px 9px 250px;
    color: var(--time-text);
    font-size: 10px;
    white-space: nowrap;
}

.last-row {
    margin-bottom: 15px;
}

.scroll-button {
    position: absolute;
    right: 16px;
    bottom: 80px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--scroll-text);
    background: var(--scroll-button);
    font-size: 18px;
    box-shadow: 0 3px 8px var(--button-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.after-login-page .scroll-button { position: absolute; }
.after-login-page .scroll-unread-count {
    position: absolute;
    top: -13px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-white);
    background: var(--green);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    transform: translateX(-50%);
    left: 50%;
}


.auth-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    gap: 16px;
    height: 64px;
    padding: 9px 6px;
    background: var(--section-bg);
    border-top: 1px solid var(--border-transparent);
    z-index: 9999;
    width: 100%;
}


.auth-button {
    flex: 1 1 0;
    width: auto;
    height: 47px;
    border-radius: 8px;
    color: var(--text-white);
    font-weight: 700;
    box-shadow: inset 0 1px 2px var(--footer-button-highlight), 0 2px 4px var(--button-shadow);
    cursor: pointer;
}

.after-login-page .auth-bar {
    gap: 4px;
    height: 70px;
    padding: 9px 10px 10px;
    background: var(--br-bg);
    border-top: 1px solid var(--border-transparent);
}


.after-login-page .composer-add,
.after-login-page .composer-send,
.after-login-page .composer-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.after-login-page .composer-add {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--border-transparent);
    border-radius: 50%;
    color: var(--text-white);
    background: var(--modal-panel);
    font-size: 20px;
}

.after-login-page .composer-input-wrap {
    min-width: 0;
    height: 44px;
    position: relative;
    flex: 1;
    border: 1px solid var(--border-transparent);
    border-radius: 22px;
    background: var(--modal-panel);
}

.after-login-page .composer-input {
    width: 100%;
    height: 100%;
    padding: 0 42px 0 16px;
    border: 0;
    outline: 0;
    border-radius: inherit;
    color: var(--text-white);
    background: transparent;
    font-size: 12px;
}

.after-login-page .composer-input::placeholder { color: var(--modal-copy); }
.after-login-page .composer-emoji { width: 36px; height: 40px; position: absolute; top: 0; right: 3px; color: var(--text-light); background: transparent; font-size: 21px; }
.after-login-page .composer-send { width: 42px; min-width: 42px; height: 42px; border-radius: 50%; color: var(--text-white); background: var(--primary-color); font-size: 18px; }
.after-login-page .composer-picker { width: 320px; height: 350px; position: absolute; z-index: 20; right: 0; bottom: calc(100% + 9px); --background: var(--modal-bg); --border-color: var(--border-transparent); --button-hover-background: var(--modal-panel); --category-button-color: var(--modal-copy); --category-button-active-color: var(--text-primary); --indicator-color: var(--text-primary); --input-border-color: var(--border-transparent); --input-font-color: var(--text-white); --input-placeholder-color: var(--modal-copy); --outline-color: var(--text-primary); --outline-size: 2px; }
.after-login-page .attachment-file-input { display: none; }
.after-login-page .attachment-menu {
    width: 100%;
    position: absolute;
    z-index: 25;
    bottom: 70px;
    left: 0;
    padding: 8px 15px;
    border: 1px solid var(--border-transparent);
    border-radius: 0;
    background: var(--br-bg);
    box-shadow: 0 12px 30px var(--button-shadow);
}
.after-login-page .attachment-menu-head, .after-login-page .attachment-picker-title, .after-login-page .attachment-preview-head { display: flex; align-items: center; justify-content: space-between; }
.after-login-page .attachment-menu-head {
    margin-bottom: 5px;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 300;
}
.after-login-page .attachment-close, .after-login-page .attachment-remove { padding: 2px; border: 0; color: var(--text-light); background: transparent; cursor: pointer; }
.attachment-options {
    width: 100%;
}
.attachment-options img{
    max-height: 100px;
    max-width: 100%;
    width: auto;
    height: auto;   
}


.login {
    background: linear-gradient(var(--login-start), var(--login-end));
}
.signup {
    background: linear-gradient(var(--signup-start), var(--signup-end));
}

.reply-preview {
    width: 100%;
    position: absolute;
    z-index: 25;
    bottom: 69px;
    left: 0;
    padding: 8px 15px;
    border: 1px solid var(--border-transparent);
    border-radius: 0;
    background: #1a1443;
    box-shadow: 0 12px 30px var(--button-shadow);
    border-left: 3px solid #644bff;
}

.reply-preview .reply-preview-content {
    display: flex;
    justify-content: space-between;
    position: relative;
      flex-wrap: wrap;
}
.reply-preview .reply-preview-content .reply-preview-message {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width:calc(100% - 80px);
}
.reply-preview .reply-preview-content .reply-preview-image {
    display: flex;
    width: 80px;
    justify-content: end;
    padding-right: 16px;
}
.reply-preview .reply-preview-content .reply-preview-image img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    opacity: .7;
}
.reply-preview button {
    position: absolute;
    top: 7px;
    right: 9px;
    background: no-repeat;
    color: #fff;
    padding: 0px;
    border: none;
}





.modal {
    --bs-modal-bg: var(--modal-bg);
    --bs-modal-border-width: 0;
    --bs-modal-border-radius: 10px;
}

.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: var(--modal-bg);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}

.modal-header {
    min-height: 59px;
    padding: 13px 15px;
    border: 0;
    background: var(--primary-color);
}

.modal-title {
    margin: 0;
    color: var(--text-white);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.3px;
}

.modal-close {
    padding: 0;
    color: var(--text-light);
    background: transparent;
    font-size: 16px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    background: var(--modal-bg);
}

.modal-backdrop {
    background-color: var(--text-dark);
}

.generous-modal {
    --bs-modal-width: 360px;
}

.generous-modal .modal-dialog {
    width: min(360px, calc(100% - 28px));
    max-width: 360px;
    min-height: 0;
    margin: 14px auto;
}

.generous-modal .generous-copy {
    margin: 0 0 20px;
    color: var(--modal-copy);
    font-size: 14px;
    line-height: 1.45;
}

.generous-modal .leader-period {
    width: max-content;
    margin: 0 auto 0;
    padding: 4px 11px;
    border-radius: 7px 7px 0 0;
    color: var(--text-white);
    background: var(--modal-panel);
    font-size: 12px;
    font-weight: 600;
}

.generous-modal .leader-period i {
    margin-right: 3px;
    color: var(--muted);
}

.generous-modal .podium {
    height: 171px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 15px 9px 12px;
    border-radius: 7px;
    background: var(--modal-panel);
}

.generous-modal .podium-user {
    width: 31%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-white);
    text-align: center;
}

.generous-modal .podium-user strong {
    max-width: 100%;
    margin-top: 6px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.generous-modal .podium-user span {
    color: var(--text-light);
    font-size: 11px;
    white-space: nowrap;
}

.generous-modal .podium-avatar {
    width: 50px;
    height: 50px;
    padding: 0px;
    border: 3px solid var(--modal-silver);
    border-radius: 50%;
    background: var(--modal-bg);
}

.generous-modal .podium-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.generous-modal .podium-second .podium-avatar {
    border-color: var(--modal-silver);
    position: relative;
}

.generous-modal .podium-third .podium-avatar {
    border-color: var(--modal-bronze);
    position: relative;
}

.generous-modal .podium-second .podium-avatar img.img-shadow {
    box-shadow: 0 0 30px #a5c7fd;
}

.generous-modal .podium-third .podium-avatar img.img-shadow {
    box-shadow: 0 0 30px #d9783d
}

.generous-modal .podium-avatar img.laurel {
    position: absolute;
    width: 75px;
    height: 66px;
    left: 50%;
    transform: translateX(-50%);
    bottom: -16px;
}

.generous-modal .podium-first {
    margin-bottom: 15px;
}

.generous-modal .laurel-avatar .podium-avatar-image {
    width: 49px;
    height: 49px;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px #ffb636;
}

.generous-modal .laurel-avatar {
    width: 88px;
    height: 69px;
    position: relative;
    display: grid;
    place-items: center;
}

.generous-modal .laurel {
    position: absolute;
    width: 114px;
    height: 90px;
    object-fit: contain;
    z-index: 2;
    bottom: -17px;
}

.generous-modal .laurel-avatar .podium-avatar-image {
    width: 65px;
    height: 65px;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(131.88deg, #ffe06a 13.94%, #eb8f1b 86.62%);
    padding: 4px;
}

.generous-modal .all-time {
    margin-top: 21px;
}

.generous-modal .leader-table {
    overflow: hidden;
    border-radius: 7px;
    background: var(--modal-panel);
}

.generous-modal .leader-row {
    min-height: 40px;
    display: grid;
    grid-template-columns: 32px 24px 1fr auto;
    align-items: center;
    gap: 7px;
    padding: 3px 15px;
    border-bottom: 1px solid var(--modal-row-line);
    color: var(--text-white);
}

.generous-modal .leader-row:last-child {
    border-bottom: 0;
}

.generous-modal .leader-row>img:first-child {
    width: 28px;
    max-height: 25px;
    object-fit: contain;
}

.generous-modal .leader-row .row-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.generous-modal .leader-row strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.generous-modal .leader-row b {
    font-size: 11px;
    white-space: nowrap;
}

.generous-modal .rank-number {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.profile-modal .modal-dialog {
    width: min(490px, calc(100% - 28px));
    max-width: 490px;
    margin: 14px auto;
}

.profile-summary {
    display: flex;
    align-items: self-start;
    gap: 22px;
    min-height: 145px;
}

.profile-summary-avatar { width: 108px; min-width: 108px; height: 118px; position: relative; display: grid; place-items: center; }
.profile-summary-avatar.profile-strength-green { width: 112px; min-width: 112px; height: 112px; padding: 4px; border-radius: 50%; background: conic-gradient(var(--green) var(--strength, 78%), var(--ring-track) 0); }
.profile-summary-avatar img {
    width: 100%;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
}
.profile-summary-avatar span { position: absolute; top: -1px; left: 43px; color: var(--modal-gold); font-size: 25px; line-height: 1; }
.profile-summary-avatar span i { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.profile-summary-avatar b {
    padding: 3px 14px;
    border-radius: 22px;
    color: var(--text-white);
    background: var(--danger);
    font-size: 10px;
    margin-top: 14px;
}

.profile-summary-avatar.profile-strength-green span { display: none; }
.profile-summary-copy { min-width: 0; flex: 1; }
.profile-summary-copy small { color: var(--modal-copy); font-size: 11px; font-weight: 600; }
.profile-summary-copy h3 { margin: 5px 0 10px; color: var(--text-white); font-size: 29px; line-height: 1; }
.profile-summary-copy h3 em { padding: 4px 7px; border-radius: 6px; color: var(--text-white); background: var(--gold); font-size: 10px; font-style: normal; vertical-align: middle; white-space: nowrap; }
.profile-summary-copy h3 em i { margin-right: 3px; font-size: 9px; }
.profile-chat-status { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; color: var(--modal-copy); background: var(--modal-panel); }
.profile-chat-status > i:first-child { color: var(--icon-color); }
.profile-chat-status strong { color: var(--text-white); font-size: 13px; white-space: nowrap; }
.profile-chat-status span { margin-left: auto; color: var(--time-text); }
.profile-chat-status b { padding: 3px 8px; border-radius: 12px; color: var(--text-white); background: var(--level-bg); font-size: 11px; white-space: nowrap; }
.profile-chat-status > i:last-child { color: var(--time-text); font-size: 11px; }
.profile-chat-dropdown { position: relative; }
.profile-chat-dropdown:hover .profile-chat-panel, .profile-chat-dropdown:focus-within .profile-chat-panel { display: block; }
.profile-chat-dropdown:hover .profile-chat-status, .profile-chat-dropdown:focus-within .profile-chat-status { border-radius: 8px 8px 0 0; }
.profile-chat-panel { display: none; width: 100%; position: absolute; z-index: 10; top: 100%; left: 0; padding: 13px 14px 12px; border-radius: 0 0 8px 8px; background: var(--modal-panel); box-shadow: 0 10px 25px var(--button-shadow); }
.profile-chat-panel-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--modal-copy); font-size: 13px; }
.profile-chat-panel-row span { white-space: nowrap; }
.profile-chat-panel-row span i { margin-right: 4px; color: var(--text-white); font-size: 11px; }
.profile-chat-panel-row strong { color: var(--green); font-size: 12px; white-space: nowrap; }
.profile-chat-progress { height: 4px; margin: 7px 0 14px; overflow: hidden; border-radius: 4px; background: var(--modal-row); }
.profile-chat-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.profile-chat-details { display: block; color: var(--text-primary); font-size: 13px; font-weight: 600; text-decoration: none; }
.profile-chat-details i { margin-left: 4px; font-size: 11px; }
.profile-rule { height: 1px; margin: 14px 0 16px; background: var(--border-transparent); }
.profile-stat-section, .profile-games, .profile-battles { margin-bottom: 22px; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.profile-heading h3 { margin: 0; color: var(--text-white); font-size: 17px; font-weight: 700; }
.profile-heading a { color: var(--text-primary); font-size: 12px; text-decoration: none; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.profile-stat-grid > div { min-height: 62px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 8px; border-radius: 9px; background: var(--modal-panel); text-align: center; }
.profile-stat-grid span { color: var(--time-text); font-size: 13px; }
.profile-stat-grid strong { color: var(--text-white); font-size: 13px; white-space: nowrap; }
.profile-stat-grid strong img { width: 16px; height: 16px; margin-right: 3px; vertical-align: -3px; object-fit: contain; }
.profile-stat-grid span i { font-size: 10px; }
.profile-games { margin-top: 4px; }
.profile-games .profile-heading { margin-bottom: 11px; }
.profile-games .profile-heading h3 { font-size: 18px; }
.profile-game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-game-grid > div { min-width: 0; }
.profile-game-grid img { width: 100%; aspect-ratio: 111 / 145; display: block; border-radius: 11px; object-fit: cover; background: var(--modal-panel); }
.profile-game-grid span, .profile-game-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-game-grid span { margin-top: 8px; color: var(--time-text); font-size: 12px; }
.profile-game-grid strong { color: var(--text-white); font-size: 12px; font-weight: 700; }
.profile-battles { padding-top: 16px; border-top: 1px solid var(--border-transparent); }
.profile-battles .profile-heading { margin-bottom: 14px; }
.profile-battles .profile-heading h3 { font-size: 20px; text-transform: uppercase; }
.profile-battle-head, .profile-battle-row { display: grid; grid-template-columns: 1.45fr .95fr .52fr 1.25fr; gap: 8px; align-items: center; }
.profile-battle-head {
    padding: 0 4px 8px;
    color: var(--time-text);
    font-size: 12px;
}

.profile-battle-row { min-height: 40px; padding: 7px 4px; border-top: 1px solid var(--border-transparent); color: var(--modal-copy); font-size: 11px; }
.profile-battle-row strong { overflow: hidden; color: var(--text-white); text-overflow: ellipsis; white-space: nowrap; }
.profile-battle-row b { color: var(--text-primary); }
.profile-battle-row em { display: block; color: var(--text-white); font-size: 11px; font-style: normal; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.profile-ring { cursor: pointer; }
.profile-ring { display: block; padding: 3px; border: 0; background: conic-gradient(var(--ring-color, var(--text-primary)) var(--strength, 50%), var(--ring-track) 0); font: inherit; appearance: none; }
.profile-ring:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
.profile-battle-row em img { width: 20px; height: 20px; margin-right: 4px; vertical-align: -5px; object-fit: contain; }
.profile-modal .modal-body { scrollbar-width: thin; scrollbar-color: var(--scroll-track) transparent; }
.profile-modal .modal-body::-webkit-scrollbar { width: 4px; }
.profile-modal .modal-body::-webkit-scrollbar-track { background: transparent; }
.profile-modal .modal-body::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--scroll-track); }

.sendimag {
    width: 100%;
    margin-top: 10px;
}
.sendimag img {
    max-height: 120px;
    max-width: 100%;
    height: auto;   
    width: auto;
}


@media (max-width: 480px) {
    .profile-modal .modal-dialog { width: calc(100% - 16px); margin: 8px auto; }    
    .after-login-page .composer-picker { width: min(320px, calc(100vw - 20px)); right: -4px; }
    .profile-summary { gap: 8px; }
    .profile-summary-avatar { width: 88px; min-width: 88px; height: 100px; }
    .profile-summary-avatar.profile-strength-green { width: 88px; min-width: 88px; height: 88px; padding: 3px; }
    .profile-summary-avatar span { left: 35px; }
    .profile-summary-avatar b { left: 10px; }
    .profile-summary-copy h3 { font-size: 22px; }
    .profile-chat-status { gap: 5px; padding: 8px; }
    .profile-chat-status strong { font-size: 12px; }
    .profile-stat-grid { gap: 6px; }
    .profile-stat-grid > div { padding: 8px 4px; }
    .profile-stat-grid strong { font-size: 10px; }
    .profile-game-grid { gap: 5px; }
    .profile-battle-head, .profile-battle-row { grid-template-columns: 1.3fr .8fr .4fr 1fr; gap: 4px; padding-left: 3px; padding-right: 3px; }
    .profile-battle-row em { font-size: 8px; }
    :root {
        --chat-width: 100%;
    }
    .modal-body {
        padding:10px;
    }


}


