:root {
    --bg: rgba(0, 0, 0, 0.38);
    --surface: rgba(20, 25, 34, 0.78);
    --surface-hover: rgba(26, 33, 44, 0.86);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --text: #e7ebf1;
    --text-muted: #909bb1;
    --accent: #4a90e2;
    --accent-dark: #357abd;
    --accent-light: #6aa8f0;
    --success: #2a9d8f;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.32);
    --radius: 14px;
    --radius-sm: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(160deg, rgba(6, 10, 18, 0.9), rgba(14, 20, 32, 0.92)),
        url("hintergrund.png") center/cover fixed;
    background-blend-mode: multiply;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 80px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

.avatar-wrapper {
    margin-bottom: 28px;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.handle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 500;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

.social-links a,
.social-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: all 0.15s ease;
}

.social-links a:hover,
.social-links button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.social-links img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(1.1);
}

.discord-copy.copied {
    border-color: var(--success);
    color: var(--success);
}

.discord-copy.copied img {
    animation: blink 0.8s ease;
}

@keyframes blink {
    0%   { filter: brightness(1); }
    50%  { filter: brightness(1.6); }
    100% { filter: brightness(1); }
}

.bottom-toolbar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
}

.music-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: all 0.15s ease;
}

.music-btn:hover {
    color: var(--text);
    border-color: var(--accent);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 14, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.hidden { opacity: 0; visibility: hidden; }
.modal:not(.hidden) { opacity: 1; visibility: visible; }

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(20, 25, 34, 0.92);
    color: var(--text);
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 10;
    transition: background 0.15s;
}

.modal-close:hover { background: var(--surface-hover); }

.slide { display: none; }
.slide.active { display: block; }
.slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 480px) {
    body {
        justify-content: flex-start;
        padding-top: 60px;
        background-attachment: scroll;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .name { font-size: 24px; }

    .social-links {
        max-width: 100%;
    }
}
