@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito Sans", sans-serif;
}

body {
    background-color: #313338;
    color: #dbdee1;
    overflow: hidden;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0b0f;
    background-image: url('./Assets/coldblooded.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px);
    transform: scale(1.05);
    z-index: 0;
}

.bg-tint {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

main {
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* SERVER SIDEBAR - 72px */
aside {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    padding: 12px 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

aside .server-list {
    position: static;
    width: 100%;
}

aside .server-btn {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 50%;
    margin-top: -24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
    flex-shrink: 0;
    border: none;
    outline: none;
    overflow: hidden;
    transform-origin: center;
}

aside .server-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* server with no icon in Discord -> the normal letter icon (never an empty circle) */
aside .server-btn .server-letter {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--c, #5865F2);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    user-select: none;
}

/* user with no profile picture in Discord -> the normal letter avatar */
.letter-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--c, #5865F2);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    user-select: none;
    position: relative;
    z-index: 2;
}

.rightside-area .bottom .right .an-item .letter-avatar,
.active-user-card .letter-avatar {
    font-size: 12px;
}

#pfAvatarBox .letter-avatar {
    font-size: 38px;
}

aside .server-btn:hover {
    border-radius: 50%;
    background-color: transparent;
}

aside .icon i {
    width: 48px;
    height: 48px;
    background-color: transparent;
    color: #23a55a;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease-in-out;
    flex-shrink: 0;
}

aside .icon i:hover {
    color: white;
    background-color: transparent;
    border-radius: 50%;
}

/* CHANNEL SIDEBAR - 240px */
.sidebar-chat {
    flex: 1;
    height: 100vh;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    min-width: 0;
}

.sidebar-chat .top-nav {
    width: 100%;
    padding: 8px 8px;
    border-bottom: 2px solid #1f2023;
    flex-shrink: 0;
}

.sidebar-chat .top-nav input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    background-color: #1e1f22;
    border: none;
    outline: none;
    color: #dbdee1;
    font-size: 14px;
}

.sidebar-chat .top-nav input::placeholder {
    color: #949ba4;
}

.sidebar-chat .list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.sidebar-chat .list-item {
    width: 100%;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 12px;
    background-color: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.1s;
    color: #b5bac1;
    position: relative;
}

.sidebar-chat .list-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-chat .list-item svg path {
    fill: #b5bac1;
}

.sidebar-chat .list-item p {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-chat .list-item:hover {
    background-color: #35373c;
    color: #f2f3f5;
}

.sidebar-chat .list-item:hover svg path {
    fill: #f2f3f5;
}

.sidebar-chat .list-item.active {
    background-color: #404249;
    color: #f2f3f5;
}

.sidebar-chat .list-item.active svg path {
    fill: #f2f3f5;
}

.sidebar-chat .list-item .new {
    background-color: #f23f43;
    color: white;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(0%, -50%);
}

/* DM SECTION */
.sidebar-chat .dm {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-chat .dm::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.sidebar-chat .dm .friends {
    position: static;
    display: block;
    padding: 0;
}

.sidebar-chat .dm .friends .f-li {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    margin-top: -22px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transform-origin: left center;
    transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
    opacity: 0.45;
    filter: blur(1px);
    /* the row box spans the full width, so its empty middle would otherwise
       swallow hover/clicks meant for the centered .site-logo */
    pointer-events: none;
}

/* only the visible content of the highlighted row stays interactive */
.sidebar-chat .dm .friends .f-li.active-chat .img-wrapper,
.sidebar-chat .dm .friends .f-li.active-chat .dm-name,
.sidebar-chat .dm .friends .f-li.active-chat .guild-tag,
.sidebar-chat .dm .friends .f-li.active-chat .nameplate-badge,
.sidebar-chat .dm .friends .f-li.active-chat .activity-row > *,
.sidebar-chat .dm .friends .f-li.active-chat .eq {
    pointer-events: auto;
}

.sidebar-chat .dm .friends .f-li.active-chat {
    opacity: 1;
    filter: blur(0);
    border-radius: 6px;
    z-index: 10;
}

.sidebar-chat .dm .friends .f-li.active-chat::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 20%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 0;
}

.sidebar-chat .dm .friends .f-li.active-chat .img-wrapper,
.sidebar-chat .dm .friends .f-li.active-chat .dm-info {
    position: relative;
    z-index: 1;
}

.sidebar-chat .dm .friends .f-li.active-chat .eq {
    position: absolute;
    left: 270px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 20px;
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
    z-index: 5;
    background: transparent;
}

.sidebar-chat .dm .friends .f-li.active-chat .eq span {
    width: 3px;
    /* fixed box + scaleY keeps the 6px..20px bar without animating layout */
    height: 20px;
    background: #ffffff;
    border-radius: 2px;
    transform-origin: bottom center;
    animation: eqBounce 1s ease-in-out infinite;
}

.sidebar-chat .dm .friends .f-li.active-chat .eq span:nth-child(1) { animation-delay: 0s; }
.sidebar-chat .dm .friends .f-li.active-chat .eq span:nth-child(2) { animation-delay: 0.2s; }
.sidebar-chat .dm .friends .f-li.active-chat .eq span:nth-child(3) { animation-delay: 0.4s; }
.sidebar-chat .dm .friends .f-li.active-chat .eq span:nth-child(4) { animation-delay: 0.1s; }

@keyframes eqBounce {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.sidebar-chat .dm .friends .f-li.active-chat .dm-name {
    color: #ffffff;
}

.sidebar-chat .dm .friends .f-li .dm-name {
    color: #f2f3f5;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-chat .dm .friends .f-li .dm-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: opacity 0.3s ease;
}

.sidebar-chat .dm .friends .f-li .img-wrapper {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
}

.sidebar-chat .dm .friends .f-li .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.sidebar-chat .dm .friends .f-li .img-wrapper .dm-avatar-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #1e1f22;
    background-color: #80848e;
    z-index: 4;
}

.sidebar-chat .dm .friends .f-li .img-wrapper .dm-avatar-status[data-status="online"] { background-color: #23a55a; }
.sidebar-chat .dm .friends .f-li .img-wrapper .dm-avatar-status[data-status="idle"] { background-color: #f0b232; }
.sidebar-chat .dm .friends .f-li .img-wrapper .dm-avatar-status[data-status="dnd"] { background-color: #f23f43; }
.sidebar-chat .dm .friends .f-li .img-wrapper .dm-avatar-status[data-status="offline"] { background-color: #80848e; }

.sidebar-chat .dm .friends .f-li .img-wrapper .avatar-deco {
    position: absolute;
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    object-fit: contain;
    pointer-events: none;
    z-index: 3;
}

/* profile avatar decoration overlay (mirrors the home DM avatar-deco look) */
#pfAvatarDeco {
    position: absolute;
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    z-index: 3;
}

.sidebar-chat .dm .friends .f-li .dm-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.sidebar-chat .dm .friends .f-li .dm-name {
    color: #f2f3f5;
    font-weight: 600;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-chat .dm .friends .f-li .dm-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-chat .dm .friends .f-li:hover .dm-info {
    opacity: 1;
}

.sidebar-chat .dm .friends .f-li.active-chat .dm-info {
    opacity: 1;
}

.sidebar-chat .dm .friends .f-li .guild-tag {
    font-size: 10px;
    color: #949ba4;
    font-weight: 500;
    flex-shrink: 0;
}

.sidebar-chat .dm .friends .f-li .nameplate-badge {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}

.sidebar-chat .dm .friends .f-li .activity-row {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #949ba4;
}

.sidebar-chat .dm .friends .f-li .activity-row.has-activity {
    display: flex;
}

.sidebar-chat .dm .friends .f-li .activity-row i {
    font-size: 12px;
    flex-shrink: 0;
}

.sidebar-chat .dm .friends .f-li .activity-row .activity-game-img {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-chat .dm .friends .f-li .activity-row i.spotify {
    color: #1db954;
}

.sidebar-chat .dm .friends .f-li .activity-row i.game {
    color: #5865f2;
}

.sidebar-chat .dm .friends .f-li .activity-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MAIN CONTENT */
.rightside-area {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    min-width: 300px;
    height: 100vh;
}

/* BOTTOM AREA */
.rightside-area .bottom {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 0;
}

.rightside-area .bottom .right {
    position: fixed;
    right: 10px;
    top: 2px;
    width: 220px;
    flex-shrink: 0;
    margin: 0;
    background-color: transparent;
    border: none;
    border-radius: 10px;
    padding: 0;
    z-index: 5;
}

.rightside-area .bottom .right .an-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    color: #b5bac1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rightside-area .bottom .right .an-toggle:hover {
    color: #f2f3f5;
}
.rightside-area .bottom .right .an-toggle-badge {
    background-color: rgba(255, 255, 255, 0.12);
    color: #f2f3f5;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.rightside-area .bottom .right .an-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s ease;
}
.rightside-area .bottom .right.open .an-arrow {
    transform: rotate(180deg);
}

.rightside-area .bottom .right .active-now-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.rightside-area .bottom .right .active-now-list::-webkit-scrollbar {
    display: none;
}
.rightside-area .bottom .right.open .active-now-list {
    max-height: 400px;
    overflow-y: auto;
    opacity: 1;
}

.rightside-area .bottom .right .an-item {
    border-radius: 8px;
    padding: 5px 6px;
    cursor: pointer;
}
.rightside-area .bottom .right .an-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.rightside-area .bottom .right .an-item .user-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rightside-area .bottom .right .an-item .user-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.rightside-area .bottom .right .an-item .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.rightside-area .bottom .right .an-item .user-avatar-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #1e1f22;
}
.rightside-area .bottom .right .an-item .user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.rightside-area .bottom .right .an-item .user-name {
    font-size: 12px;
    font-weight: 600;
    color: #f2f3f5;
    line-height: 1.2;
}
.rightside-area .bottom .right .an-item .an-activity {
    font-size: 10px;
    color: #949ba4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}
.rightside-area .bottom .right .an-item .an-activity i.spotify {
    color: #1db954;
    font-size: 10px;
}

.rightside-area .bottom .right .sec {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: column;
    padding: 12px 12px;
}

.rightside-area .bottom .right .sec h2 {
    font-size: 16px;
    font-weight: 600;
    color: #f2f3f5;
}

.rightside-area .bottom .right .sec p {
    font-size: 13px;
    color: #949ba4;
    text-align: center;
    line-height: 1.4;
}

/* ACTIVE USER CARD */
.active-user-card {
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
    backdrop-filter: blur(2px);
}

.active-user-card .user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px;
    border-radius: 6px;
    cursor: pointer;
}

.active-user-card .user-row:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.active-user-card .user-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.active-user-card .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.active-user-card .user-avatar-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.5);
}

.active-user-card .user-row:hover .user-avatar-status {
    border-color: rgba(0, 0, 0, 0.6);
}

.active-user-card .user-avatar-status[data-status="idle"] {
    background-color: transparent;
}

.active-user-card .user-avatar-status[data-status="idle"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0b232;
    border-radius: 50%;
    -webkit-mask-image: radial-gradient(circle at 35% 50%, transparent 50%, #000 51%);
    mask-image: radial-gradient(circle at 35% 50%, transparent 50%, #000 51%);
}

.active-user-card .user-avatar-status[data-status="dnd"] {
    background-color: transparent;
}

.active-user-card .user-avatar-status[data-status="dnd"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f23f43;
    border-radius: 50%;
}

.active-user-card .user-avatar-status[data-status="dnd"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 25%;
    width: 50%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%);
    z-index: 5;
}

.active-user-card .user-avatar-status[data-status="offline"] {
    background-color: transparent;
}

.active-user-card .user-avatar-status[data-status="offline"]::after {
    content: "";
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background-color: #80848e;
    border-radius: 50%;
}

.active-user-card .user-info {
    flex: 1;
    min-width: 0;
}

.active-user-card .user-name {
    font-size: 12px;
    font-weight: 600;
    color: #f2f3f5;
    display: block;
    line-height: 1.2;
}

/* ACTIVITY CARD - Discord style */
.activity-card {
    margin: 0 12px 8px 12px;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.activity-card .activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.activity-card .activity-label {
    font-size: 12px;
    color: #b5bac1;
    font-weight: 600;
}

.activity-card .activity-icon {
    font-size: 16px;
}

.activity-card .activity-icon.spotify {
    color: #1db954;
}

.activity-card .activity-icon.game {
    color: #b5bac1;
}

/* Spotify Activity Card */
.activity-card .spotify-activity {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.activity-card .album-art {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-card .track-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.activity-card .track-name {
    font-size: 14px;
    font-weight: 600;
    color: #f2f3f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-card .track-artist {
    font-size: 12px;
    color: #b5bac1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-card .track-album {
    font-size: 11px;
    color: #949ba4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Game Activity Card */
.activity-card .game-activity {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.activity-card .game-icon {
    width: 40px;
    height: 40px;
    background-color: #1e1f22;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5bac1;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-card .game-icon-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-card .game-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.activity-card .game-name {
    font-size: 14px;
    font-weight: 600;
    color: #f2f3f5;
}

.activity-card .game-state {
    font-size: 12px;
    color: #b5bac1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-card .game-detail {
    font-size: 12px;
    color: #b5bac1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.activity-card .activity-icon {
    font-size: 14px;
}

.activity-card .activity-icon.spotify {
    color: #1db954;
}

.activity-card .activity-icon.game {
    color: #5865f2;
}

.spotify-activity {
    display: flex;
    gap: 10px;
    background-color: #1e1f22;
    border-radius: 6px;
    padding: 10px;
}

.spotify-activity .album-art {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.spotify-activity .track-info {
    flex: 1;
    min-width: 0;
}

.spotify-activity .track-name {
    font-size: 13px;
    font-weight: 600;
    color: #f2f3f5;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-activity .track-artist {
    font-size: 12px;
    color: #b5bac1;
}

.spotify-activity .track-album {
    font-size: 11px;
    color: #6d6f78;
}

.game-activity {
    display: flex;
    gap: 10px;
    background-color: #1e1f22;
    border-radius: 6px;
    padding: 10px;
}

.game-activity .game-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background-color: #313338;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865f2;
    font-size: 20px;
    flex-shrink: 0;
}

.game-activity .game-info {
    flex: 1;
    min-width: 0;
}

.game-activity .game-name {
    font-size: 13px;
    font-weight: 600;
    color: #f2f3f5;
}

.game-activity .game-detail {
    font-size: 12px;
    color: #949ba4;
}

/* LOADER - HACKER TERMINAL (B&W) */
.loader-home {
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    font-family: 'Courier New', Courier, monospace;
}

.loader-home.ready .hack-terminal {
    border-color: #fff;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.25), inset 0 0 32px rgba(255, 255, 255, 0.1);
}
.loader-home.ready .hack-input-line,
.loader-home.ready .hack-prompt {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
.loader-home.ready .hack-cursor {
    background: #fff;
    box-shadow: 0 0 10px #fff;
}

.hack-terminal {
    width: min(560px, 90vw);
    background: #000;
    border: 1px solid #fff;
    border-radius: 8px;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.18), inset 0 0 32px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hack-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #0a0a0a;
    border-bottom: 1px solid #fff;
}

.hack-header-lights {
    display: flex;
    gap: 6px;
}

.hack-light {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.85;
}
.hack-light.r { opacity: 1; }
.hack-light.y { opacity: 0.6; }
.hack-light.g { opacity: 0.35; }

.hack-header-title {
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
}

.hack-output {
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.hack-output .code-line {
    white-space: pre;
    overflow: hidden;
    animation: hackIn 0.12s steps(3);
}
.hack-output .code-line.dim { color: #555; text-shadow: none; }
.hack-output .code-line.ok { color: #fff; text-shadow: 0 0 8px rgba(255, 255, 255, 0.9); }
.hack-output .code-line.err { color: #666; text-shadow: none; }

@keyframes hackIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.hack-prompt-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 2px;
    color: #fff;
    font-size: 13px;
}

.hack-prompt {
    color: #fff;
    font-weight: 700;
}

.hack-input-line {
    min-height: 16px;
    color: #ccc;
}

.hack-cursor {
    width: 8px;
    height: 15px;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    animation: hackBlink 0.9s steps(2) infinite;
}

@keyframes hackBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.loader-home.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* RESPONSIVE */
@media screen and (max-width: 1200px) {
    .rightside-area .bottom .right {
        width: 280px;
        min-width: 280px;
    }
}

@media screen and (max-width: 1050px) {
    .rightside-area .bottom .right {
        display: none;
    }
}

@media screen and (max-width: 850px) {
    .sidebar-chat {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }
}

@media screen and (max-width: 750px) {
    .sidebar-chat {
        position: absolute;
        z-index: 100;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    .rightside-area {
        display: none;
    }
}


/* ===== TOP BAR ===== */
* {
    cursor: none !important;
}

.top-bar {
    position: fixed;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 55%;
    padding: 6px 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.top-bar .tb-center {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    text-align: left;
    padding: 1px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-right: auto;
}
.top-bar .tb-center:hover {
    background: rgba(255,255,255,0.12);
}

.top-bar .tb-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
}

.top-bar .tb-right .tb-snowflake {
    color: rgba(255,255,255,0.55);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
    padding: 4px;
    border-radius: 50%;
}
.top-bar .tb-right .tb-snowflake.active {
    color: #ffffff;
    text-shadow: 0 0 12px #ffffff, 0 0 24px #ffffff, 0 0 40px #a8d8ff;
    transform: scale(1.15);
}

/* ===== CUSTOM CURSOR (canvas-based) ===== */
html, body {
    cursor: none;
}
html, body, a, button, .f-li, .server-btn, .an-item,
input, select, textarea, .mp-progress, .mp-play, .mp-vol {
    cursor: none !important;
}

/* no text highlight / no drag-out */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
img, video, canvas {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
}
input {
    user-select: text;
    -webkit-user-select: text;
}

.cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
}

/* ===== SNOW EFFECT ===== */
.snow-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99995;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.9;
    box-shadow: 0 0 4px rgba(255,255,255,0.8);
    animation-name: snowFallC;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* one set per drift step: a transform made of plain lengths can be
   interpolated on the compositor, one using var(--drift) cannot */
@keyframes snowFallL30 {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(50vh) translateX(-30px); }
    100% { transform: translateY(105vh) translateX(0); }
}
@keyframes snowFallL18 {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(50vh) translateX(-18px); }
    100% { transform: translateY(105vh) translateX(0); }
}
@keyframes snowFallL8 {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(50vh) translateX(-8px); }
    100% { transform: translateY(105vh) translateX(0); }
}
@keyframes snowFallC {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(50vh) translateX(0); }
    100% { transform: translateY(105vh) translateX(0); }
}
@keyframes snowFallR8 {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(50vh) translateX(8px); }
    100% { transform: translateY(105vh) translateX(0); }
}
@keyframes snowFallR18 {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(50vh) translateX(18px); }
    100% { transform: translateY(105vh) translateX(0); }
}
@keyframes snowFallR30 {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(50vh) translateX(30px); }
    100% { transform: translateY(105vh) translateX(0); }
}

/* ===== MUSIC PLAYER (white/black, top center) ===== */
.music-player {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    width: min(560px, 92vw);
    background: transparent;
    border: none;
}

.music-player .mp-line {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    /* decorative only: let the logo underneath stay hoverable */
    pointer-events: none;
}

.music-player .mp-mid {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 7px 0 5px;
}

.music-player .mp-progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background:
        linear-gradient(90deg, #ffffff, #ffffff) 0 / var(--pct, 0%) 100% no-repeat,
        rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    will-change: background-size;
}
.music-player .mp-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0;
    height: 0;
    background: transparent;
    border: none;
}
.music-player .mp-progress::-moz-range-thumb {
    width: 0;
    height: 0;
    background: transparent;
    border: none;
}
.music-player .mp-progress::-moz-range-track {
    background: transparent;
}

.music-player .mp-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-align: right;
}

.music-player .mp-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 0;
}

.music-player .mp-icwrap {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-player .mp-ic {
    width: 100%;
    height: 100%;
    background: transparent center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.45));
}

.music-player .mp-ic-note {
    color: #ffffff;
    font-size: 24px;
    text-shadow: 0 0 12px #ffffff;
}

.music-player .mp-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.music-player .mp-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-player .mp-artist {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-player .mp-play {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.music-player .mp-play:hover {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
}

.music-player .mp-vol {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.music-player .mp-vol i {
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    cursor: pointer;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.music-player .mp-vol i.active,
.music-player .mp-vol i:not(.muted) {
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff, 0 0 22px #ffffff;
}
.music-player .mp-vol i.muted {
    color: rgba(255, 255, 255, 0.35);
    text-shadow: none;
}

/* ===== SITE LOGO (center screen) ===== */
.site-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 45;
    width: min(700px, 92vw);
    height: auto;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 30px rgba(128, 128, 128, 0.55)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
    transition: transform 0.4s ease, filter 0.4s ease;
}
.site-logo:hover {
    transform: translate(-50%, -50%) scale(1.08);
    filter: drop-shadow(0 0 46px rgba(255, 255, 255, 0.85)) drop-shadow(0 6px 28px rgba(0, 0, 0, 0.8));
}
.site-logo:hover .site-logo-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
    filter: blur(16px);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.6);
}

.site-logo img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}

.site-logo .site-logo-glow {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: transparent;
    filter: blur(14px);
    border-radius: 50%;
    z-index: -1;
    box-shadow: 0 0 40px rgba(128, 128, 128, 0.4);
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}
