/* ═══════════════════════════════════════════════════════════
   YuRiiXyubel – Premium Yu-Gi-Oh! Link Hub Design System
   ═══════════════════════════════════════════════════════════ */

:root {
    --yugi-blue: #0066ff;
    --yugi-red: #ff1744;
    --yugi-gold: #ffd700;
    --yugi-purple: #9146ff;
    --discord: #5865f2;
    --glass-bg: rgba(8, 12, 28, 0.55);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-highlight: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow-blue: 0 0 40px rgba(0, 102, 255, 0.35);
    --shadow-glow-red: 0 0 40px rgba(255, 23, 68, 0.25);
    --radius-lg: 24px;
    --radius-xl: 32px;
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --shine-x: 50%;
    --shine-y: 50%;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #030508;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(88, 28, 160, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 15% 20%, rgba(120, 40, 200, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 55% 40% at 88% 35%, rgba(60, 15, 100, 0.12) 0%, transparent 48%);
    pointer-events: none;
    animation: smokeAmbient 18s ease-in-out infinite alternate;
}

@keyframes smokeAmbient {
    0%, 100% { opacity: 0.82; }
    50% { opacity: 1; }
}

/* Mobile: Einheitliche Performance-optimierte Version */
@media (max-width: 768px) {
    :root {
        --glass-bg: rgba(18, 8, 32, 0.94);
        --glass-border: rgba(100, 48, 165, 0.38);
        --glass-highlight: rgba(145, 70, 255, 0.06);
    }

    body {
        background: #020104;
    }

    body::after {
        display: block;
        background:
            radial-gradient(ellipse 120% 80% at 50% 110%, rgba(88, 28, 160, 0.42) 0%, transparent 60%),
            radial-gradient(ellipse 70% 50% at 20% 30%, rgba(60, 15, 110, 0.28) 0%, transparent 55%),
            radial-gradient(ellipse 65% 45% at 85% 60%, rgba(100, 30, 180, 0.22) 0%, transparent 50%);
        animation: none;
        opacity: 1;
        transform: none;
    }

    body::before {
        animation: none;
    }
    
    /* Mobile: Sterne komplett deaktivieren für bessere Performance */
    .star, .pre-star {
        display: none !important;
    }
    
    /* Mobile: undurchsichtiges Purple-Glass statt weißer Frost-Kanten */
    .link-item {
        background: linear-gradient(160deg, rgba(24, 12, 42, 0.94) 0%, rgba(14, 8, 28, 0.97) 100%) !important;
        border: 1px solid rgba(100, 48, 165, 0.38) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
        transform: none !important;
        transition: transform 0.15s ease !important;
    }
    
    .link-item:hover {
        background: linear-gradient(160deg, rgba(30, 14, 52, 0.96) 0%, rgba(18, 10, 34, 0.98) 100%) !important;
        transform: scale(1.02) !important;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45) !important;
        border-color: rgba(120, 60, 190, 0.45) !important;
    }
    
    /* Verstecke zusätzliche Sterne auf Mobile */
    .star-mobile {
        display: none !important;
    }
    
    /* Mobile: Reduziere alle Animationen drastisch */
    .link-item {
        animation: none !important;
    }
    
    .link-item a::before {
        display: none !important; /* Verstecke Shimmer-Effekt */
    }
    
    .link-icon {
        transition: transform 0.1s ease !important;
    }
    
    .link-item:hover .link-icon {
        transform: scale(1.05) !important; /* Reduzierte Hover-Animation */
    }
    
    
    /* Reduziere Partikel-Anzahl */
    .light-point {
        display: none !important;
    }
    
    /* Mobile: Deaktiviere Overlay-Bild komplett */
    #overlay-image {
        display: none !important;
    }
    
    /* Mobile: Reduziere Header-Animationen */
    .header {
        animation: none !important;
    }
    
    .profile-pic {
        transition: none !important;
    }
    
    .profile-pic:hover {
        transform: none !important;
    }
    
    /* Mobile: Username – statischer Gradient, keine Animation */
    .username-glow {
        background: linear-gradient(135deg, #4d9fff, #ffffff, #ff4d6d);
        background-size: 100% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: none;
        text-shadow: none;
        position: relative;
        z-index: 2;
    }
    
    /* Container-Optimierungen */
    .container {
        padding: 12px;
        max-width: 100vw;
    }
    
    /* Mobile: Kein GPU-Layer auf body – verhindert Jank */
    body {
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
    }
    
    /* Mobile: Reduziere alle will-change Properties */
    * {
        will-change: auto !important;
    }
    
    /* Mobile: Deaktiviere alle komplexen Transitions */
    .link-item, .link-icon, .profile-pic, .header {
        transition: transform 0.1s ease !important;
    }
    
    .header {
        margin-bottom: 16px;
    }
    
    /* Overlay-Bild ausblenden */
    #overlay-image {
        display: none;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -2;
    transform: translateZ(0);
    pointer-events: none;
    box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.75);
}

