@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%; 
    font-family: 'Roboto Mono', monospace;
    color: #fff;
    /* ИЗМЕНЕНО: Фон сделан абсолютно черным */
    background-color: #000000; 
    cursor: none !important; 
    height: 100%; 
    overflow-x: hidden;
}

a, button, input[type="button"], input[type="submit"], input[type="reset"], input[type="range"], [role="button"], .link-button, #play-pause-button, #prev-track-button, #next-track-button {
    cursor: none !important;
}

body {
    display: flex; 
    justify-content: center;
    align-items: center; 
    padding: 5vh 0; 
    box-sizing: border-box; 
    min-height: 100vh; 
    perspective: 1000px; 
}

#cursor-glow {
    position: fixed;
    width: 16px; 
    height: 16px;
    border-radius: 50%;
    /* ИЗМЕНЕНО: Цвет и тень курсора сделаны значительно ярче */
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 18px 9px rgba(255, 255, 255, 0.3);
    pointer-events: none; 
    transform: translate(-50%, -50%) scale(0); 
    z-index: 9999;
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.3s ease-out; 
}

#cursor-glow.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#cursor-glow.touch-active { 
    transform: translate(-50%, -50%) scale(1.2); 
    background-color: rgba(255, 255, 255, 0.4); /* Также немного ярче при касании */
}

/* Стили для видео и оверлея убраны или скрыты */
#background-video {
    display: none;
}

.overlay {
    display: none;
}

.container {
    max-width: 650px;
    width: 90%;
    z-index: 3; 
    text-align: center; 
    margin: auto; 
    position: relative; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    transform-style: preserve-3d; 
}

@keyframes fadeInContainer { 
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInElementWithBlur { 
    from { 
        opacity: 0; 
        backdrop-filter: blur(0px); 
        -webkit-backdrop-filter: blur(0px); 
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px); 
    }
}

.content-box { 
    background-color: rgba(35, 35, 35, 0.25); 
    border-radius: 15px; 
    padding: 30px; 
    margin-bottom: 30px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    width: 100%; 
    box-sizing: border-box;
    opacity: 0; 
    backdrop-filter: blur(0px); 
    -webkit-backdrop-filter: blur(0px);
    animation: fadeInElementWithBlur 1.5s ease-in-out 0.2s forwards; 
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d; 
    transition: transform 0.05s linear; 
}

.content-box header {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%; 
}

footer { 
    width: 100%; 
    box-sizing: border-box;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

footer > p { 
    background-color: transparent; 
    backdrop-filter: none !important; 
    -webkit-backdrop-filter: none !important;
    border: none;
    box-shadow: none;
    padding: 15px 0 0 0; 
    margin-bottom: 0;
    color: #999; 
    font-size: 0.9em;
    width: 100%; 
    opacity: 0; 
    transform: translateY(20px); 
    animation: fadeInContainer 1.5s ease-in-out 0.6s forwards; 
    text-align: center; 
}

.avatar { 
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8); 
    margin-bottom: 20px; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    object-fit: cover;
}
.avatar:hover { 
    transform: scale(1.1); 
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

#username { 
    font-size: 2.5em; 
    margin-top: 0; 
    margin-bottom: 10px; 
    letter-spacing: 2px;
    position: relative; 
    color: #fff; 
    font-weight: bold; 
    display: inline-block; 
    outline: none; 
    text-align: center; 
}
#username::before, 
#username::after { 
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
}
#username::before { 
    color: #555; 
    animation: soul-tear-one 6s infinite ease-in-out alternate;
    filter: blur(0.5px);
}
#username::after { 
    color: #ccc; 
    animation: soul-tear-two 8s infinite ease-in-out alternate;
}

.uid-tooltip {
    position: absolute;
    left: 100%; 
    top: 50%;   
    transform: translateY(-50%) translateX(10px); 
    background-color: rgba(255, 255, 255, 0.11); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.5em; 
    white-space: nowrap; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.3s ease; 
    pointer-events: none; 
    z-index: 10; 
}

#username:hover .uid-tooltip,
#username:focus .uid-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(15px); 
    transition-delay: 0s, 0s, 0s; 
}


@keyframes soul-tear-one { 
    0% { clip-path: polygon(0% 0%, 10% 0%, 5% 100%, 0% 100%); transform: translate(-2px, -1px) skewX(-5deg); opacity: 0.7; } 
    20% { clip-path: polygon(0% 40%, 25% 50%, 15% 100%, 0% 90%); transform: translate(1px, 2px) scaleY(1.1) skewX(2deg); opacity: 0.4; } 
    40% { clip-path: polygon(40% 0%, 50% 10%, 45% 80%, 35% 100%); transform: translate(-1px, -2px) scaleX(1.2) skewX(-3deg); opacity: 0.6; } 
    60% { clip-path: polygon(70% 30%, 90% 20%, 85% 90%, 65% 80%); transform: translate(2px, 1px) scaleY(0.9) skewX(4deg); opacity: 0.3; } 
    80% { clip-path: polygon(90% 0%, 100% 5%, 98% 100%, 88% 95%); transform: translate(-2px, 2px) scaleX(1.1) skewX(-2deg); opacity: 0.5; } 
    100% { clip-path: polygon(0% 50%, 15% 60%, 5% 100%, 0% 100%); transform: translate(1px, -1px) skewX(5deg); opacity: 0.7; }
}
@keyframes soul-tear-two { 
    0% { clip-path: inset(80% 0% 5% 0%); transform: translate(1px, 1px) scale(1.05, 0.8); opacity: 0.8; } 
    25% { clip-path: inset(5% 70% 60% 5%); transform: translate(-2px, -1px) scale(0.9, 1.2) skewY(-5deg); opacity: 0.5; } 
    50% { clip-path: inset(40% 30% 30% 40%); transform: translate(0.5px, 0.5px) scale(1.1, 1.1); opacity: 0.9; filter: drop-shadow(0 0 3px #fff); } 
    75% { clip-path: inset(10% 5% 50% 80%); transform: translate(2px, 1.5px) scale(0.95, 1.3) skewY(5deg); opacity: 0.6; } 
    100% { clip-path: inset(5% 0% 85% 0%); transform: translate(-1px, -1px) scale(1.05, 0.7); opacity: 0.8; }
}

#bio { 
    font-size: 1em; 
    margin-top: 0; 
    margin-bottom: 25px; 
    line-height: 1.6;
    color: #ccc;
    text-align: center; 
}

.links { 
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 18px; 
    width: 100%; 
}

.link-button { 
    background-color: rgba(60, 60, 60, 0.4); 
    color: #e0e0e0;
    padding: 16px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    width: 100%; 
    max-width: 350px; 
    box-sizing: border-box;
}
.link-button:hover { 
    background-color: rgba(90, 90, 90, 0.5);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    color: #fff;
}
.link-button:active { 
    transform: translateY(-1px) scale(0.99);
    background-color: rgba(100, 100, 100, 0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.link-button i { 
    font-size: 1.2em;
}

@media (max-width: 1024px) { 
}

@media (max-width: 600px) {
    body { 
        padding-top: 3vh; 
        padding-bottom: 3vh; 
    }
    .content-box { 
        padding: 20px; 
        margin-bottom: 20px; 
    }
    #username { 
        font-size: 2.2em; 
    }
    .avatar { 
        width: 100px; 
        height: 100px; 
    }
    .link-button { 
        padding: 15px 20px; 
        font-size: 1.1em; 
        max-width: 100%; 
    }
}