body {
    margin: 0;
    background-color: #0d0d0d;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

.main-content {
    z-index: 10;
    position: relative;
    backdrop-filter: blur(10px);
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(13, 13, 13, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 320px;
    min-width: 280px;
    box-sizing: border-box;
    animation: breathe 4s ease-in-out infinite;
}

.main-content:hover {
    animation-play-state: paused;
    transform: scale(1.01);
}

.avatar-container {
    position: relative;
    width: 89px;
    height: 89px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    border: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: visible;
}

.avatar-container:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.avatar-container:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 55%;
    object-fit: cover;
    border: 2px solid #0d0d0d;
    transition: all 0.4s ease;
    filter: saturate(1);
    z-index: 1;
}

.avatar-decoration {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 120px;
    height: 120px;
    object-fit: contain;
    z-index: 3;
    pointer-events: none;
    transition: all 0.4s ease;
    display: none;
}

.avatar-container:hover .avatar,
.avatar-container:hover .avatar-decoration {
    filter: brightness(1.15) saturate(1.2) contrast(1.1);
}

.avatar-container:hover .avatar-decoration {
    transform: scale(1.08);
}

@media (max-width: 480px) {
    .avatar-decoration {
        width: 135px;
        height: 135px;
        top: -12.5px;
        left: -12.5px;
    }
}

.status-circle {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #0d0d0d;
    background-color: #3b3b3b;
    transition: all 0.3s ease;
    z-index: 4;
}

.status-circle.clicked {
    animation: pulse 0.6s ease-out;
}

.username {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: white;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
    transition: all 0.3s ease;
    margin-bottom: 0.2rem;
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

.username:hover {
    transform: translateY(-2px);
    animation-play-state: paused;
}

.platform-icons {
    display: flex;
    gap: 4px;
    font-size: 1rem;
    color: white;
}

.platform-icons img {
    transition: transform 0.3s ease;
}

.platform-icons img:hover {
    transform: scale(1.2);
}

.user-handle {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    color: #b3b3b3;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.user-handle:hover {
    opacity: 1;
}

.activity-status {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.activity-status:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(45deg);
    animation: shimmerActivity 4s infinite;
}

@keyframes shimmerActivity {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.activity-status:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.activity-status img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.activity-status img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.no-activity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.no-activity:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%,
            rgba(255, 255, 255, 0.1) 100%);
    border-radius: 18px;
    z-index: -1;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.no-activity-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.3rem;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-activity-subtext {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.3;
}

.floating-dots {
    display: flex;
    gap: 3px;
    margin-top: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: dotFloat 1.5s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotFloat {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.activities-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
}

.main-content.expanded {
    max-width: 320px;
    transition: all 0.3s ease;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.activity-item:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.activity-item img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
    text-align: left;
}

.activity-name {
    font-weight: 600;
    color: white;
    font-size: 0.75rem;
    margin-bottom: 1px;
}

.activity-state {
    color: #aaa;
    font-size: 0.7rem;
}

.show-more-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    padding: 8px 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.show-more-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.show-more-btn:hover:before {
    left: 100%;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hidden-activities {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: none;
}

.hidden-activities.show {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}

.hidden-activities .activity-item {
    animation: none !important;
    transform: none !important;
    will-change: auto;
}

.support-info {
    margin-top: 0.8rem;
    font-size: 0.7rem;
    color: #888;
    padding: 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.support-info a {
    color: #5c9aff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.support-info a:hover {
    color: #7db4ff;
    text-shadow: 0 0 10px rgba(92, 154, 255, 0.5);
}

.support-info a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5c9aff;
    transition: width 0.3s ease;
}

.support-info a:hover:after {
    width: 100%;
}

.footer {
    margin-top: 0.6rem;
    font-size: 0.65rem;
    color: #666;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer:hover {
    opacity: 1;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 250px;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #ccc;
    user-select: none;
}

.progress-bar {
    flex-grow: 1;
    height: 3px;
    background: #fff5;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1db954, #1ed760);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
}

.progress-fill:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.music-visualizer {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 20px;
    margin-left: 8px;
}

.bar {
    width: 3px;
    background: #1db954;
    border-radius: 2px;
    animation: musicBar 0.8s ease-in-out infinite alternate;
}

.bar:nth-child(1) {
    animation-delay: 0.1s;
    height: 5px;
}

.bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 10px;
}

.bar:nth-child(3) {
    animation-delay: 0.3s;
    height: 15px;
}

.bar:nth-child(4) {
    animation-delay: 0.4s;
    height: 8px;
}

@keyframes musicBar {
    from {
        transform: scaleY(0.3);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-20px) rotate(360deg);
        opacity: 0.3;
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .main-content {
        padding: 1.5rem;
        max-width: 100%;
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .main-content {
        padding: 1rem;
        min-width: unset;
    }

    .avatar-container {
        width: 110px;
        height: 110px;
    }

    .avatar {
        width: 110px;
        height: 110px;
    }

    .avatar-decoration {
        width: 140px;
        height: 140px;
        top: -15px;
        left: -15px;
    }

    .status-circle {
        width: 22px;
        height: 22px;
        bottom: -5px;
        right: -5px;
    }

    .username {
        font-size: 1.6rem;
    }

    .user-handle {
        font-size: 0.9rem;
    }

    .activity-status {
        font-size: 0.8rem;
    }

    .no-activity {
        padding: 1rem;
    }
}

@media (min-width: 769px) {
    body {
        padding: 20px;
    }

    .main-content {
        max-width: 320px;
        min-width: 280px;
        padding: 1.2rem;
    }
}

@media (min-width: 1200px) {
    .main-content {
        max-width: 320px;
        min-width: 300px;
        padding: 1.4rem;
    }
}

#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d0d0d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 5px solid #3b3b3b;
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.links-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.link-card {
    background-color: var(--card);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.link-text {
    align-items: center;
    font-size: 13px;
    font-weight: 300;
}

.custom-cursor {
    cursor: url(./pointer.png), auto !important;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.badge {
    position: relative;
    display: inline-block;
}

.badge img {
    width: 19px;
    border-radius: 50%;
    transform: scale(0.9);
    height: 19px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.badge:hover img {
    transform: scale(1.2);
}

.badge-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.badge:hover .badge-tooltip {
    visibility: visible;
    opacity: 1;
}