body.vignette-pulse::before {
    animation: cosmicPulse 12s ease-in-out infinite;
}

@keyframes cosmicPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.82; }
}

/* Mobile-spezifische Anpassungen */

/* Page transition curtain */
#page-curtain {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9998;
    opacity: 1;
    pointer-events: none;
    transition: opacity 1.2s ease-in-out;
}

#page-curtain.is-revealing {
    opacity: 0;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0a1020 0%, #000 70%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out, background 0.6s ease;
}

#loading-screen.is-fading {
    opacity: 0;
    background: #000;
}

.loading-content {
    text-align: center;
    color: white;
    animation: loadingContentIn 0.9s var(--ease-spring) both;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.loading-content.is-fading {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
}

@keyframes loadingContentIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.loading-logo {
    width: auto;
    height: auto;
    margin: 0 auto 24px;
    border-radius: 0;
    overflow: visible;
    position: relative;
    transform: translateZ(0);
    display: inline-block;
}

.loading-logo::before,
.loading-logo::after {
    display: none;
}

.loading-logo-img {
    width: min(140px, 40vw);
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    border: none;
    position: relative;
    z-index: 1;
    display: block;
    animation: logoGlowPulse 2.8s ease-in-out infinite;
    filter:
        drop-shadow(0 0 8px rgba(145, 70, 255, 0.55))
        drop-shadow(0 0 22px rgba(88, 28, 160, 0.45))
        drop-shadow(0 0 40px rgba(0, 102, 255, 0.25));
}

@keyframes logoGlowPulse {
    0%, 100% {
        transform: scale(1);
        filter:
            drop-shadow(0 0 8px rgba(145, 70, 255, 0.5))
            drop-shadow(0 0 20px rgba(88, 28, 160, 0.4))
            drop-shadow(0 0 36px rgba(0, 102, 255, 0.2));
    }
    50% {
        transform: scale(1.03);
        filter:
            drop-shadow(0 0 14px rgba(145, 70, 255, 0.75))
            drop-shadow(0 0 32px rgba(88, 28, 160, 0.55))
            drop-shadow(0 0 50px rgba(0, 102, 255, 0.35));
    }
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--yugi-blue), #fff, var(--yugi-red));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loadingTextShimmer 2s linear infinite, loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingTextShimmer {
    to { background-position: 200% center; }
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Pre-Info Screen */
#pre-info-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(0, 102, 255, 0.08) 0%, #000 65%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.8s ease-out, visibility 1.8s ease-out;
}

/* Container sollte standardmäßig sichtbar sein */
.container {
    opacity: 1;
    visibility: visible;
}

/* Verstecke Seite bis Transition fertig */
body.pre-loading .container,
body.pre-loading #overlay-image,
body.pre-loading #smoke-wallpaper,
body.pre-loading #smoke-canvas {
    opacity: 0;
    visibility: hidden;
}

body.loaded .container,
body.loaded #overlay-image,
body.loaded #smoke-wallpaper,
body.loaded #smoke-canvas {
    opacity: 1;
    visibility: visible;
}

#pre-info-screen.show {
    opacity: 1;
    visibility: visible;
}

#pre-info-screen.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 2s ease-out, visibility 2s ease-out !important;
}

.pre-info-content {
    text-align: center;
    color: white;
    animation: preInfoSlideUp 0.8s ease-out;
}


.pre-info-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.pre-info-glow {
    background: linear-gradient(135deg, var(--yugi-blue), #ffffff, var(--yugi-red), var(--yugi-blue));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holoShift 3s ease-in-out infinite, preInfoGlow 2.5s ease-in-out infinite;
    will-change: background-position;
    transform: translateZ(0);
    position: relative;
    z-index: 2;
}

@keyframes holoShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pre-info-stars {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.pre-star {
    position: absolute;
    font-size: 0.6rem;
    opacity: 0.8;
    display: block;
    will-change: transform, opacity;
}

.pre-star-1 { top: 15%; left: 15%; animation: starDance1 4s linear infinite !important; }
.pre-star-2 { top: 25%; right: 20%; animation: starDance2 3.5s linear infinite !important; }
.pre-star-3 { bottom: 25%; left: 10%; animation: starDance3 4.2s linear infinite !important; }
.pre-star-4 { bottom: 15%; right: 15%; animation: starDance4 3.8s linear infinite !important; }
.pre-star-5 { top: 55%; left: 5%; animation: starDance5 4.5s linear infinite !important; }
.pre-star-6 { top: 65%; right: 10%; animation: starDance6 3.2s linear infinite !important; }
.pre-star-7 { top: 35%; left: 25%; animation: starDance7 4.8s linear infinite !important; }
.pre-star-8 { top: 65%; right: 30%; animation: starDance8 3.6s linear infinite !important; }
.pre-star-9 { bottom: 15%; left: 20%; animation: starDance9 4.1s linear infinite !important; }
.pre-star-10 { top: 75%; right: 5%; animation: starDance10 3.9s linear infinite !important; }
.pre-star-11 { top: 5%; left: 30%; animation: starDance11 4.3s linear infinite !important; }
.pre-star-12 { bottom: 5%; right: 25%; animation: starDance12 3.7s linear infinite !important; }
.pre-star-13 { top: 85%; left: 15%; animation: starDance13 4.6s linear infinite !important; }
.pre-star-14 { top: 10%; right: 35%; animation: starDance14 3.4s linear infinite !important; }
.pre-star-15 { bottom: 40%; left: 35%; animation: starDance15 4.4s linear infinite !important; }
.pre-star-16 { top: 40%; right: 40%; animation: starDance16 3.3s linear infinite !important; }

.pre-info-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 40px;
    animation: preInfoFadeIn 1s ease-out 0.5s both;
}

.pre-info-loading {
    margin-top: 20px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--yugi-blue), var(--yugi-red));
    border-radius: 50%;
    animation: preInfoDotBounce 1.2s ease-in-out infinite both;
    box-shadow: 0 0 16px rgba(0, 102, 255, 0.7);
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes preInfoSlideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes preInfoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
    50% {
        transform: scale(1.3);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 1));
    }
}


