:root {
    --bg-black: #0a0a0a;
    --blood-oxidized: #2a0000;
    --blood-deep: #6d0000;
    --blood-fresh: #a80000;
    --blood-vibrant: #d10000;
    --text-silver: #d4d4d4;
    --text-muted: #6a6a6a;
    --card-border: rgba(168, 0, 0, 0.3);
    --transition-smooth: 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-black);
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-silver);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

#bloodCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    filter: url(#viscous-goo) drop-shadow(0 0 10px rgba(0,0,0,0.8));
    transition: transform 0.3s ease-out;
}

.atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10,10,10,0.85) 100%);
    z-index: 2;
    pointer-events: none;
}

.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    opacity: 0.08;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.main-wrapper {
    position: relative;
    z-index: 100;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    transition: transform 0.3s ease-out;
}

.card {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--card-border);
    width: 100%;
    max-width: 440px;
    padding: 55px 40px;
    position: relative;
    box-shadow: 0 40px 150px rgba(0,0,0,0.9);
    text-align: center;
    backdrop-filter: blur(30px);
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px) rotateX(3deg) rotateY(1deg);
    border-color: rgba(168, 0, 0, 0.6);
    box-shadow: 0 50px 180px rgba(109, 0, 0, 0.3);
}

.card::before {
    display: none;
}

.red-john-logo {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 220px;
    height: auto;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: hard-light;
    filter: grayscale(0.2) contrast(1.2);
    transform: rotate(-15deg);
    animation: subtle-pulse 4s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { 
        opacity: 0.25;
        transform: rotate(-15deg) scale(1);
        filter: grayscale(0.2) contrast(1.2) brightness(1);
    }
    50% { 
        opacity: 0.32;
        transform: rotate(-14.5deg) scale(1.015);
        filter: grayscale(0.15) contrast(1.25) brightness(1.1);
    }
}

.card:hover .red-john-logo {
    opacity: 0.4;
    filter: grayscale(0.1) contrast(1.3) brightness(1.15);
}

.nickname {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #f5f5f5;
    margin-bottom: 5px;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.nickname::before,
.nickname::after {
    content: 'PROMETHEUS';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.nickname:hover::before {
    animation: glitch-1 0.3s infinite;
    color: var(--blood-vibrant);
    z-index: -1;
}

.nickname:hover::after {
    animation: glitch-2 0.3s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-1 {
    0% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.8; transform: translate(-2px, 2px); }
    40% { opacity: 0.8; transform: translate(-2px, -2px); }
    60% { opacity: 0.8; transform: translate(2px, 2px); }
    80% { opacity: 0.8; transform: translate(2px, -2px); }
    100% { opacity: 0; transform: translate(0); }
}

@keyframes glitch-2 {
    0% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.6; transform: translate(2px, -2px); }
    40% { opacity: 0.6; transform: translate(2px, 2px); }
    60% { opacity: 0.6; transform: translate(-2px, -2px); }
    80% { opacity: 0.6; transform: translate(-2px, 2px); }
    100% { opacity: 0; transform: translate(0); }
}

.real-name {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 6px;
    color: var(--blood-vibrant);
    margin-bottom: 15px;
    text-transform: uppercase;
    opacity: 0.9;
}

.quote {
    font-family: 'EB Garamond', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 30px;
    letter-spacing: 1px;
    line-height: 1.6;
    overflow: hidden;
    border-right: 2px solid var(--blood-vibrant);
    white-space: nowrap;
    animation: typing 4s steps(60) 1s 1 normal both, blink 0.75s step-end infinite;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.photo-box {
    width: 190px;
    height: 190px;
    margin: 0 auto 35px;
    border: 1px solid rgba(168, 0, 0, 0.3);
    padding: 6px;
    background: #000;
    position: relative;
    z-index: 5;
    transition: border-color 0.8s ease;
}

.photo-box:hover {
    border-color: var(--blood-vibrant);
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.4) brightness(0.6);
    transition: 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.photo-box:hover img {
    filter: grayscale(0.5) contrast(1.2) brightness(1);
    transform: scale(1.05);
}

.psych-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.stat-badge {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 14px;
    color: #777;
    background: rgba(20, 0, 0, 0.5);
    position: relative;
}

.stat-badge b {
    color: var(--blood-vibrant);
    margin-left: 5px;
}

.meta-data {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Cinzel', serif;
}

.flag-ru {
    width: 21px;
    height: 14px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.flag-ru .s {
    height: 33.3%;
    width: 100%;
}

.white {
    background: #ffffff;
}

.blue {
    background: #0039a6;
}

.red {
    background: #d52b1e;
}

.music-player {
    background: rgba(20, 0, 0, 0.3);
    border: 1px solid rgba(168, 0, 0, 0.2);
    padding: 8px 12px;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-info {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    flex: 1;
}

.track-info .track-name {
    color: var(--blood-vibrant);
    font-weight: 700;
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5px;
    height: 20px;
}

.wave-bar {
    width: 2px;
    background: linear-gradient(to top, var(--blood-deep), var(--blood-vibrant));
    border-radius: 1px;
    animation: wave-pulse 1.2s ease-in-out infinite;
    animation-play-state: paused;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.4s;
}

.wave-bar:nth-child(6) {
    animation-delay: 0.3s;
}

.wave-bar:nth-child(7) {
    animation-delay: 0.2s;
}

.wave-bar:nth-child(8) {
    animation-delay: 0.1s;
}

@keyframes wave-pulse {
    0%, 100% {
        height: 4px;
        opacity: 0.3;
    }
    50% {
        height: 18px;
        opacity: 1;
    }
}

.play-btn {
    width: 22px;
    height: 22px;
    border: 1px solid var(--blood-vibrant);
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.play-btn:hover {
    background: var(--blood-deep);
    border-color: var(--blood-vibrant);
    transform: scale(1.1);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 7px;
    border-color: transparent transparent transparent var(--blood-vibrant);
    margin-left: 1px;
}

.play-btn.playing::after {
    border-width: 0;
    width: 7px;
    height: 8px;
    background: linear-gradient(to right, 
        var(--blood-vibrant) 0%, 
        var(--blood-vibrant) 35%, 
        transparent 35%, 
        transparent 65%, 
        var(--blood-vibrant) 65%
    );
    margin-left: 0;
}

.socials-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.social-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    padding: 16px 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(40, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    position: relative;
}

.social-btn:hover {
    color: #fff;
    border-color: var(--blood-vibrant);
    background: var(--blood-deep);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(168, 0, 0, 0.5);
}

.card-inner-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(168, 0, 0, 0.1);
    pointer-events: none;
}

.hidden-assets {
    position: absolute;
    width: 0;
    height: 0;
    visibility: hidden;
    overflow: hidden;
}