* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: #15191d;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: #ffffff;
}

a:hover {
    color: #cfd4d8;
}

button,
input {
    font-family: inherit;
}

button {
    border: none;
    cursor: pointer;
}

button:disabled {
    cursor: default;
}

.start-container {
    width: 100%;
    max-width: 560px;
    min-height: 100vh;

    margin: 0 auto;
    padding: 50px 32px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;
}

.start-container h1 {
    margin: 0 0 22px;

    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
}

.start-container h2 {
    margin: 30px 0 12px;

    font-size: 26px;
}

.start-container p {
    color: #a9b0b7;

    font-size: 17px;
    line-height: 1.55;
}

form {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 14px;

    margin-top: 25px;
}

input {
    width: 100%;

    padding: 15px 16px;

    background: #22272c;
    color: #ffffff;

    border: 1px solid #343b42;
    border-radius: 8px;

    outline: none;

    font-size: 16px;

    transition:
        border-color 0.18s,
        background 0.18s;
}

input::placeholder {
    color: #727b84;
}

input:focus {
    background: #272d33;

    border-color: #65717c;
}

button {
    width: 100%;

    padding: 14px 24px;

    background: #ffffff;
    color: #15191d;

    border-radius: 8px;

    font-size: 17px;
    font-weight: 700;

    transition:
        background 0.18s,
        transform 0.18s;
}

button:hover {
    background: #e8eaec;

    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.button-group {
    display: flex;
    justify-content: center;

    gap: 14px;

    margin-top: 25px;
}

.menu-button {
    display: inline-block;

    padding: 14px 28px;

    background: #ffffff;
    color: #15191d;

    border-radius: 8px;

    text-decoration: none;

    font-size: 17px;
    font-weight: 700;

    transition:
        background 0.18s,
        transform 0.18s;
}

.menu-button:hover {
    color: #15191d;

    background: #e8eaec;

    transform: translateY(-1px);
}

#message,
#deleteMessage,
#guestMessage {
    min-height: 22px;

    margin-top: 14px;

    color: #d2d6da;
}

hr {
    margin: 48px 0 30px;

    border: none;
    border-top: 1px solid #31373d;
}

#guestName {
    margin-top: 10px;
}

#guestButton {
    margin-top: 14px;
}

.topbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 34px;

    background: rgba(16, 19, 22, 0.96);

    border-bottom: 1px solid #2b3137;

    backdrop-filter: blur(10px);

    z-index: 1000;
}

.logo {
    color: #ffffff;

    font-size: 22px;
    font-weight: 800;

    text-decoration: none;

    letter-spacing: 0.5px;
}

.logo:hover {
    color: #ffffff;
}

#accountArea {
    display: flex;
    align-items: center;
}

.account-links {
    display: flex;
    align-items: center;

    gap: 18px;
}

.account-links a {
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.signup-button {
    padding: 10px 17px;

    background: #ffffff;
    color: #15191d;

    border-radius: 8px;
}

.signup-button:hover {
    color: #15191d;

    background: #e8eaec;
}

.home-page {
    width: 100%;

    padding: 120px 28px 60px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    width: 100%;
    max-width: 900px;

    padding: 70px 20px;

    text-align: center;
}

.hero h1 {
    margin: 0 0 22px;

    font-size: 76px;
    line-height: 1;
    font-weight: 900;
}

.hero-text {
    max-width: 720px;

    margin: 0 auto;

    color: #a7afb7;

    font-size: 20px;
    line-height: 1.6;
}

.play-button {
    width: auto;
    min-width: 220px;

    margin-top: 36px;

    padding: 16px 42px;

    font-size: 20px;
}

#playInfo {
    margin-top: 15px;

    color: #7f8992;

    font-size: 14px;
}

.info-section {
    width: 100%;
    max-width: 900px;

    margin-top: 24px;
    padding: 34px;

    background: #1c2126;

    border: 1px solid #2f363d;
    border-radius: 14px;

    text-align: center;
}