@keyframes preInfoGradient {
    0% {
        background-position: 0% 50%;
        transform: translateZ(0); /* Hardware acceleration */
    }
    50% {
        background-position: 100% 50%;
        transform: translateZ(0);
    }
    100% {
        background-position: 0% 50%;
        transform: translateZ(0);
    }
}

@keyframes preInfoGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 102, 255, 0.4), 0 0 40px rgba(255, 0, 0, 0.2);
        transform: translateZ(0); /* Hardware acceleration */
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 102, 255, 0.6), 0 0 60px rgba(255, 0, 0, 0.4);
        transform: translateZ(0);
    }
}

@keyframes preInfoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes preInfoDotBounce {
    0%, 80%, 100% {
        transform: scale(0.3);
        opacity: 0.3;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes starDance1 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(20px, -15px) scale(0.8) rotate(90deg); opacity: 0.8; }
    50% { transform: translate(-10px, -25px) scale(0.6) rotate(180deg); opacity: 0.6; }
    75% { transform: translate(-15px, -5px) scale(0.9) rotate(270deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(360deg); opacity: 0.3; }
}

@keyframes starDance2 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(-15px, 20px) scale(0.8) rotate(-90deg); opacity: 0.8; }
    50% { transform: translate(20px, 15px) scale(0.6) rotate(-180deg); opacity: 0.6; }
    75% { transform: translate(10px, -10px) scale(0.9) rotate(-270deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(-360deg); opacity: 0.3; }
}

@keyframes starDance3 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(10px, 20px) scale(0.8) rotate(45deg); opacity: 0.8; }
    50% { transform: translate(-15px, 10px) scale(0.6) rotate(90deg); opacity: 0.6; }
    75% { transform: translate(20px, -15px) scale(0.9) rotate(135deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(180deg); opacity: 0.3; }
}

@keyframes starDance4 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(-20px, -10px) scale(0.8) rotate(-45deg); opacity: 0.8; }
    50% { transform: translate(15px, -20px) scale(0.6) rotate(-90deg); opacity: 0.6; }
    75% { transform: translate(-10px, 15px) scale(0.9) rotate(-135deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(-180deg); opacity: 0.3; }
}

@keyframes starDance5 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(20px, 5px) scale(0.8) rotate(60deg); opacity: 0.8; }
    50% { transform: translate(-10px, 20px) scale(0.6) rotate(120deg); opacity: 0.6; }
    75% { transform: translate(-15px, -10px) scale(0.9) rotate(180deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(240deg); opacity: 0.3; }
}

@keyframes starDance6 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(-15px, 20px) scale(0.8) rotate(-60deg); opacity: 0.8; }
    50% { transform: translate(20px, -10px) scale(0.6) rotate(-120deg); opacity: 0.6; }
    75% { transform: translate(10px, 15px) scale(0.9) rotate(-180deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(-240deg); opacity: 0.3; }
}

@keyframes starDance7 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(5px, -20px) scale(0.8) rotate(30deg); opacity: 0.8; }
    50% { transform: translate(-20px, -5px) scale(0.6) rotate(60deg); opacity: 0.6; }
    75% { transform: translate(15px, 15px) scale(0.9) rotate(90deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(120deg); opacity: 0.3; }
}

@keyframes starDance8 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(-20px, 15px) scale(0.8) rotate(-30deg); opacity: 0.8; }
    50% { transform: translate(10px, 20px) scale(0.6) rotate(-60deg); opacity: 0.6; }
    75% { transform: translate(-15px, -15px) scale(0.9) rotate(-90deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(-120deg); opacity: 0.3; }
}

