* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #000;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background: #000;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 6px;
    border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

html,
body,
.main-screen {
    scrollbar-width: thin;
    scrollbar-color: #333333 #000000;
}

.initial-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.initial-screen.active {
    opacity: 1;
    visibility: visible;
}

.initial-screen.fade-out {
    opacity: 0;
    transform: scale(1);
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 8s infinite linear;
}

.floating-dot:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.floating-dot:nth-child(2) {
    left: 25%;
    animation-delay: -2s;
    animation-duration: 10s;
}

.floating-dot:nth-child(3) {
    left: 50%;
    animation-delay: -4s;
    animation-duration: 14s;
}

.floating-dot:nth-child(4) {
    left: 75%;
    animation-delay: -6s;
    animation-duration: 11s;
}

.floating-dot:nth-child(5) {
    left: 90%;
    animation-delay: -8s;
    animation-duration: 13s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

.click-text {
    font-size: 1.8rem;
    font-weight: 100;
    color: #fff;
    letter-spacing: 0.4em;
    text-transform: lowercase;
    position: relative;
    z-index: 10;
    animation: pulse 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.click-text:hover {
    transform: scale(1.02);
    letter-spacing: 0.5em;
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.01);
    }
}

.click-animation {
    animation: clickEffect 1s ease-out;
}

@keyframes clickEffect {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.main-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: -1;
}

.main-screen.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.main-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1;
}

.main-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.015) 0%, transparent 60%);
    animation: backgroundPulse 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 1;
        transform: scale(1.05) rotate(1deg);
    }
    66% {
        opacity: 0.9;
        transform: scale(0.98) rotate(-1deg);
    }
}

#background-video {
    display: none;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: floatParticle 12s infinite linear;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.particle:nth-child(1) { left: 15%; animation-delay: 0s; animation-duration: 10s; }
.particle:nth-child(2) { left: 25%; animation-delay: -2s; animation-duration: 14s; }
.particle:nth-child(3) { left: 35%; animation-delay: -4s; animation-duration: 11s; }
.particle:nth-child(4) { left: 45%; animation-delay: -6s; animation-duration: 13s; }
.particle:nth-child(5) { left: 55%; animation-delay: -8s; animation-duration: 9s; }
.particle:nth-child(6) { left: 65%; animation-delay: -1s; animation-duration: 15s; }
.particle:nth-child(7) { left: 75%; animation-delay: -3s; animation-duration: 12s; }
.particle:nth-child(8) { left: 85%; animation-delay: -5s; animation-duration: 10s; }

@keyframes floatParticle {
    0% {
        transform: translateY(110vh) translateX(-20px);
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    95% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(20px);
        opacity: 0;
    }
}

.containers-grid {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 40px;
    max-width: 1800px;
    margin: 0 auto;
}

.container-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.top-row {
    align-items: flex-start;
    margin-top: 20px;
}

.bottom-row {
    align-items: flex-end;
    margin-bottom: 20px;
}

.container {
    width: 400px;
    height: 330px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(79, 84, 92, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s ease-out forwards;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.container:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(79, 84, 92, 0.8);
}

.profile-header {
    position: absolute;
    top: 16px;
    right: 16px;
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 6px solid rgba(0, 0, 0, 0.8);
    object-fit: cover;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-avatar:hover {
    transform: scale(1.08);
    border-color: rgba(0, 0, 0, 0.9);
}

.profile-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    justify-content: flex-start;
}

.username-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 26px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.user-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.user-tag {
    font-size: 14px;
    color: #b5bac1;
    font-weight: 400;
}

.dot-spacer {
    color: #80848e;
    font-size: 14px;
    margin: 0 2px;
}

.pronouns {
    font-size: 14px;
    color: #b5bac1;
    font-weight: 500;
}

.clan-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(79, 84, 92, 0.3);
    border: 1px solid rgba(79, 84, 92, 0.6);
    border-radius: 12px;
    padding: 2px 6px;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clan-tag:hover {
    background-color: rgba(79, 84, 92, 0.4);
    border-color: rgba(79, 84, 92, 0.8);
}

.clan-badge {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.clan-text {
    font-size: 12px;
    font-weight: 500;
    color: #f2f3f5;
    line-height: 1;
}

.badges-container {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: 6px;
}

.badge-icon {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.badge-icon:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    color: #b5bac1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    line-height: 16px;
}

.about-text,
.section-content {
    font-size: 14px;
    color: #dbdee1;
    line-height: 18px;
    font-weight: 400;
}

.connection-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: rgba(79, 84, 92, 0.16);
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    box-sizing: border-box;
}

.connection-item:hover {
    background-color: rgba(79, 84, 92, 0.24);
}

.connection-arrow {
    pointer-events: auto;
}

.connection-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.connection-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    margin-left: 12px;
    margin-right: 8px;
    min-width: 0;
    height: 100%;
}