.info-section h2 {
    margin-top: 0;

    font-size: 30px;
}

.info-section p {
    color: #a7afb7;

    font-size: 16px;
    line-height: 1.6;
}

.feature-grid {
    width: 100%;
    max-width: 1000px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-top: 20px;
}

.feature-card {
    padding: 24px;

    background: #1c2126;

    border: 1px solid #2f363d;
    border-radius: 14px;
}

.feature-card h3 {
    margin: 0 0 12px;

    font-size: 20px;
}

.feature-card p {
    margin: 0;

    color: #9fa7af;

    line-height: 1.55;
}

.top-profile-widget {
    width: auto;
    min-width: 145px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 7px 10px 7px 7px;

    background: #20252a;
    color: #ffffff;

    border: 1px solid #353c43;
    border-radius: 12px;

    transition:
        background 0.18s,
        border-color 0.18s;
}

.top-profile-widget:hover,
.top-profile-widget.active {
    background: #292f35;

    border-color: #515b65;

    transform: none;
}

.top-profile-avatar {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #3b4249;

    flex-shrink: 0;
}

.top-profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.top-profile-info {
    display: flex;
    flex-direction: column;

    text-align: left;
}

.top-profile-name {
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
}

.top-profile-type {
    margin-top: 2px;

    color: #818b94;

    font-size: 10px;
    font-weight: 700;
}

.profile-arrow {
    width: 8px;
    height: 8px;

    margin-left: 6px;
    margin-right: 3px;

    border-right: 2px solid #8f99a3;
    border-bottom: 2px solid #8f99a3;

    transform: rotate(45deg);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.top-profile-widget:hover .profile-arrow {
    border-color: #ffffff;
}

.top-profile-widget.active .profile-arrow {
    transform: rotate(225deg);
}

.profile-side-panel {
    position: fixed;

    top: 72px;
    right: -420px;

    width: 390px;
    height: calc(100vh - 72px);

    padding: 26px 22px 50px;

    overflow-y: auto;

    background: #161a1e;

    border-left: 1px solid #2c3339;

    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.34);

    transition: right 0.25s ease;

    z-index: 950;
}

.profile-side-panel.open {
    right: 0;
}

.profile-side-panel::-webkit-scrollbar {
    width: 7px;
}

.profile-side-panel::-webkit-scrollbar-track {
    background: transparent;
}

.profile-side-panel::-webkit-scrollbar-thumb {
    background: #3a4249;

    border-radius: 10px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.panel-title span {
    color: #747e87;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.panel-title h2 {
    margin: 3px 0 0;

    font-size: 28px;
}

.profile-user-header {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 16px;

    background: #1d2227;

    border: 1px solid #2e353c;
    border-radius: 14px;
}

.profile-user-header > div:last-child {
    display: flex;
    flex-direction: column;
}

.profile-user-header strong {
    color: #ffffff;

    font-size: 16px;
}

.profile-user-header small {
    margin-top: 4px;

    color: #7f8992;

    font-size: 12px;
}

.large-profile-avatar {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #3b4249;

    border-radius: 50%;

    flex-shrink: 0;
}

.large-profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.avatar-placeholder {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    background: #3b4249;
}

.avatar-placeholder::before {
    content: "";

    position: absolute;

    width: 28%;
    aspect-ratio: 1 / 1;

    left: 36%;
    top: 20%;

    border-radius: 50%;

    background: #a5adb5;
}

.avatar-placeholder::after {
    content: "";

    position: absolute;

    width: 54%;
    height: 32%;

    left: 23%;
    bottom: 17%;

    border-radius: 50% 50% 30% 30%;

    background: #a5adb5;
}

.profile-box {
    display: flex;
    flex-direction: column;

    gap: 10px;

    padding: 17px;
    margin-top: 14px;

    background: #1c2126;

    border: 1px solid #2d343b;
    border-radius: 14px;
}

.profile-box-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 4px;
}

.profile-box-heading strong {
    color: #ffffff;

    font-size: 15px;
}