@keyframes starDance9 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(15px, 15px) scale(0.8) rotate(75deg); opacity: 0.8; }
    50% { transform: translate(-5px, -20px) scale(0.6) rotate(150deg); opacity: 0.6; }
    75% { transform: translate(-20px, 5px) scale(0.9) rotate(225deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(300deg); opacity: 0.3; }
}

@keyframes starDance10 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(-10px, -15px) scale(0.8) rotate(-75deg); opacity: 0.8; }
    50% { transform: translate(20px, 10px) scale(0.6) rotate(-150deg); opacity: 0.6; }
    75% { transform: translate(10px, -20px) scale(0.9) rotate(-225deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(-300deg); opacity: 0.3; }
}

@keyframes starDance11 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(20px, -10px) scale(0.8) rotate(105deg); opacity: 0.8; }
    50% { transform: translate(-15px, 15px) scale(0.6) rotate(210deg); opacity: 0.6; }
    75% { transform: translate(-20px, -20px) scale(0.9) rotate(315deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(420deg); opacity: 0.3; }
}

@keyframes starDance12 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(-20px, 10px) scale(0.8) rotate(-105deg); opacity: 0.8; }
    50% { transform: translate(15px, -15px) scale(0.6) rotate(-210deg); opacity: 0.6; }
    75% { transform: translate(20px, 20px) scale(0.9) rotate(-315deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(-420deg); opacity: 0.3; }
}

@keyframes starDance13 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(10px, 20px) scale(0.8) rotate(135deg); opacity: 0.8; }
    50% { transform: translate(-20px, -10px) scale(0.6) rotate(270deg); opacity: 0.6; }
    75% { transform: translate(20px, 10px) scale(0.9) rotate(405deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(540deg); opacity: 0.3; }
}

@keyframes starDance14 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(-10px, -20px) scale(0.8) rotate(-135deg); opacity: 0.8; }
    50% { transform: translate(20px, 10px) scale(0.6) rotate(-270deg); opacity: 0.6; }
    75% { transform: translate(-20px, -10px) scale(0.9) rotate(-405deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(-540deg); opacity: 0.3; }
}

@keyframes starDance15 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(25px, 5px) scale(0.8) rotate(165deg); opacity: 0.8; }
    50% { transform: translate(-15px, 20px) scale(0.6) rotate(330deg); opacity: 0.6; }
    75% { transform: translate(-10px, -25px) scale(0.9) rotate(495deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(660deg); opacity: 0.3; }
}

@keyframes starDance16 {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(-25px, -5px) scale(0.8) rotate(-165deg); opacity: 0.8; }
    50% { transform: translate(15px, -20px) scale(0.6) rotate(-330deg); opacity: 0.6; }
    75% { transform: translate(10px, 25px) scale(0.9) rotate(-495deg); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(0.5) rotate(-660deg); opacity: 0.3; }
}


/* Pre-Star Animationen verwenden die gleichen Keyframes wie die Haupt-Sterne */


@keyframes overlayRotate {
    0% {
        transform: translateZ(0) rotate(0deg);
    }
    100% {
        transform: translateZ(0) rotate(-360deg);
    }
}

/* Overlay Image */
/* Overlay Image – rotierendes Yu-Gi-Oh! Motiv über den Karten */
#overlay-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('unbenannt-2.png') center center / 75% no-repeat;
    z-index: 0;
    pointer-events: none;
    opacity: 0.75;
    filter: brightness(0.45) contrast(1.4);
    animation: overlayRotate 24s linear infinite, overlayOpacity 8s ease-in-out infinite;
    transform: translateZ(0);
    will-change: transform, opacity;
}

@keyframes overlayOpacity {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.88; }
}

#smoke-wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    pointer-events: none;
    background: #020104;
}

#smoke-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile: Canvas komplett deaktivieren für bessere Performance */
@media (max-width: 768px) {
    #smoke-canvas {
        display: none !important;
    }
}


.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* PC: Vertikale Zentrierung */
@media (min-width: 769px) {
    .container {
        justify-content: center;
        padding: 40px 16px;
    }
    
    .header {
        margin-bottom: 32px;
    }
    
    .links-container {
        margin-bottom: 0;
    }
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeInUp 1s var(--ease-spring) both;
}

.profile-pic {
    width: auto;
    height: auto;
    margin: 0 auto 20px;
    position: relative;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.4s var(--ease-spring);
    display: inline-block;
}

.profile-pic::before,
.profile-pic::after {
    display: none;
}

.profile-image {
    width: min(120px, 32vw);
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    border: none;
    position: relative;
    z-index: 1;
    display: block;
    transition: transform 0.4s var(--ease-spring), filter 0.4s ease;
    filter:
        drop-shadow(0 0 10px rgba(145, 70, 255, 0.5))
        drop-shadow(0 0 24px rgba(88, 28, 160, 0.4))
        drop-shadow(0 0 42px rgba(0, 102, 255, 0.22));
    animation: logoGlowPulse 3.2s ease-in-out infinite;
}

