* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace, sans-serif;
    user-select: none;
}

body {
    background-color: #050505;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    color: #fff;
}

/* Эффект затемнения поверх картинки заднего фона */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(15, 5, 5, 0.95));
    z-index: 1;
    pointer-events: none;
}

/* Подсказка */
.click-hint {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 11pt;
    color: #8a1a1a;
    text-shadow: 0 0 8px rgba(138, 26, 26, 0.8);
    animation: pulse 2s infinite;
    text-align: center;
    pointer-events: none;
}

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

/* Счетчик просмотров */
.views-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #222;
    font-size: 10pt;
    color: #777;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.views-counter i {
    color: #8a1a1a;
}

/* 3D Оболочка */
.wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* Карточка Био в стиле 3D */
.bio-card {
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid rgba(138, 26, 26, 0.2);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 30px rgba(138, 26, 26, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
}

.bio-card:hover {
    border-color: rgba(138, 26, 26, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 40px rgba(138, 26, 26, 0.2);
}

/* Аватарка */
.avatar-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #333, #8a1a1a, #111);
    box-shadow: 0 0 25px rgba(138, 26, 26, 0.4);
    transform: translateZ(40px); /* 3D выталкивание */
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #111;
}

/* Никнейм */
.nickname {
    font-size: 22pt;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1), 0 0 20px rgba(138, 26, 26, 0.6);
    margin-bottom: 10px;
    transform: translateZ(30px);
}

/* Текст статуса */
.bio-text {
    font-size: 10pt;
    color: #888;
    margin-bottom: 35px;
    transform: translateZ(20px);
}

/* Кнопки соцсетей */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateZ(25px);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    padding: 12px;
    border-radius: 6px;
    color: #ccc;
    text-decoration: none;
    font-size: 11pt;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.social-btn:hover {
    background: #8a1a1a;
    color: #fff;
    border-color: #ff3333;
    box-shadow: 0 0 15px rgba(138, 26, 26, 0.6);
}

/* Всплывающая подсказка для дискорда */
.social-btn .tooltip {
    position: absolute;
    bottom: -35px;
    background: #000;
    border: 1px solid #8a1a1a;
    padding: 4px 8px;
    font-size: 8pt;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    color: #aaa;
}

.social-btn:hover .tooltip {
    opacity: 1;
}

/* ЭФФЕКТ ТРЯСКИ (РАНЕНИЯ) */
.shake-damage {
    animation: screenShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes screenShake {
    10%, 90% { transform: translate3d(-4px, 2px, 0) rotate(1deg); }
    20%, 80% { transform: translate3d(4px, -3px, 0) rotate(-1deg); }
    30%, 50%, 70% { transform: translate3d(-6px, -1px, 0) rotate(1.5deg); }
    40%, 60% { transform: translate3d(6px, 4px, 0) rotate(-1.5deg); }
}

/* Частицы ранения сердца/крови */
.blood-particle {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    font-size: 18pt;
    color: #8a1a1a;
    text-shadow: 0 0 10px #ff0000;
    animation: particleFade 0.8s ease-out forwards;
}

@keyframes particleFade {
    0% {
        transform: translate(-50%, -50%) scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.4) translateY(50px) rotate(30deg);
        opacity: 0;
    }
}