.profile-box-heading span {
    color: #78828b;

    font-size: 10px;

    text-align: right;
}

.profile-box label {
    color: #9099a2;

    font-size: 12px;
}

.profile-box input {
    background: #22282e;

    border-color: #343c44;
}

.profile-primary-button,
.profile-secondary-button,
.profile-ghost-button,
.profile-danger-button {
    width: 100%;

    margin-top: 4px;
}

.profile-primary-button:disabled {
    opacity: 0.42;

    cursor: default;

    transform: none;
}

.profile-secondary-button {
    background: #2b3238;
    color: #ffffff;
}

.profile-secondary-button:hover {
    background: #343c43;
}

.profile-ghost-button {
    background: transparent;
    color: #abb3ba;

    border: 1px solid #394149;
}

.profile-ghost-button:hover {
    background: #252b30;
    color: #ffffff;
}

.profile-danger-button {
    background: #b73535;
    color: #ffffff;
}

.profile-danger-button:hover {
    background: #c94343;
}

.avatar-drop-zone {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 15px;

    background: #20262b;

    border: 1px dashed #4b555e;
    border-radius: 13px;

    cursor: pointer;

    outline: none;

    transition:
        background 0.18s,
        border-color 0.18s;
}

.avatar-drop-zone:hover,
.avatar-drop-zone:focus,
.avatar-drop-zone.dragging {
    background: #272e34;

    border-color: #818c96;
}

.avatar-preview {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #3b4249;

    border-radius: 50%;

    flex-shrink: 0;
}

.avatar-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.avatar-drop-text {
    display: flex;
    flex-direction: column;

    text-align: left;
}

.avatar-drop-text strong {
    color: #ffffff;

    font-size: 13px;
}

.avatar-drop-text span {
    margin-top: 4px;

    color: #808a93;

    font-size: 11px;
}

.profile-button-row {
    display: grid;
    grid-template-columns: 1fr 0.72fr;

    gap: 8px;
}

.profile-message {
    min-height: 17px;

    margin: 2px 0 0;

    color: #929ca5;

    font-size: 11px;
    line-height: 1.4;
}

.profile-message.success {
    color: #79ca93;
}

.profile-message.error {
    color: #e47b7b;
}

.guest-description {
    margin: 0 0 8px;

    color: #929ba4;

    font-size: 13px;
    line-height: 1.55;
}

.danger-zone {
    border-color: #543434;
}

.delete-account-confirm {
    display: none;
    flex-direction: column;

    gap: 9px;

    padding-top: 6px;
}

.delete-account-confirm.visible {
    display: flex;
}

.delete-account-confirm p {
    margin: 0;

    color: #a7afb6;

    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 56px;
    }
}

@media (max-width: 600px) {
    .start-container {
        padding: 40px 22px;
    }

    .start-container h1 {
        font-size: 40px;
    }

    .button-group {
        flex-direction: column;
    }

    .menu-button {
        width: 100%;
    }

    .topbar {
        padding: 0 14px;
    }

    .logo {
        font-size: 18px;
    }

    .account-links {
        gap: 10px;
    }

    .signup-button {
        padding: 9px 12px;
    }

    .hero {
        padding: 50px 10px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-text {
        font-size: 17px;
    }

    .profile-side-panel {
        right: -100%;

        width: 100%;
    }
}

.avatar-crop-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.72);

    backdrop-filter: blur(6px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s,
        visibility 0.2s;

    z-index: 5000;
}

.avatar-crop-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.avatar-crop-modal {
    width: 100%;
    max-width: 420px;

    padding: 24px;

    background: #1b2025;

    border: 1px solid #343c43;
    border-radius: 16px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.55);
}

.avatar-crop-header span {
    color: #747f88;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.avatar-crop-header h2 {
    margin: 4px 0 0;

    font-size: 26px;
}

.avatar-crop-description {
    margin: 10px 0 20px;

    color: #969fa7;

    font-size: 13px;
}

.avatar-crop-canvas-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 14px;

    background: #111519;

    border: 1px solid #30373e;
    border-radius: 14px;
}

