@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Montserrat:ital,wght@0,800;1,800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

:root {
    --bg-main: #080808;
    --bg-surface: #102A28;
    --bg-surface-soft: #15554F;
    --accent-cyan: #AAFEFC;
    --accent-muted: #263E35;
    --text-main: #F0FAF4;
    --text-gray: rgba(255, 255, 255, 0.65);
    --text-glow: rgba(170,254,252,0.9);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.5);
    --card: rgba(255, 255, 255, 0.07);
    --card-border: 2px solid rgba(255, 255, 255, 0.05);
}

html, body {
    font-family: "Nunito", sans-serif !important;
    line-height: 1.4 !important;
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- SPLASH SCREEN --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.splash-content {
    text-align: center;
}

.splash-title {
    font-size: 3.5rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 25px var(--text-glow);
    margin-bottom: 30px;
    font-weight: 800;
}

#enter-btn {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 15px 50px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#enter-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-main);
    box-shadow: 0 0 30px var(--accent-cyan);
}

.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- BACKGROUND / PARTICLES --- */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.circle-container {
  position: absolute;
  bottom: -10vh;
  animation: move-up linear infinite;
  z-index: -1;
  pointer-events: none;
}

.circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  mix-blend-mode: screen;
  background: radial-gradient(var(--accent-cyan), var(--accent-cyan) 10%, rgba(153, 255, 255, 0) 56%);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes move-up {
  0% { transform: translate3d(var(--left), 0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate3d(var(--left-end), -120vh, 0); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.4); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* --- MUSIC PLAYER --- */
#music-player {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    width: 160px !important; 
    min-width: 160px;
    max-width: 160px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#music-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#now-playing {
    font-size: 10px;
    color: var(--text-gray);
    margin: 5px 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    width: 120px;
    display: block;
}

.marquee {
    display: inline-block;
    padding-left: 0;
    transition: transform 0.5s ease;
}

.is-scrolling {
    animation: scroll-logic 8s ease-in-out 2s infinite alternate;
}

@keyframes scroll-logic {
    0%, 20% { transform: translateX(0); }
    80%, 100% { transform: translateX(calc(-100% + 110px)); } 
}

#volume-icon {
    font-size: 18px;
    cursor: pointer;
    color: var(--text-main);
    transition: transform 0.2s;
}

#volume-icon:hover { transform: scale(1.1); }

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    /* Der Verlauf für die Füllung: */
    background-image: linear-gradient(var(--accent-cyan), var(--accent-cyan));
    background-repeat: no-repeat;
    background-size: 50% 100%; /* Startwert passend zum JS 'value=0.5' */
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: 0.2s;
    border: none;
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* --- PROFILE AREA --- */
.main-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  gap: 40px;
  position: relative;
}

.profile-glow {
    max-height: 120px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-in-out;
}

