:root {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-glow: rgba(255, 255, 255, 0.15);


    --discord-color: #5865F2;
    --spotify-color: #1DB954;
    --twitch-color: #9146FF;
    --steam-color: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #050505;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    overflow-x: hidden;
    perspective: 1000px;
}


.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0a0a0f 0%, #000000 100%);
    overflow: hidden;
}

.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.background-animation::before {
    background: #4c1d95;
    top: -20%;
    left: -10%;
    animation-delay: -5s;
}

.background-animation::after {
    background: #0ea5e9;
    bottom: -20%;
    right: -10%;
    animation-delay: -10s;
}


.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(100px, 50px) rotate(10deg);
    }
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
}


.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--glass-shadow);
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
    animation: fadeIn 1s ease-out backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.profile-section {
    margin-bottom: 30px;
    transform: translateZ(20px);
}

.pfp-container-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.pfp-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.pfp {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}


.status-indicator {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 26px;
    height: 26px;
    background-color: #22c55e;
    border: 4px solid #18191c;
    border-radius: 50%;
    z-index: 2;
    box-sizing: border-box;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}


.trophy-strip {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    transform: translateZ(25px);
}

.trophy-item {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.trophy-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}


.gaming-widget {
    padding: 14px;
    border-radius: 14px;
    width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.03);
    box-sizing: border-box;
    cursor: default;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s ease;
    cursor: default;
}

.game-row:last-child {
    margin-bottom: 0;
}



.game-icon-container {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.valorant-bg {
    background: linear-gradient(135deg, #ff4655, #bd3944);
}

.lol-bg {
    background: linear-gradient(135deg, #c4a154, #8f7236);
}

.widget-icon {
    width: 20px;
    height: 20px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.game-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.game-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.rank-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.game-rank {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}

.rank-detail {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.75rem;
}

.trophy-item:hover .trophy-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 30px;
    transform: translateZ(30px);
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: var(--text-primary);
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.link-item:active {
    transform: translateY(0);
}

/* Icons */
.link-item i {
    font-size: 1.2rem;
}

.fa-discord {
    color: var(--discord-color);
}

.fa-twitch {
    color: var(--twitch-color);
}

.fa-spotify {
    color: var(--spotify-color);
}

.fa-steam {
    color: var(--steam-color);
}


.discord-btn {
    border: none;
    outline: none;
    width: 100%;
    position: relative;
    overflow: visible;
}

.copy-tooltip {
    position: absolute;
    top: -40px;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.discord-btn:hover .copy-tooltip,
.discord-btn.copied .copy-tooltip {
    opacity: 1;
    transform: translateY(0);
}


.spotify-widget {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 16px;
    border: none;
    transform: translateZ(10px);
    text-align: left;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.spotify-widget:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateZ(15px) translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spotify-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--spotify-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.spotify-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spotify-art-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a1a;
}

.spotify-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.spotify-song {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.spotify-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 10px;
    margin-bottom: 4px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.spotify-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 12px;
}

.spotify-progress-fill {
    height: 100%;
    background: var(--spotify-color);
    width: 0%;
    border-radius: 2px;
    position: relative;
}

.spotify-progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--spotify-color);
    border-radius: 50%;
    border: 2px solid #050505;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}


@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .glass-card {
        transform: none !important;
    }


}