.profile-pic:hover {
    transform: scale(1.06);
}

.profile-pic:hover .profile-image {
    transform: scale(1.04);
    filter:
        drop-shadow(0 0 16px rgba(145, 70, 255, 0.8))
        drop-shadow(0 0 36px rgba(88, 28, 160, 0.6))
        drop-shadow(0 0 56px rgba(0, 102, 255, 0.4));
}

/* PC: Größeres Logo */
@media (min-width: 769px) {
    .profile-pic {
        margin-bottom: 24px;
    }

    .profile-image {
        width: min(200px, 42vw);
    }
}

.username {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.username-glow {
    background: linear-gradient(135deg, var(--yugi-blue), #fff, var(--yugi-red), var(--yugi-blue));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holoShift 3s ease-in-out infinite, preInfoGlow 2.5s ease-in-out infinite;
    will-change: background-position;
    transform: translateZ(0);
    position: relative;
    z-index: 2;
}

.stars-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    font-size: 0.4rem;
    opacity: 0.7;
    display: block;
    will-change: transform, opacity;
}

.star-1 { top: 15%; left: 10%; animation: starDance1 4s linear infinite !important; }
.star-2 { top: 25%; right: 15%; animation: starDance2 3.5s linear infinite !important; }
.star-3 { bottom: 35%; left: 5%; animation: starDance3 4.2s linear infinite !important; }
.star-4 { bottom: 25%; right: 10%; animation: starDance4 3.8s linear infinite !important; }
.star-5 { top: 45%; left: 8%; animation: starDance5 4.5s linear infinite !important; }
.star-6 { top: 55%; right: 12%; animation: starDance6 3.2s linear infinite !important; }
.star-7 { top: 35%; left: 25%; animation: starDance7 4.8s linear infinite !important; }
.star-8 { top: 65%; right: 30%; animation: starDance8 3.6s linear infinite !important; }
.star-9 { bottom: 15%; left: 20%; animation: starDance9 4.1s linear infinite !important; }
.star-10 { top: 75%; right: 5%; animation: starDance10 3.9s linear infinite !important; }
.star-11 { top: 5%; left: 30%; animation: starDance11 4.3s linear infinite !important; }
.star-12 { bottom: 5%; right: 25%; animation: starDance12 3.7s linear infinite !important; }
.star-13 { top: 85%; left: 15%; animation: starDance13 4.6s linear infinite !important; }
.star-14 { top: 10%; right: 35%; animation: starDance14 3.4s linear infinite !important; }
.star-15 { bottom: 40%; left: 35%; animation: starDance15 4.4s linear infinite !important; }
.star-16 { top: 40%; right: 40%; animation: starDance16 3.3s linear infinite !important; }

.bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Discord Card – Premium Hero (über allen Links) */
.discord-hero {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
}

.discord-hero-item {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.28) 0%, rgba(12, 8, 32, 0.75) 45%, rgba(55, 18, 120, 0.2) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(88, 101, 242, 0.45),
        0 12px 40px rgba(88, 101, 242, 0.25),
        0 0 60px rgba(145, 70, 255, 0.12);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
    border: none;
    position: relative;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.discord-border-glow {
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: conic-gradient(from 0deg, #5865f2, #a855f7, #7289da, #5865f2, #9146ff, #5865f2);
    animation: discordBorderSpin 4s linear infinite, discordGlowPulse 3.5s ease-in-out infinite;
    z-index: 0;
    opacity: 0.85;
}

@keyframes discordGlowPulse {
    0%, 100% { opacity: 0.72; }
    50% { opacity: 0.95; }
}

@keyframes discordBorderSpin {
    to { transform: rotate(360deg); }
}

.discord-shine {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: skewX(-18deg);
    animation: discordShineSweep 5s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes discordShineSweep {
    0%, 75% { left: -120%; opacity: 0; }
    85% { opacity: 1; }
    100% { left: 180%; opacity: 0; }
}

.discord-hero-item::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(8, 10, 28, 0.92) 0%, rgba(18, 12, 40, 0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

.discord-hero-item:hover {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.045) translateZ(0);
    animation: none;
    box-shadow:
        0 0 0 1px rgba(114, 137, 218, 0.7),
        0 20px 60px rgba(88, 101, 242, 0.45),
        0 0 100px rgba(145, 70, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.discord-hero-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.discord-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.12),
        0 8px 24px rgba(88, 101, 242, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.discord-hero-item:hover .discord-card-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.2),
        0 12px 32px rgba(88, 101, 242, 0.65),
        0 0 30px rgba(145, 70, 255, 0.35);
}

.discord-guild-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discord-card-fallback {
    font-size: 1.6rem;
    color: #fff;
}

.discord-card-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.discord-card-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.discord-card-label {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(114, 137, 218, 0.95);
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.35);
}

.discord-card-name {
    flex: 1;
    min-width: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.discord-join-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #5865f2, #7289da);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.discord-join-pill i {
    font-size: 0.68rem;
    transition: transform 0.3s var(--ease-spring);
}

.discord-hero-item:hover .discord-join-pill {
    transform: scale(1.06);
    box-shadow: 0 6px 22px rgba(88, 101, 242, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.discord-hero-item:hover .discord-join-pill i {
    transform: translateX(3px);
}

.discord-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.62);
}

.discord-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.discord-stat-sep {
    opacity: 0.45;
}

.discord-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43b581;
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.9);
    animation: discordLivePulse 1.6s ease-in-out infinite;
}