#avatarCropCanvas {
    width: 300px;
    height: 300px;

    max-width: 100%;

    border-radius: 10px;

    cursor: grab;

    touch-action: none;

    user-select: none;
}

#avatarCropCanvas.dragging {
    cursor: grabbing;
}

.avatar-crop-zoom {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 12px;

    margin-top: 20px;
}

.avatar-crop-zoom span {
    color: #929ba4;

    font-size: 18px;
    font-weight: bold;
}

.avatar-crop-zoom input {
    width: 100%;

    padding: 0;

    accent-color: #ffffff;
}

.avatar-crop-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;

    gap: 10px;

    margin-top: 22px;
}

.legal-footer {
    width: 100%;

    padding: 24px 30px;

    margin-top: auto;

    background: #111519;

    border-top: 1px solid #292f35;

    color: #77818a;
}

.legal-footer-inner {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.legal-copyright {
    font-size: 12px;
}

.legal-links {
    display: flex;
    align-items: center;

    gap: 20px;
}

.legal-links a {
    color: #8e979f;

    font-size: 12px;
    text-decoration: none;

    transition: color 0.15s;
}

.legal-links a:hover {
    color: #ffffff;
}

.legal-page {
    width: 100%;
    max-width: 900px;

    min-height: calc(100vh - 80px);

    margin: 0 auto;

    padding: 80px 30px;
}

.legal-page-header {
    margin-bottom: 40px;
}

.legal-page-label {
    color: #6f7982;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.legal-page h1 {
    margin: 6px 0 12px;

    font-size: 42px;
}

.legal-page-description {
    color: #929ba4;

    line-height: 1.6;
}

.legal-placeholder {
    padding: 25px;

    background: #1c2126;

    border: 1px solid #30373e;
    border-radius: 14px;
}

.legal-placeholder h2 {
    margin-top: 0;
}

.legal-placeholder p {
    color: #9da5ad;

    line-height: 1.7;
}

.legal-warning {
    margin-top: 20px;

    padding: 14px 16px;

    background: #242a30;

    border: 1px solid #394149;
    border-radius: 10px;

    color: #aeb5bc;

    font-size: 13px;
    line-height: 1.6;
}

.legal-back {
    display: inline-block;

    margin-top: 28px;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.legal-back:hover {
    color: #c8cdd2;
}

@media (max-width: 600px) {
    .legal-footer-inner {
        flex-direction: column;
        justify-content: center;

        text-align: center;
    }

    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .legal-page {
        padding: 50px 20px;
    }

    .legal-page h1 {
        font-size: 34px;
    }
}
/* Footer Layout Fix */
body { min-height: 100vh; display: flex; flex-direction: column; }
.home-page { flex: 1; }
.start-container { flex: 1; min-height: 0; }
.legal-page { flex: 1; min-height: 0; }
.legal-footer { margin-top: auto; flex-shrink: 0; }

.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    width: 38px;
    height: 38px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: #89939d;

    border-radius: 7px;

    transform: translateY(-50%);
}

.password-toggle:hover {
    background: #30373e;
    color: #ffffff;

    transform: translateY(-50%);
}

.password-toggle svg {
    width: 20px;
    height: 20px;

    fill: currentColor;
}

.password-toggle.active {
    color: #ffffff;
}

#accountArea {
    gap: 8px;
}

.top-friends-button {
    position: relative;

    width: 50px;
    height: 50px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #20252a;
    color: #9ca5ae;

    border: 1px solid #353c43;
    border-radius: 12px;

    transition:
        background 0.18s,
        border-color 0.18s,
        color 0.18s;
}

.top-friends-button:hover,
.top-friends-button.active {
    background: #292f35;
    color: #ffffff;

    border-color: #515b65;

    transform: none;
}

.top-friends-button svg {
    width: 23px;
    height: 23px;

    fill: currentColor;
}

