:root {
    --bg: #000;
    --text: #fff;
    --text-muted: #888;
    --card-bg: rgba(10, 10, 10, 0.6);
    --border: rgba(255, 255, 255, 0.08);
    --red: #800000;
    --red-glow: rgba(128, 0, 0, 0.3);
    --bright-red: #ff0000;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
}

#cursor {
    position: fixed;
    top: 0; left: 0;
    width: 20px; height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

#laugh-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}
.laugh-word {
    position: absolute; color: #1a1a1a; font-weight: 900;
    text-transform: uppercase; opacity: 0; white-space: nowrap;
    user-select: none; font-family: 'Space Mono', monospace;
}
.laugh-word.red-mode {
    color: var(--red) !important;
    text-shadow: 0 0 15px var(--red);
    z-index: 50; letter-spacing: 0.5em; font-family: 'Inter', sans-serif;
    opacity: 0.6 !important;
}
.laugh-word.giant {
    color: #050505; z-index: -1; font-weight: 900; filter: blur(3px);
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAABMTExERERmZmYzMzMyMjJ4D30QAAAACHRSTlMAMwA3M2YzM2Y1jJ8AAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAwSURBVDjLY2AYBaNgKLHgAgNDgw4DQwMTA8N/CgbG/xQMDv8ZGBj+M2CAg0YBowAGANuWCgec5H6CAAAAAElFTkSuQmCC');
    opacity: 0.05;
    z-index: 1; pointer-events: none;
}

.card-container {
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    perspective: 1000px;
    animation: fadeInUp 1s ease-out;
}

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

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: transform 0.1s ease-out;
    position: relative;
    overflow: hidden;
    animation: card-pulse 4s infinite ease-in-out;
    cursor: none; 
}

@keyframes card-pulse {
    0%, 100% { box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 rgba(128, 0, 0, 0); border-color: var(--border); }
    50% { box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 30px rgba(128, 0, 0, 0.15); border-color: rgba(128, 0, 0, 0.3); }
}

.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.8;
}

.profile-header { 
    margin-bottom: 30px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audio-visualizer {
    display: flex;
    gap: 3px;
    height: 15px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.audio-visualizer span {
    width: 3px;
    background: var(--red);
    animation: sound 1s infinite ease-in-out;
}

.audio-visualizer span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.audio-visualizer span:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.audio-visualizer span:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.audio-visualizer span:nth-child(4) { height: 90%; animation-delay: 0.4s; }
.audio-visualizer span:nth-child(5) { height: 30%; animation-delay: 0s; }

@keyframes sound {
    0%, 100% { height: 20%; opacity: 0.5; }
    50% { height: 100%; opacity: 1; box-shadow: 0 0 5px var(--red); }
}

.avatar-glitch {
    width: 96px; height: 96px;
    background: #000;
    border-radius: 50%;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    border: 2px solid rgba(255, 255, 255, 0.05);
    background-image: url('photo_2026-01-17_21-01-47.jpg');
    background-size: cover; background-position: center;
    filter: grayscale(1) contrast(1.1) brightness(0.9);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2; overflow: hidden;
}

.avatar-glitch::after {
    content: ''; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--red), transparent, #000);
    z-index: -1;
    animation: spin-glow 3s linear infinite;
    opacity: 1; transition: 0.5s;
}

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

.glass-card:hover .avatar-glitch {
    filter: grayscale(0) contrast(1) brightness(1.1);
    border-color: var(--red);
    box-shadow: 0 0 30px var(--red-glow);
    transform: scale(1.05);
}

.glass-card:hover .avatar-glitch::after {
    opacity: 1; 
}

.glass-card:hover .avatar-glitch::before {
    box-shadow: inset 0 0 0px rgba(0, 0, 0, 0);
}

.username {
    font-size: 2rem; font-weight: 800; letter-spacing: -1px;
    margin-bottom: 5px; color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

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

.links-list { display: flex; flex-direction: column; gap: 12px; }

.link-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none; color: #e0e0e0;
    font-weight: 800; font-size: 0.85rem; letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; overflow: hidden;
    cursor: none; 
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px); color: #fff;
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(128, 0, 0, 0.2);
}

.link-icon { opacity: 0.5; transition: 0.3s; }
.link-item:hover .link-icon { opacity: 1; color: var(--bright-red); transform: translate(2px, -2px); }

.link-item.highlight { background: rgba(128, 0, 0, 0.1); border-color: rgba(128, 0, 0, 0.3); color: #fff; }
.link-item.highlight:hover { background: var(--red); border-color: var(--red); box-shadow: 0 0 25px var(--red-glow); }
.link-item.highlight:hover .link-icon { color: #fff; }

.card-footer {
    margin-top: 30px; font-size: 0.7rem; color: var(--text-muted); font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0.6;
    font-family: 'Space Mono', monospace;
}

.status-dot {
    width: 6px; height: 6px; background: var(--bright-red);
    border-radius: 50%; box-shadow: 0 0 5px var(--red);
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

body.glitch-click { filter: invert(1); transform: skewX(5deg); }
@keyframes bleed { 0% { background: #000; } 5% { background: #300; } 15% { background: #000; } }
body.bleeding { animation: bleed 0.3s; }