/* Общие стили и сброс отступов */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #050505;
    position: relative;
    padding: 20px;
}

/* СЛАЙДЕР С КАРТИНКОЙ И БАГОМ */
.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background-image: url('assets/bg1.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.3) contrast(1.3);
    animation: tvGlitch 10s infinite linear;
}

@keyframes tvGlitch {
    0%, 90%, 93.5%, 95.5%, 100% {
        transform: skew(0deg) scale(1) translateX(0);
        filter: brightness(0.3) contrast(1.3) hue-rotate(0deg);
    }
    101% {
        transform: skew(7deg) scale(1.03);
        filter: brightness(0.8) contrast(1.5) hue-rotate(45deg);
    }
    92.5% {
        transform: skew(-4deg) translateX(-10px) scale(1.05);
        filter: brightness(0.2) contrast(2) hue-rotate(-45deg);
    }
    94.5% {
        transform: translateX(15px) skew(2deg);
        filter: brightness(0.7) contrast(1.2) hue-rotate(90deg);
    }
}

/* СЕТКА ПИКСЕЛЕЙ (ЭЛТ ЭФФЕКТ) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.5) 50%),
        linear-gradient(90deg, rgba(255, 69, 0, 0.05), rgba(0, 0, 0, 0.3), rgba(255, 69, 0, 0.05));
    background-size: 100% 4px, 6px 100%;
}

/* МЕРЦАНИЕ ПОЛОС ПОМЕХ */
.tv-static {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.7);
}

.tv-static::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 69, 0, 0.12),
        rgba(255, 69, 0, 0.12) 3px,
        transparent 3px,
        transparent 20px
    );
    animation: pixelNoise 0.8s infinite ease-in-out;
}

@keyframes pixelNoise {
    0%, 100% { opacity: 0; transform: translateY(-5%); }
    30% { opacity: 0.3; transform: translateY(5%); }
    50% { opacity: 0.05; transform: translateY(-2%); }
    75% { opacity: 0.25; transform: translateY(8%); }
}

/* БАЗОВАЯ КАРТОЧКА ПРОФИЛЯ */
.profile-card {
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(10px);
    border: 2px solid #ff4500;
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.4);
    border-radius: 16px;
    padding: 24px 24px 28px;
    text-align: center;
    color: #fff;
    z-index: 1;
    width: min(100%, 900px);
    max-width: 900px;
    margin: auto;
    box-sizing: border-box;
}

.profile-card h1 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #ff5500;
    text-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* КНОПКА-ПИКСЕЛЬ В УГЛУ */
.nav-shell {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 100;
}

.nav-pixel-btn {
    width: 40px;
    height: 40px;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #ff4500;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
    text-decoration: none;
    color: #fff;
    padding: 0;
}

.nav-menu-panel {
    position: absolute;
    right: 0;
    bottom: 56px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all 0.2s ease;
}

.nav-menu-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    color: #fff;
    text-decoration: none;
    background: transparent;
    transition: all 0.18s ease;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    justify-content: flex-end;
}

.nav-menu-square {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 3px solid rgba(255, 110, 30, 0.95);
    background: transparent;
    box-shadow: 0 0 8px rgba(255, 85, 0, 0.06);
    display: none;
}

.nav-menu-label {
    letter-spacing: 0.3px;
}

.nav-menu-item:hover,
.nav-menu-item.active {
    background: rgba(255, 69, 0, 0.16);
    color: #ffb37a;
    transform: translateX(-2px);
}

.nav-menu-line {
    height: 4px;
    flex: 1 1 auto;
    background: linear-gradient(90deg, rgba(255,110,30,0.95), rgba(255,140,40,0.6));
    border-radius: 2px;
    opacity: 0.95;
}

.nav-menu-line { display: none; }

.nav-menu-label {
    flex: 0 0 auto;
    font-weight: 700;
    text-transform: none;
    text-align: right;
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

.nav-menu-label::after {
    content: "";
    display: block;
    height: 4px;
    width: 40%;
    background: linear-gradient(90deg, rgba(255,110,30,0.95), rgba(255,140,40,0.6));
    border-radius: 2px;
    margin-top: 6px;
    margin-left: auto;
    opacity: 1;
}

.nav-menu-label {
    flex: 0 0 auto;
    font-weight: 700;
    text-transform: none;
}

.pixel-icon {
    width: 12px;
    height: 12px;
    background: #ff5500;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px #ff5500;
}

.nav-pixel-btn:hover,
.nav-pixel-btn.active {
    transform: scale(1.05) rotate(90deg);
    border-color: #ffaa00;
    box-shadow: 0 0 25px rgba(255, 85, 0, 0.6);
}

.nav-pixel-btn:hover .pixel-icon,
.nav-pixel-btn.active .pixel-icon {
    background: #ffaa00;
    box-shadow: 0 0 12px #ffaa00;
    transform: scale(1.2);
}

.back-btn .pixel-icon {
    background: #ffaa00;
    border-radius: 2px;
}
