* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #000000;
    color: white;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

#galaxyCanvas,
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: block;
}

#galaxyCanvas {
    z-index: -20;
}

#starCanvas {
    z-index: -19;
}

.canvas-fallback {
    background: linear-gradient(135deg, #1a0033 0%, #000000 50%, #330066 100%);
}

.canvas-fallback::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #9370db, transparent),
        radial-gradient(2px 2px at 40px 70px, #8a2be2, transparent),
        radial-gradient(1px 1px at 90px 40px, #ba55d3, transparent),
        radial-gradient(1px 1px at 130px 80px, #dda0dd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    z-index: -1;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    object-fit: cover;
    display: none;
}

.video-background.loaded {
    display: block;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -9;
    display: none;
}

.video-overlay.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 360px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-section {
    margin-bottom: 20px; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #6a0dad, #4b0082);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(138, 43, 226, 0.3);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.5);
    border-color: rgba(138, 43, 226, 0.6);
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profile-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #6a0dad, #4b0082);
}

.profile-name {
    font-size: 2.6em;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-subtitle {
    font-size: 1em;
    opacity: 0.8;
    margin-bottom: 15px; 
    font-weight: 300;
    color: #e0b3ff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 0 auto 25px auto;
    flex-wrap: wrap;
    padding: 0 10px;
    transition: all 0.3s ease;
    width: 100%;
}

.social-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    flex-shrink: 0;
    opacity: 0.7;
}

.social-icon svg {
    width: 28px;
    height: 28px;
    fill: #666;
    transition: all 0.3s ease;
}

.social-icon.kick svg {
    fill: #666;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.social-links:hover .social-icon:not(:hover) {
    opacity: 0.7;
    transform: scale(0.95);
}

.social-links:hover .social-icon:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
}

.social-icon.twitch:hover {
    background: #9146ff;
    border-color: #9146ff;
}

.social-icon.twitch:hover svg {
    fill: white;
}

.social-icon.kick:hover {
    background: #000000;
    border-color: #53fc18;
}

.social-icon.kick:hover svg path {
    fill: #53fc18 !important;
}

.social-icon.tiktok:hover {
    background: linear-gradient(135deg, #ff0050, #25f4ee);
    border-color: #ff0050;
}

.social-icon.tiktok:hover svg {
    fill: black;
}

.social-icon.instagram:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-color: #833ab4;
}

.social-icon.instagram:hover svg {
    fill: white;
}

.social-icon.twitter:hover {
    background: #000000;
    border-color: #ffffff;
}

.social-icon.twitter:hover svg {
    fill: white;
}

.link-tiles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.link-tile {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(15px);
    min-height: 70px;
    width: 100%;
    max-width: 360px;
    opacity: 0.8;
}

.link-tile:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4), 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    opacity: 1;
}

.link-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #9b9b9b, #6b6b6b);
}

.link-tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    filter: grayscale(1) brightness(0.7);
    display: none;
}

.link-tile-icon svg {
    display: block;
}

.tipply-icon img {
    display: block !important;
}

.tipply-icon svg {
    display: none;
}

.link-tile:has(.tipply-icon):hover {
    background: rgba(50, 64, 226, 0.2) !important;
    border-color: #000d99 !important;
    box-shadow: 0 0 20px rgba(45, 55, 167, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-3px) !important;
}

.link-tile:hover .tipply-icon {
    background: transparent !important;
}

.tipply-icon {
    background: transparent !important;
}

.link-tile:hover .tipply-icon img {
    filter: grayscale(0) brightness(1) saturate(1.2) !important;
}

.microphone-icon {
    width: 60px !important;
    height: 48px !important;
    border-radius: 7px;
    background: transparent !important;
    padding: 4px;
}

.microphone-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 4px;
    filter: grayscale(1) brightness(0.7);
    display: block !important;
}

.microphone-icon svg {
    display: none !important;
}

.link-tile:has(.microphone-icon):hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-3px) !important;
}

.link-tile:hover .microphone-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.05);
}

.link-tile:hover .microphone-icon img {
    filter: grayscale(0) brightness(1.1) !important;
    transform: scale(0.95);
}

.link-tile:has(.kinguin-icon):hover {
    background: rgba(255, 165, 0, 0.2) !important;
    border-color: #ff9900 !important;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-3px) !important;
}

.link-tile:hover .kinguin-icon svg {
    fill: white !important;
}

.link-tile:hover .kinguin-icon img {
    filter: grayscale(0) brightness(1) !important;
}

.kinguin-icon img {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    filter: grayscale(1) brightness(0.7);
}

.link-tile:has(.discord-icon):hover {
    background: rgba(88, 101, 242, 0.2) !important;
    border-color: #5865f2 !important;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-3px) !important;
}