@keyframes discordLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

@media (max-width: 768px) {
    .discord-hero {
        margin-bottom: 18px;
        animation: none;
    }

    .discord-hero-item {
        transform: none !important;
        animation: none !important;
        box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.55), 0 8px 28px rgba(60, 20, 120, 0.35) !important;
        background: linear-gradient(160deg, rgba(28, 16, 58, 0.96) 0%, rgba(14, 10, 32, 0.98) 100%) !important;
    }

    .discord-hero-item:hover {
        transform: scale(1.02) !important;
    }

    .discord-shine {
        display: none !important;
    }

    .discord-border-glow {
        animation: none;
        background: linear-gradient(135deg, #5865f2, #7289da);
        opacity: 0.9;
    }

    .discord-live-dot {
        animation: none;
    }

    .discord-hero-item a {
        padding: 14px 15px;
        gap: 12px;
    }

    .discord-card-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .discord-card-name {
        font-size: 0.84rem;
    }

    .discord-join-pill {
        padding: 6px 11px;
        font-size: 0.68rem;
    }
}

@media (min-width: 769px) {
    .discord-hero-item a {
        padding: 18px 20px;
    }
}

/* Social Row – 3 Plattform-Buttons nebeneinander */
.social-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 4px;
    animation: fadeInUp 0.8s ease-out 0.35s both;
}

.social-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 8px 14px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-highlight);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    transform: perspective(800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    -webkit-tap-highlight-color: transparent;
}

.social-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.1) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.social-tile:hover {
    transform: perspective(800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.05) translateZ(0);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.26);
}

.social-tile:hover::after {
    opacity: 1;
}

.social-tile.is-pressed {
    transform: perspective(800px) scale(0.96) translateZ(0) !important;
    transition-duration: 0.12s !important;
}

.social-tile-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.social-tile-icon .platform-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.social-tile-label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    line-height: 1.2;
}