.friend-request-badge {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    display: none;
    align-items: center;
    justify-content: center;

    background: #cf3e3e;
    color: #ffffff;

    border: 2px solid #111519;
    border-radius: 20px;

    font-size: 10px;
    font-weight: 800;
}

.friend-request-badge.visible {
    display: flex;
}

.friends-side-panel {
    position: fixed;

    top: 72px;
    right: -430px;

    width: 410px;
    height: calc(100vh - 72px);

    padding: 25px 22px 45px;

    overflow-y: auto;

    background: #161a1e;

    border-left: 1px solid #2d343b;

    box-shadow:
        -20px 0 50px
        rgba(0, 0, 0, 0.35);

    transition: right 0.25s ease;

    z-index: 960;
}

.friends-side-panel.open {
    right: 0;
}

.friends-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.friends-panel-header h2 {
    margin: 3px 0 0;

    font-size: 28px;
}

.friends-eyebrow {
    color: #747f88;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.friends-close-button {
    width: 38px;
    height: 38px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: #89939c;

    border-radius: 9px;

    font-size: 25px;
    font-weight: 400;
}

.friends-close-button:hover {
    background: #272d32;
    color: #ffffff;

    transform: none;
}

.friends-tabs {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 5px;

    padding: 4px;

    margin-bottom: 17px;

    background: #1d2227;

    border: 1px solid #2d343b;
    border-radius: 11px;
}

.friends-tab {
    position: relative;

    padding: 10px 7px;

    background: transparent;
    color: #858f98;

    border-radius: 8px;

    font-size: 12px;

    transition:
        background 0.15s,
        color 0.15s;
}

.friends-tab:hover {
    background: #252b30;
    color: #ffffff;

    transform: none;
}

.friends-tab.active {
    background: #30373e;
    color: #ffffff;
}

.friends-tab-badge {
    position: absolute;

    top: 3px;
    right: 5px;

    min-width: 16px;
    height: 16px;

    padding: 0 4px;

    display: none;
    align-items: center;
    justify-content: center;

    background: #c83b3b;
    color: #ffffff;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 800;
}

.friends-tab-badge.visible {
    display: flex;
}

.friends-panel-content {
    min-height: 200px;
}

.friends-list,
.friends-request-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.friend-user-row,
.friend-user-main {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px;

    background: #1c2126;
    color: #ffffff;

    border: 1px solid #2d343b;
    border-radius: 12px;

    text-align: left;

    transition:
        background 0.15s,
        border-color 0.15s;
}

.friend-user-row:hover,
.friend-user-main:hover {
    background: #23292f;

    border-color: #414a52;

    transform: none;
}

.friend-user-main {
    padding: 0;

    background: transparent;

    border: none;

    border-radius: 0;
}

.friend-user-main:hover {
    background: transparent;

    border: none;
}

.friend-avatar {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #3a4148;

    border-radius: 50%;
}

.friend-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.friend-avatar-placeholder {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    background: #3b4249;
}

.friend-avatar-placeholder::before {
    content: "";

    position: absolute;

    width: 28%;
    aspect-ratio: 1 / 1;

    left: 36%;
    top: 20%;

    background: #a4adb5;

    border-radius: 50%;
}

.friend-avatar-placeholder::after {
    content: "";

    position: absolute;

    width: 54%;
    height: 32%;

    left: 23%;
    bottom: 17%;

    background: #a4adb5;

    border-radius:
        50% 50% 30% 30%;
}

.friend-user-info {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}