.link-tile:has(.youtube-icon):hover {
    background: rgba(255, 0, 0, 0.2) !important;
    border-color: #ff0000 !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-3px) !important;
}

.link-tile:hover .discord-icon {
    background: linear-gradient(135deg, #5865f2, #404eed) !important;
}

.link-tile:hover .discord-icon svg {
    fill: white !important;
}

.link-tile:hover .discord-icon img {
    filter: grayscale(0) brightness(1) !important;
}

.link-tile:hover .youtube-icon {
    background: linear-gradient(135deg, #ff0000, #cc0000) !important;
}

.link-tile:hover .youtube-icon svg {
    fill: white !important;
}

.link-tile:hover .youtube-icon img {
    filter: grayscale(0) brightness(1) !important;
}

.link-tile:hover .contact-icon {
    background: #ffffff !important;
}

.link-tile:hover .contact-icon svg path {
    fill: #bf0001 !important;
}

.link-tile-content {
    text-align: left;
}

.link-tile-title {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 4px;
}

.link-tile-description {
    font-size: 0.85em;
    opacity: 0;
    transition: all 0.3s ease;
    height: 0;
    overflow: hidden;
}

.link-tile:hover .link-tile-description {
    opacity: 0.8;
    height: auto;
}

.contact-container {
    width: 100%;
    max-width: 360px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-personal {
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 2;
}

.contact-business {
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    max-width: 360px;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.contact-container.split {
    max-width: 732px;
    width: 732px;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
}

.contact-container.split .contact-personal {
    width: 360px;
    max-width: 360px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.contact-container.split .contact-business {
    width: 360px;
    max-width: 360px;
    flex-shrink: 0;
    position: relative;
    top: 0;
    left: 0;
    height: auto;
    opacity: 1;
    pointer-events: all;
    z-index: 2;
}

.contact-personal:hover {
    background: rgba(138, 43, 226, 0.2) !important;
    border-color: #8a2be2 !important;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-3px) !important;
}

.contact-personal:hover .contact-icon {
    background: #ffffff !important;
    transform: scale(1.1);
}

.contact-personal:hover .contact-icon svg path {
    fill: #8a2be2 !important;
}

.contact-personal:hover .contact-email {
    opacity: 1 !important;
    color: white !important;
    height: auto;
}

.contact-business .contact-icon {
    background: linear-gradient(135deg, #9b9b9b, #6b6b6b) !important;
}

.contact-business .contact-icon svg path {
    fill: #666 !important;
}

.contact-business:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    border-color: #d4af37 !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-3px) !important;
}

.contact-business:hover .contact-icon {
    background: #000000 !important;
    transform: scale(1.1);
}

.contact-business:hover .contact-icon svg path {
    fill: #d4af37 !important;
}

.contact-business:hover .contact-email {
    opacity: 1 !important;
    color: white !important;
    height: auto;
}

.contact-email {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 0.8em;
    color: #e0b3ff;
    margin-top: 2px;
}

.contact-personal:hover .contact-email,
.contact-business:hover .contact-email {
    opacity: 0.8;
    height: auto;
}

.contact-icon {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.copyright {
    position: fixed;
    bottom: 15px;
    right: 15px;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    pointer-events: none;
    z-index: 1000;
}

@media (max-width: 480px) {
    body {
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 12px;
    }
    
    .container {
        margin: 0 auto;
    }
    
    .profile-name {
        font-size: 1.8em;
    }
    
    .social-links {
        gap: 12px;
        margin: 0 auto 25px auto;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-email {
        font-size: 0.75em;
    }
    
    .contact-container {
        max-width: 360px !important;
        width: 100% !important;
    }
    
    .contact-container.split {
        flex-direction: column !important;
        max-width: 360px !important;
        width: 100% !important;
        gap: 12px;
    }
    
    .contact-container.split .contact-personal,
    .contact-container.split .contact-business {
        width: 100% !important;
        max-width: 360px !important;
        position: relative !important;
    }
}

@media (max-height: 600px) {
    body {
        align-items: center;
        justify-content: center;
        overflow-y: auto;
    }
    
    .profile-section {
        margin-bottom: 20px;
    }
    
    .social-links {
        margin: 0 auto 20px auto;
    }
    
    .link-tiles {
        gap: 8px;
    }
}

@media (min-width: 481px) {
    .social-links {
        max-width: none;
    }
    
    .social-links:has(.social-icon:nth-child(3):not(.social-icon:nth-child(4))) {
        gap: 20px;
    }
    
    .social-links:has(.social-icon:nth-child(4)) {
        gap: 15px;
    }
    
    .social-links:has(.social-icon:nth-child(6)) {
        flex-wrap: wrap;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        gap: 12px;
    }
    
    .contact-container {
        align-self: center;
    }
}