.social-tile[data-platform="twitch"] .social-tile-icon {
    background: linear-gradient(135deg, #9146ff, #772ce8);
}

.social-tile[data-platform="tiktok"] .social-tile-icon {
    background: linear-gradient(135deg, #000, #ff0050);
}

.social-tile[data-platform="youtube"] .social-tile-icon {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-tile[data-platform="twitch"]:hover .social-tile-icon {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(145, 70, 255, 0.45);
}

.social-tile[data-platform="tiktok"]:hover .social-tile-icon {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(255, 0, 80, 0.35);
}

.social-tile[data-platform="youtube"]:hover .social-tile-icon {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(255, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .social-row {
        gap: 8px;
        animation: none;
    }

    .social-tile {
        padding: 14px 6px 12px;
        border-radius: 16px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: linear-gradient(160deg, rgba(24, 12, 42, 0.94) 0%, rgba(14, 8, 28, 0.97) 100%);
        border: 1px solid rgba(100, 48, 165, 0.38);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
        transform: none !important;
        animation: none !important;
    }

    .social-tile::after {
        display: none;
    }

    .social-tile-icon {
        width: 46px;
        height: 46px;
        font-size: 1.35rem;
        border-radius: 14px;
    }

    .social-tile-label {
        font-size: 0.68rem;
    }

    .social-tile:hover {
        transform: scale(1.02) !important;
        border-color: rgba(120, 60, 190, 0.45);
    }
}

/* Links Container */
.links-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.link-item {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-highlight);
    transition: transform 0.45s var(--ease-spring), box-shadow 0.45s ease, border-color 0.45s ease;
    border: 1px solid var(--glass-border);
    animation: cardReveal 0.9s var(--ease-spring) both;
    position: relative;
    transform: perspective(800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
    will-change: transform, box-shadow;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.link-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.12) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.link-item:hover::after {
    opacity: 1;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: perspective(800px) rotateX(8deg) translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: perspective(800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0) scale(1);
    }
}


.link-item:nth-child(3) { animation-delay: 0.45s; }
.link-item:nth-child(5) { animation-delay: 0.55s; }
.link-item:nth-child(6) { animation-delay: 0.65s; }

.link-item:hover {
    transform: perspective(800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.04) translateZ(0);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(0, 102, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.link-item.is-pressed {
    transform: perspective(800px) scale(0.97) translateZ(0) !important;
    transition-duration: 0.12s !important;
}


.link-item a {
    display: flex;
    align-items: center;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}

.link-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.link-item:hover a::before {
    left: 100%;
}

.link-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 14px;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.link-item:hover .link-icon {
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.platform-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.4s var(--ease-spring);
}
.link-item[data-platform="twitch"]:hover .link-icon {
    box-shadow: 0 12px 30px rgba(145, 70, 255, 0.5);
}

.link-item[data-platform="tiktok"]:hover .link-icon {
    box-shadow: 0 12px 30px rgba(255, 0, 80, 0.5);
}

.link-item[data-platform="youtube"]:hover .link-icon {
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.5);
}

.link-item[data-platform="discord"]:hover .link-icon {
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.5);
}

.link-item[data-platform="cardreapers"]:hover .link-icon {
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.5);
}

.link-item[data-platform="costreamer-zauberbart"]:hover .link-icon,
.link-item[data-platform="costreamer-highresolution"]:hover .link-icon {
    box-shadow: 0 12px 30px rgba(145, 70, 255, 0.5);
}

/* Platform-specific colors mit Glow-Effekten */
.link-item[data-platform="twitch"] .link-icon {
    background: linear-gradient(135deg, #9146ff, #772ce8);
    color: white;
    box-shadow: 0 8px 20px rgba(145, 70, 255, 0.3);
}

.link-item[data-platform="tiktok"] .link-icon {
    background: linear-gradient(135deg, #000, #ff0050);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 0, 80, 0.3);
}

.link-item[data-platform="youtube"] .link-icon {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.link-item[data-platform="discord"] .link-icon {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.link-item[data-platform="cardreapers"] .link-icon {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.link-item[data-platform="costreamer-zauberbart"] .link-icon,
.link-item[data-platform="costreamer-highresolution"] .link-icon {
    background: linear-gradient(135deg, #9146ff, #772ce8);
    color: white;
    box-shadow: 0 8px 20px rgba(145, 70, 255, 0.3);
}


.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.link-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.link-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.link-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    transition: transform 0.35s var(--ease-spring), color 0.35s ease;
}

.link-item:hover .link-arrow {
    transform: translateX(6px);
    color: var(--yugi-gold);
}

/* Section Divider */
.section-divider {
    text-align: center;
    margin: 28px 0 18px;
    position: relative;
    animation: fadeInUp 0.8s var(--ease-spring) both;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 70px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.5), rgba(255, 23, 68, 0.5), transparent);
    animation: dividerPulse 3s ease-in-out infinite;
}

.section-divider::before {
    left: 0;
}

.section-divider::after {
    right: 0;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.section-divider span {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(255, 23, 68, 0.1));
    padding: 8px 22px;
    border-radius: 999px;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 0 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 1px;
    animation: fadeInUp 1s var(--ease-spring) 0.6s both;
}

.footer p {
    background: linear-gradient(90deg, var(--text-muted), rgba(255, 255, 255, 0.9), var(--text-muted));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loadingTextShimmer 4s linear infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */


/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Hover effects for better UX */
.link-item:active {
    transform: translateY(-2px) scale(0.98);
}

/* Focus states for accessibility */
.link-item a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Zusätzliche interaktive Effekte */
.container {
    /* Blur entfernt für Performance */
    transition: background 0.3s ease;
}

.container:hover {
    /* Blur entfernt für Performance */
}

body.card-dragging {
    cursor: grabbing !important;
}

body.card-dragging * {
    cursor: grabbing !important;
}

body.card-dragging a {
    pointer-events: none;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, rgba(255, 23, 68, 0.04) 35%, transparent 70%);
    pointer-events: none;
    z-index: 9990;
    mix-blend-mode: screen;
    will-change: transform;
}

.click-ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(0, 102, 255, 0.3) 40%, transparent 70%);
    animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes rippleExpand {
    to {
        width: 200px;
        height: 200px;
        margin: -100px 0 0 -100px;
        opacity: 0;
    }
}

.keyboard-focus {
    outline: 2px solid var(--yugi-blue) !important;
    outline-offset: 3px;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.4) !important;
}

.toast-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(8, 12, 28, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10001;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: transform 0.35s var(--ease-spring), opacity 0.35s ease;
    box-shadow: var(--shadow-soft);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Yu-Gi-Oh Toggle Button */
#yugioh-toggle-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 50%;
    background: rgba(8, 12, 28, 0.7);
    color: var(--yugi-gold);
    font-size: 14px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0.75;
}

#yugioh-toggle-btn:hover {
    transform: scale(1.15);
    opacity: 1;
    border-color: var(--yugi-gold);
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.35);
}

#yugioh-toggle-btn.is-active {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.35);
    color: #00ff88;
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none !important;
    }

    .link-item,
    .discord-hero-item,
    .social-tile {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .link-item::after {
        display: none !important;
    }

    .profile-image {
        animation: none !important;
        filter: drop-shadow(0 0 10px rgba(145, 70, 255, 0.5)) drop-shadow(0 0 22px rgba(70, 25, 130, 0.35));
    }

    .header,
    .footer,
    .section-divider {
        animation: none !important;
    }

    .section-divider::before,
    .section-divider::after {
        animation: none;
        opacity: 0.75;
    }

    .section-divider span {
        background: linear-gradient(135deg, rgba(36, 14, 62, 0.95), rgba(24, 10, 44, 0.98));
        border: 1px solid rgba(100, 48, 165, 0.35);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    }

    .footer p {
        animation: none !important;
    }

    body.vignette-pulse::before {
        animation: none !important;
    }

    #smoke-wallpaper {
        display: none !important;
    }
}