.connection-service {
    font-size: 14px;
    font-weight: 500;
    color: #f2f3f5;
    line-height: 16px;
    margin: 0 0 1px 0;
}

.connection-name {
    font-size: 12px;
    font-weight: 400;
    color: #b5bac1;
    line-height: 14px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connection-arrow {
    color: #b5bac1;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.connection-arrow:hover {
    background-color: rgba(79, 84, 92, 0.32);
    color: #f2f3f5;
}

.no-connection {
    cursor: default;
    pointer-events: none;
}

.no-connection .connection-details {
    display: flex;
    align-items: center;
    height: 100%;
}

.no-connection .connection-name {
    font-size: 12px;
    color: #72767d;
    font-style: italic;
    line-height: 14px;
    text-align: center;
}

.spotify-icon {
    background-color: #1DB954;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotify-icon::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJDNi40NzcgMiAyIDYuNDc3IDIgMTJTNi40NzcgMjIgMTIgMjIgMjIgMTcuNTIzIDIyIDEyIDE3LjUyMyAyIDEyIDJaTTE3LjA4NCAxNS40MDhDMTYuNzg0IDE1Ljg5OCAxNi4xNDQgMTYuMDQ4IDE1LjY1NCAxNS43NDhDMTMuMDY0IDE0LjE0OCA5LjUwNCAxMy43NTggNi4yNzQgMTQuNjQ4QzUuNzI0IDE0Ljc5OCA1LjE0NCAxNC40OTggNC45OTQgMTMuOTQ4QzQuODQ0IDEzLjM5OCA1LjE0NCAxMi44MTggNS42OTQgMTIuNjY4QzkuNDk0IDExLjY0OCAxMy41NzQgMTIuMDk4IDE2LjU4NCAxMy45NDhDMTcuMDc4IDE0LjI0OCAxNy4zODQgMTQuOTE4IDE3LjA4NCAxNS40MDhaTTE4LjUwNCAxMi41MDhDMTguMTU0IDEzLjA5OCAxNy4zOTQgMTMuMjg4IDE2LjgwNCAxMi45MzhDMTMuNzk0IDExLjEzOCA5LjYwNCAxMC42NTggNS43NzQgMTEuNzI4QzUuMDg0IDExLjkyOCA0LjM0NCAxMS41NzggNC4xNDQgMTAuODg4QzMuOTQ0IDEwLjE5OCA0LjI5NCA5LjQ1OCA0Ljk4NCA5LjI1OEM5LjQzNCA4LjAzOCAxNC4xOTQgOC41ODggMTcuNjY0IDEwLjY0OEMxOC4yNTQgMTAuOTk4IDE4LjQ0NCAxMS43NTggMTguNTA0IDEyLjUwOFpNMTguOTU0IDkuNTk4QzE4LjUzNCAxMC4yODggMTcuNjM0IDEwLjUxOCAxNi45NDQgMTAuMDk4QzEzLjQ5NCA4LjA0OCA4LjU2NCA3LjQ5OCA0LjI5NCA4LjgzOEMzLjQ5NCA5LjA4OCAyLjY0NCA4LjY1OCAyLjM5NCA3Ljg1OEMyLjE0NCA3LjA1OCAyLjU3NCA2LjIwOCAzLjM3NCA1Ljk1OEM4LjI5NCA0LjQ1OCAxMy45NzQgNS4xMjggMTguMDA0IDcuNDU4QzE4Ljc5NCA3Ljg3OCAxOS4wMzQgOC43NzggMTguOTU0IDkuNTk4WiIgZmlsbD0iI0ZGRkZGRiIvPgo8L3N2Zz4K');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.telegram-icon {
    background-color: #229ED9;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.telegram-icon::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuNzggMTguNjVMMTAuMDYgMTQuNDJMMTcuNzQgNy41QzE4LjA4IDcuMTkgMTcuNjcgNy4wNCAxNy4yMiA3LjMxTDcuNzQgMTMuMzJMMy42NCAxMS45OEMzLjEzIDExLjgzIDMuMTEgMTEuNDMgMy44MyAxMS4xNUwyMC4zIDQuNzFDMjAuNzEgNC41NCAyMS4wOCA0LjczIDIwLjkzIDUuMzVMMTguNzMgMTguNjVDMTguNjEgMTkuMTYgMTguMjQgMTkuMzIgMTcuNzQgMTkuMDVMMTMuNiAxNi4wNEwxMS4zNSAxOC4yQzExLjA4IDE4LjQ3IDEwLjg0IDE4LjcxIDEwLjI5IDE4LjcxTDEwLjU5IDE0LjQyTDkuNzggMTguNjVaIiBmaWxsPSIjRkZGRkZGIi8+Cjwvc3ZnPgo=');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.container:nth-child(1) { animation-delay: 0.2s; }
.container:nth-child(2) { animation-delay: 0.4s; }
.container:nth-child(3) { animation-delay: 0.6s; }

.bottom-row .container:nth-child(1) { animation-delay: 0.8s; }
.bottom-row .container:nth-child(2) { animation-delay: 1s; }
.bottom-row .container:nth-child(3) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1400px) {
    .container {
        width: 380px;
        min-height: 400px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
    }
    
    .profile-name {
        font-size: 18px;
    }
    
    .containers-grid {
        padding: 60px 40px;
        max-width: 1500px;
    }
    
    .container-row {
        gap: 30px;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 340px;
        min-height: 380px;
    }
    
    .profile-avatar {
        width: 65px;
        height: 65px;
    }
    
    .profile-name {
        font-size: 17px;
    }
    
    .containers-grid {
        padding: 50px 30px;
        max-width: 1200px;
    }
    
    .container-row {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .containers-grid {
        padding: 40px 20px;
        max-width: 100%;
        min-height: auto;
        justify-content: flex-start;
        gap: 30px;
    }
    
    .container {
        width: 300px;
        min-height: 360px;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
    }
    
    .profile-name {
        font-size: 16px;
    }
    
    .user-tag,
    .pronouns {
        font-size: 13px;
    }
    
    .about-text,
    .section-content {
        font-size: 13px;
    }
    
    .badge-icon {
        width: 16px;
        height: 16px;
    }
    
    .container-row {
        gap: 20px;
        justify-content: center;
    }
    
    .top-row {
        margin-top: 0;
    }
    
    .bottom-row {
        margin-bottom: 40px;
    }
    
    .click-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 280px;
        min-height: 340px;
    }
    
    .profile-avatar {
        width: 55px;
        height: 55px;
    }
    
    .profile-name {
        font-size: 15px;
    }
    
    .user-tag,
    .pronouns {
        font-size: 12px;
    }
    
    .about-text,
    .section-content {
        font-size: 12px;
    }
    
    .badge-icon {
        width: 14px;
        height: 14px;
    }
    
    .container-row {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .containers-grid {
        padding: 30px 15px;
        justify-content: flex-start;
        min-height: auto;
        gap: 20px;
    }
    
    .click-text {
        font-size: 1.3rem;
        letter-spacing: 0.3em;
    }
    
    .top-row {
        margin-top: 0;
    }
    
    .bottom-row {
        margin-bottom: 30px;
    }
}