.profile-info::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    
    background-image: url('../assets/img/person.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    
    filter: blur(20px) brightness(1.5);
    opacity: 0.7;
    z-index: 1;
    
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.profile-info:hover::after {
    filter: blur(30px) brightness(1.8);
    opacity: 1;
    transform: scale(1.1);
}

.profile-info {
  display: flex;
  position: relative;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-cards {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.cstm-card {
    background-color: var(--card);
    border: var(--card-border);
    border-radius: 25px;
    padding: 0 20px;
    width: 340px;
    height: 110px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cstm-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background: radial-gradient(
        250px circle at var(--mouse-x) var(--mouse-y), 
        rgba(170, 254, 252, 0.15), 
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.cstm-card:hover::before {
    opacity: 1;
}

.card-footer-tag {
    position: absolute;
    bottom: 12px;
    right: 18px;
    margin: 0;
    
    color: rgba(255, 255, 255, 0.15) !important;
    font-size: 11px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.card-footer-tag i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.15) !important;
}

/* --- SOCIALS --- */
.social-bar {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 20px;
    transition: all 0.3s ease;
    justify-content: center;
}

.social-link {
    font-size: 22px;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-link::after {
    content: attr(data-name);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transition: 0.3s;
    letter-spacing: 1px;
}

.social-link:hover::after {
    opacity: 1;
    bottom: -25px;
}

.social-link:hover {
    transform: scale(1.2);
}

.instagram:hover { color: #FD018C; filter: drop-shadow(0 0 8px #FD018C); }
.tiktok:hover { color: #ff0050; filter: drop-shadow(0 0 8px #ff0050); }
.spotify:hover { color: #1DB954; filter: drop-shadow(0 0 8px #1DB954); }
.steam:hover { color: #66c0f4; filter: drop-shadow(0 0 8px #66c0f4); }
.youtube:hover { color: #FF0000; filter: drop-shadow(0 0 8px #FF0000); }
.github:hover { color: #ffffff; filter: drop-shadow(0 0 8px #ffffff); }

/* --- SHOP LINK */
.social-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    transform: translateX(-35px);
    gap: 12px;
}

.social-link.shop-special {
    margin-left: 18px;
    color: var(--accent-cyan) !important;
    position: relative;
    display: flex;
    align-items: center;
}

.social-link.shop-special i {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 10px var(--accent-cyan));
    animation: shop-attention 2.5s infinite ease-in-out;
}

.social-link.shop-special:hover i {
    color: #ffffff !important;
    filter: drop-shadow(0 0 22px var(--accent-cyan));
    transform: scale(1.2);
    animation-play-state: paused;
}

@keyframes shop-attention {
    0%, 100% { 
        transform: rotate(0deg); 
        filter: drop-shadow(0 0 8px var(--accent-cyan));
    }
    25% { 
        transform: rotate(-12deg); 
        filter: drop-shadow(0 0 18px var(--accent-cyan));
    }
    75% { 
        transform: rotate(12deg); 
        filter: drop-shadow(0 0 18px var(--accent-cyan));
    }
}

/* --- DISCORD BADGES --- */
.profile-cards, 
.discord-text-container,
.cstm-card {
    overflow: visible !important;
}

.name-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 100;
}

.badge-container {
    display: flex;
    gap: 4px;
}

.badge-item {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.badge-item img {
    width: 20px;
    height: 20px;
}

.badge-item:not(.emerald-special):not(.orbs-special)::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: #111214;
    color: #f2f3f5;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    
    white-space: normal;
    width: max-content;
    max-width: 160px;
    text-align: left;
    line-height: 1.3;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border: var(--card-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    transition: all 0.1s ease-in-out;
    z-index: 1000;
}

.badge-item:not(.emerald-special):not(.orbs-special)::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    background-color: #111214;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) translateY(5px) rotate(45deg);
    border-right: var(--card-border);
    border-bottom: var(--card-border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.1s ease-in-out;
    z-index: 1001;
}

.emerald-special .custom-tooltip,
.orbs-special .custom-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #111214;
    border: var(--card-border);
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease-in-out;
    z-index: 1000;
}

.emerald-special .custom-tooltip {
    width: 230px;
    padding: 20px;
    background-clip: padding-box;
    background-image: radial-gradient(ellipse 130% 50% at 50% -10%, #1C5434 0%, #123926 50%, rgba(18, 57, 38, 0) 100%);
    background-repeat: no-repeat;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.05));
}

.orbs-special .custom-tooltip {
    width: 180px; 
    padding: 15px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.emerald-special .custom-tooltip::after,
.orbs-special .custom-tooltip::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: #111214;
    border-right: var(--card-border);
    border-bottom: var(--card-border);
    border-top: none;
    border-left: none;
    z-index: 1001;
}

.emerald-special .custom-tooltip::before,
.orbs-special .custom-tooltip::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background-color: #111214;
    z-index: 1002;
}

.big-badge-icon {
    width: 85px !important;
    height: 85px !important;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.emerald-special .big-badge-icon {
    filter: drop-shadow(0 0 10px rgba(28, 84, 52, 0.4));
}

.tooltip-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.tooltip-date, .tooltip-rank {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 400;
}

.tooltip-rank {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.badge-item:not(.emerald-special):not(.orbs-special):hover::after,
.badge-item:not(.emerald-special):not(.orbs-special):hover::before,
.badge-item:not(.emerald-special):not(.orbs-special).active::after,
.badge-item:not(.emerald-special):not(.orbs-special).active::before,
.emerald-special:hover .custom-tooltip,
.emerald-special.active .custom-tooltip,
.orbs-special:hover .custom-tooltip,
.orbs-special.active .custom-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.badge-item:not(.emerald-special):not(.orbs-special):hover::before,
.badge-item:not(.emerald-special):not(.orbs-special).active::before {
    transform: translateX(-50%) translateY(0) rotate(45deg);
}


/* --- DISCORD & WIDGET --- */
.discord-avatar-container {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.discord-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-icon {
    position: absolute;
    bottom: -2px; 
    right: -2px;
    width: 24px;  
    height: 24px;
    border-radius: 50%;
    border: 4px solid var(--card); 
    background-color: var(--bg-main);
    z-index: 2;
}

.widget-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.discord-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.server-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.server-img {
    width: 100%;
    height: 100%;
    border-radius: 30%;
    object-fit: cover;
}

.status-count-row {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #b5bac1;
}

.status-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

#discord-status-text {
    display: inline-block;
    white-space: normal;
    line-height: 1.4;
    word-wrap: break-word;
    vertical-align: middle;
}

.status-emoji {
    display: inline;
    width: 1.3em !important;
    height: 1.3em !important;
    vertical-align: -0.25em;
    margin: 0 0.1em;
    object-fit: contain;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-online { background-color: #23a55a; }
.dot-offline { background-color: #747f8d; }

.join-button {
    margin-top: 6px;
    background-color: #248046;
    color: white;
    text-decoration: none;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 12px;
    width: fit-content;
    transition: 0.2s;
}

.join-button:hover { background-color: #1a6334; }

/* --- TYPING --- */
.sec-text {
    font-family: monospace !important;
    position: relative;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 0 10px var(--text-glow), 0 0 20px var(--text-glow);
    display: inline-flex;
    align-items: center;
    min-height: 45px; 
    border-right: 3px solid var(--text-main);
    padding-right: 2px;
    margin: 0;
    animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--text-main); }
}

/* --- BOOTSTRAP OVERRIDE --- */
.container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 10;
}

/* --- CURSOR --- */
#cursor-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000000;
    pointer-events: none;
    overflow: hidden;
}

.cursor-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px; 
    height: 2px;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

html, body, a, button, .badge-item, .social-link {
    cursor: none !important;
}

/* --- EXIT LINK --- */
.exit-link {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.exit-link i {
    color: #ffffff;
    transition: all 0.3s ease;
}

.exit-link:hover i {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 10px var(--accent-cyan));
    transform: translateY(-5px);
}

/* --- FRIENDS LIST --- */
.friends-card {
    position: fixed;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    max-height: 520px;
    background: var(--card) !important;
    border: var(--card-border) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    padding: 20px;
    overflow: hidden;
}

.friends-header {
    color: var(--accent-cyan);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
    flex-shrink: 0;
}

.friends-list-container {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.friends-list-container::-webkit-scrollbar {
    width: 4px;
}

.friends-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.friends-list-container::-webkit-scrollbar-thumb {
    background: var(--bg-surface-soft);
    border-radius: 10px;
}

.friends-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.friend-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03) !important; 
    border: 1px solid var(--card-border);
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.friend-card-item:hover {
    border: var(--accent-cyan);
    background: rgba(170, 254, 252, 0.05) !important;
}

.f-avatar-wrapper {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.f-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.f-avatar.has-cutout {
    -webkit-mask: radial-gradient(circle 11px at calc(100% - 5px) calc(100% - 5px), transparent 100%, #000 0%);
    mask: radial-gradient(circle 11px at calc(100% - 5px) calc(100% - 5px), transparent 100%, #000 0%);
}

.f-status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    z-index: 2;
}

.f-status-icon { 
    width: 15px; 
    height: 15px;
    display: block;
}

.f-info { display: flex; flex-direction: column; min-width: 0; }
.f-name { color: var(--text-main); font-weight: 800; font-size: 0.9rem; }
.f-note { color: var(--accent-cyan); font-size: 0.6rem; opacity: 0.8; }
.f-status-text { 
    color: var(--text-gray); 
    font-size: 0.7rem; 
    white-space: normal; 
    word-break: break-word; 
}

@media (max-width: 1300px) {
    .friends-card {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 40px auto;
        height: 500px;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .profile {
        padding-top: 100px;
        min-height: auto;
        justify-content: flex-start;
    }

    #music-player {
        width: 140px !important;
        top: 10px;
        left: 10px;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .profile-text {
        align-items: center;
    }

    .social-bar {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
        padding: 20px 10px !important;
        width: 100% !important;
    }

    .social-icon {
        width: 35px !important;
        height: 35px !important;
        opacity: 1 !important;
    }

    .profile-info::after {
        left: 50%;
        margin-left: -60px;
    }

    html, body {
        cursor: auto !important;
    }
    a, button, .badge-item, .social-link {
        cursor: pointer !important;
    }
    
    #cursor-wrapper {
        display: none !important;
    }

    .cstm-card::before {
        display: none !important;
    }

    .profile-info:hover::after {
        filter: blur(20px) brightness(1.5) !important;
        opacity: 0.7 !important;
        transform: scale(1) !important;
    }
}