/* Performance-Optimierungen */
.link-item:hover {
    will-change: transform, box-shadow;
}


/* Desktop: Zeige alle Sterne */
@media (min-width: 769px) {
    .star-mobile {
        display: block;
        position: absolute;
        font-size: 0.4rem;
        opacity: 0.7;
        will-change: transform, opacity;
    }
    
    .star-17 { top: 20%; left: 40%; animation: starDance1 4s linear infinite !important; }
    .star-18 { top: 60%; right: 45%; animation: starDance2 3.5s linear infinite !important; }
    .star-19 { bottom: 30%; left: 45%; animation: starDance3 4.2s linear infinite !important; }
    .star-20 { top: 80%; right: 20%; animation: starDance4 3.8s linear infinite !important; }
}

/* Low Performance Mode für alte Geräte */
body.low-performance {
    /* Reduziere alle Animationen */
    .star, .pre-star {
        animation-duration: 8s !important;
        animation-timing-function: linear !important;
    }
    
    .link-item {
        transition: transform 0.2s ease !important;
    }
    
    .link-item:hover {
        transform: scale(1.03) !important;
    }
    
    /* Verstecke Canvas komplett */
    #smoke-canvas {
        display: none !important;
    }
    
    /* Reduziere Blur-Effekte */
    .link-item {
        /* Blur entfernt für Performance */
    }
}

/* Ultra Low Performance Mode für sehr alte Geräte */
body.ultra-low-performance {
    /* Verstecke alle Sterne */
    .star, .pre-star {
        display: none !important;
    }
    
    /* Verstecke Canvas komplett */
    #smoke-canvas {
        display: none !important;
    }
    
    /* Verstecke Overlay-Bild */
    #overlay-image {
        display: none !important;
    }
    
    /* Reduziere alle Animationen */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Einfache Hover-Effekte */
    .link-item:hover {
        transform: scale(1.02) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* Reduziere Blur-Effekte komplett */
    .link-item {
        /* Blur bereits entfernt */
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Reduziere Box-Shadow */
    .link-item {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .link-item:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
}

/* Reduzierte Motion für Accessibility */
@media (prefers-reduced-motion: reduce) {
    #smoke-canvas {
        animation: none;
    }
    
    .link-item::before {
        animation: none;
    }

    .cursor-glow {
        display: none !important;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Yu-Gi-Oh! Varianten-Auswahl */
.variant-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variant-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFD700;
    border-radius: 8px;
    color: #FFD700;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    /* Blur entfernt für Performance */
}

.variant-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.variant-btn.active {
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    .link-item a {
        padding: 12px;
    }

    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
        margin-right: 12px;
    }

    .username {
        font-size: 1.6rem;
    }

    .link-title {
        font-size: 0.85rem;
    }

    .link-subtitle {
        font-size: 0.72rem;
    }
}

/* Impressum Button */
.impressum-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 28, 0.6);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.impressum-button:hover {
    background: rgba(8, 12, 28, 0.85);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 102, 255, 0.4);
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.25);
}

.impressum-button:active {
    transform: scale(0.95);
}

/* Impressum Modal */
.impressum-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    /* Blur entfernt für Performance */
}

.impressum-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: impressumFadeIn 0.3s ease-out;
}

.impressum-content {
    background: rgba(8, 12, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 102, 255, 0.1);
    animation: impressumSlideIn 0.4s var(--ease-spring);
}

.impressum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.impressum-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.impressum-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.impressum-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.impressum-body {
    padding: 24px;
}

.impressum-body p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.impressum-body p:last-child {
    margin-bottom: 0;
}

.impressum-body h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 12px 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.impressum-body h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.impressum-body a {
    color: #0066ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.impressum-body a:hover {
    color: #ff0000;
}

@keyframes impressumFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes impressumSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Mobile: Impressum Button anpassen */
@media (max-width: 768px) {
    .impressum-button {
        bottom: 15px;
        right: 15px;
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .impressum-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* Responsive Design für Varianten */
