html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
}

.background {
    width: 100%;
    min-height: 100vh;
    background-image: url("https://cdn.discordapp.com/banners/1324495029406007409/2843d4825f448c8217a79a106799f8c7.png?size=4096");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-card {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
}

.profile-card {
    width: min(600px, 100%);
    background: rgba(55, 18, 85, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border-radius: 28px;
    padding: 32px 24px 120px;
    text-align: center;
    color: #f3f0ff;
    backdrop-filter: blur(12px);
    position: relative;
}

.flag-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.flag-badge:hover {
    transform: scale(1.15);
}

.flag-badge:hover .flag-badge-inner {
    border-color: rgba(255, 255, 255, 0.7);
}

.flag-badge-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flag-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%);
    background: rgba(30, 10, 50, 0.95);
    color: #f3f0ff;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.flag-badge:hover .flag-badge-tooltip {
    opacity: 1;
}

.dev-badge {
    right: 52px;
}

.avatar-frame {
    width: 150px;
    height: 150px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: transparent;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: visible;
}

.avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-decoration {
    position: absolute;
    width: 120%;
    height: 120%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.profile-card h1,
.profile-card p {
    margin: 0 0 10px;
    font-size: 2.6rem;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg,
        #ff004c,
        #ff8c00,
        #ffd500,
        #00d084,
        #00b4ff,
        #6a5cff,
        #ff2dd4,
        #ff004c
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: rainbowSweep 4.5s linear infinite;
    will-change: background-position;
}

.profile-card p {
    animation-duration: 2.2s;
}

.social-icons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.discord-icon {
    font-size: 2rem;
    color: #ffffff;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;
}

.discord-icon:hover {
    transform: scale(1.2);
    color: #ffffff;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 1),
        0 0 30px rgba(180, 140, 255, 0.8),
        0 0 50px rgba(140, 80, 255, 0.5);
}

.github-icon {
    font-size: 2rem;
    color: #ffffff;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.github-icon:hover {
    transform: scale(1.2);
    text-shadow:
        0 0 12px rgba(255, 255, 255, 1),
        0 0 30px rgba(180, 140, 255, 0.8),
        0 0 50px rgba(140, 80, 255, 0.5);
}

.twitch-icon {
    font-size: 2rem;
    color: #ffffff;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.twitch-icon:hover {
    transform: scale(1.2);
    text-shadow:
        0 0 12px rgba(255, 255, 255, 1),
        0 0 30px rgba(180, 140, 255, 0.8),
        0 0 50px rgba(140, 80, 255, 0.5);
}

@keyframes rainbowSweep {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}