.friend-user-info strong {
    overflow: hidden;

    color: #ffffff;

    font-size: 14px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-user-info span {
    margin-top: 3px;

    color: #7e8992;

    font-size: 11px;
}

.friend-row-arrow {
    color: #68737c;

    font-size: 24px;
    line-height: 1;
}

.friend-request-row {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 11px;

    background: #1c2126;

    border: 1px solid #2d343b;
    border-radius: 12px;
}

.friend-request-actions {
    display: flex;

    gap: 5px;
}

.friend-accept-button,
.friend-decline-button {
    width: 38px;
    height: 38px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 17px;
}

.friend-accept-button {
    background: #2e7746;
    color: #ffffff;
}

.friend-accept-button:hover {
    background: #378b53;

    transform: none;
}

.friend-decline-button {
    background: #713434;
    color: #ffffff;
}

.friend-decline-button:hover {
    background: #8b3d3d;

    transform: none;
}

.friends-empty {
    min-height: 190px;

    padding: 30px 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: #1c2126;

    border: 1px solid #2d343b;
    border-radius: 13px;
}

.friends-empty.compact {
    min-height: 130px;
}

.friends-empty-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #30373e;
    color: #8f99a2;

    border-radius: 50%;

    font-size: 25px;
}

.friends-empty strong {
    font-size: 15px;
}

.friends-empty span {
    max-width: 260px;

    margin-top: 7px;

    color: #828c95;

    font-size: 12px;
    line-height: 1.5;
}

.friends-primary-button {
    width: 100%;

    margin-top: 16px;

    background: #ffffff;
    color: #161a1e;
}

.friend-search-input-wrap {
    position: relative;
}

.friend-search-input-wrap svg {
    position: absolute;

    top: 50%;
    left: 14px;

    width: 18px;
    height: 18px;

    fill: #77818a;

    transform:
        translateY(-50%);
}

.friend-search-input-wrap input {
    padding-left: 42px;
}

.friend-search-results {
    margin-top: 12px;
}

.friends-loading {
    min-height: 160px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    color: #858f98;

    font-size: 12px;
}

.friends-spinner {
    width: 26px;
    height: 26px;

    border: 3px solid #323940;
    border-top-color: #b0b7bd;

    border-radius: 50%;

    animation:
        friends-spin 0.7s
        linear infinite;
}

@keyframes friends-spin {
    to {
        transform: rotate(360deg);
    }
}

.friend-profile-overlay {
    position: fixed;

    inset: 0;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(0, 0, 0, 0.68);

    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.18s,
        visibility 0.18s;

    z-index: 6000;
}

.friend-profile-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.friend-profile-modal {
    position: relative;

    width: 100%;
    max-width: 390px;

    padding: 30px;

    background: #1a1f24;

    border: 1px solid #353d44;
    border-radius: 17px;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.5);

    text-align: center;
}

.friend-profile-close {
    position: absolute;

    top: 13px;
    right: 13px;

    width: 36px;
    height: 36px;

    padding: 0;

    background: transparent;
    color: #87919a;

    font-size: 24px;
}

.friend-profile-close:hover {
    background: #292f34;
    color: #ffffff;

    transform: none;
}

.friend-profile-avatar {
    width: 90px;
    height: 90px;

    margin: 10px auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #3b4249;

    border-radius: 50%;
}

.friend-profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.friend-profile-modal h2 {
    margin: 0;

    font-size: 25px;
}

.friend-profile-member {
    display: block;

    margin-top: 6px;

    color: #7f8992;

    font-size: 11px;
}

.friend-profile-divider {
    height: 1px;

    margin: 23px 0;

    background: #30373d;
}

.friendship-state {
    padding: 13px;

    background: #22282d;

    border: 1px solid #343c43;
    border-radius: 10px;

    color: #a1a9b0;

    font-size: 13px;
}

.friendship-state.friends {
    color: #8bcea0;

    border-color: #315d3d;
}

.friendship-state-icon {
    margin-right: 5px;
}

.friend-profile-message {
    min-height: 17px;

    margin: 12px 0 0;

    color: #9099a2;

    font-size: 11px;
}

.friend-profile-message.success {
    color: #7fc997;
}

.friend-profile-message.error {
    color: #e27d7d;
}

.friend-profile-error {
    padding: 40px 10px;

    color: #d27a7a;
}

@media (max-width: 600px) {
    .friends-side-panel {
        right: -100%;

        width: 100%;
    }

    .top-friends-button {
        width: 46px;
        height: 46px;
    }

    .friend-profile-modal {
        padding: 25px 20px;
    }
}