:root {
    --bg: #050505;
    --fg: #fff;
    --accent: #FF2E93;
    --dim-text: #666;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ЗАПРЕТ ВЫДЕЛЕНИЯ, МОБИЛЬНАЯ ОПТИМИЗАЦИЯ И КУРСОР */
* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    cursor: none; 
    user-select: none; -webkit-user-select: none; 
    -webkit-tap-highlight-color: transparent; /* Убирает синее выделение при тапе на мобилках */
}

@media (pointer: coarse) {
    * { cursor: auto !important; }
    #custom-cursor, #cursor-dot { display: none !important; }
}

body { background-color: var(--bg); color: var(--fg); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* КУРСОР */
#custom-cursor { position: fixed; width: 30px; height: 30px; border: 1px solid var(--accent); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 9999; transition: width 0.2s, height 0.2s, background-color 0.2s; }
#cursor-dot { position: fixed; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 10000; }
.cursor-hover { width: 50px !important; height: 50px !important; background-color: rgba(255, 46, 147, 0.1); }

/* ФОН И ЗЕРНО */
.background-fixed { 
    position: fixed; top: -2.5%; left: -2.5%; width: 105%; height: 105%; 
    background-image: url('1000107390.jpg'); background-repeat: no-repeat; background-size: cover; background-position: left center; 
    z-index: -2; filter: brightness(0.4) contrast(1.1); 
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); transform: translate(0px, 0px) scale(1);
}
@media (max-width: 768px) { .background-fixed { background-position: 25% center; } }
.grain-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: url('https://grainy-gradients.vercel.app/noise.svg'); opacity: 0.12; pointer-events: none; z-index: 100; }

/* ИНТРО И ОБЕРТКА ПАРАЛЛАКСА */
.section-intro { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 10vw; position: relative; z-index: 10; }
.intro-parallax-wrapper { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; }

@keyframes bootUp { 0% { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(10px); } 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
.boot-anim-1 { animation: bootUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.boot-anim-2 { opacity: 0; animation: bootUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }
.boot-anim-3 { opacity: 0; animation: bootUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards; }
.boot-anim-4 { opacity: 0; animation: bootUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards; }

.weather-box { position: absolute; top: 40px; right: 10vw; font-family: 'Space Mono', monospace; text-align: right; opacity: 0.8; }
.weather-temp { font-size: 1.5rem; font-weight: bold; color: var(--accent); display: block; }
.weather-desc { font-size: 0.7rem; color: var(--dim-text); text-transform: uppercase; }
.main-title { font-size: clamp(3rem, 10vw, 7rem); font-weight: 900; letter-spacing: -0.04em; text-transform: lowercase; text-shadow: 0 0 20px rgba(255,255,255,0.1); }
.subtitle { font-family: 'Space Mono', monospace; color: var(--accent); font-size: 0.9rem; margin-top: 10px; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.scroll-indicator { position: absolute; bottom: 40px; font-family: 'Space Mono'; font-size: 0.7rem; color: var(--dim-text); letter-spacing: 0.2em; text-align: center; width: auto; cursor: none; }
.bounce-arrow { display: block; font-size: 1.2rem; color: var(--accent); margin-top: 5px; animation: bounce 1.5s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* ОСНОВНОЙ КОНТЕНТ */
.content-container { padding: 5vh 10vw 10vh 10vw; max-width: 1400px; position: relative; z-index: 5; }
.widget { margin-bottom: 120px; max-width: 600px; }
.label { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--dim-text); display: block; margin-bottom: 20px; letter-spacing: 0.2em; }

/* ОБЩИЕ СТИЛИ ВИДЖЕТОВ */
.monitor-box, .lanyard-box, .player-box, .map-box { background: var(--glass); border: 1px solid var(--glass-border); padding: 20px; font-family: 'Space Mono', monospace; backdrop-filter: blur(10px); transition: border 0.3s; }
.player-box, .map-box { padding: 30px; font-family: 'Inter', sans-serif; }
.monitor-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; margin-bottom: 20px; color: var(--dim-text); border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; }
.monitor-stats { display: flex; justify-content: space-between; margin-bottom: 15px; }
.stat-col { display: flex; flex-direction: column; gap: 5px; }
.stat-label { font-size: 0.6rem; color: var(--dim-text); }
.stat-value { font-size: 1.2rem; font-weight: bold; }

/* HYSTERIA2 WIDGET */
.monitor-title { display: flex; align-items: center; gap: 10px; font-weight: bold; color: var(--fg); }
.hysteria-badge { background: rgba(255, 46, 147, 0.1); border: 1px solid var(--accent); color: var(--accent); padding: 2px 6px; font-size: 0.6rem; border-radius: 2px; animation: glitch-tremor 3s infinite; }
@keyframes glitch-tremor { 0%, 95%, 100% { transform: translate(0, 0); opacity: 1; filter: drop-shadow(0 0 0px var(--accent)); } 96% { transform: translate(-2px, 1px); opacity: 0.8; filter: drop-shadow(0 0 5px var(--accent)); } 98% { transform: translate(2px, -1px); opacity: 0.9; } }
.ping-display { display: flex; align-items: baseline; gap: 4px; background: rgba(0,0,0,0.5); padding: 5px 10px; border: 1px solid #222; border-radius: 4px; }
.ping-val { font-size: 1.5rem; font-weight: 900; font-family: 'Space Mono', monospace; transition: color 0.3s; }
.ping-unit { font-size: 0.6rem; color: var(--dim-text); }
.graph-track { width: 100%; height: 6px; background: #111; margin-top: 5px; border-radius: 3px; overflow: hidden; position: relative; }
.graph-bar { height: 100%; background: linear-gradient(90deg, transparent, #fff); width: 0%; transition: width 0.3s, background 0.3s; position: absolute; left: 0; top: 0; }
.graph-bar.rx { background: linear-gradient(90deg, transparent, var(--accent)); }

/* LANYARD WIDGET */
.lanyard-box { display: flex; align-items: center; gap: 20px; }
.lanyard-avatar { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.lanyard-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #333; }
.lanyard-status-dot { position: absolute; bottom: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #747f8d; border: 2px solid var(--bg); }
.lanyard-info { font-family: 'Space Mono', monospace; overflow: hidden; width: 100%; }
.lanyard-user { font-size: 1rem; font-weight: bold; color: var(--fg); margin-bottom: 5px; }
.lanyard-activity { font-size: 0.75rem; color: var(--dim-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ПЛЕЕР */
.player-layout { display: flex; align-items: center; gap: 30px; }
@media (max-width: 600px) { .player-layout { flex-direction: column; align-items: flex-start; gap: 20px; } }
.vinyl-container { position: relative; width: 120px; height: 120px; flex-shrink: 0; border-radius: 50%; background: #0a0a0a; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 0 4px #222, inset 0 0 15px #000; overflow: hidden; }
.vinyl-container img { width: 75%; height: 75%; border-radius: 50%; object-fit: cover; animation: spin 4s linear infinite; animation-play-state: paused; border: 1px solid #111; }
.vinyl-container.spinning img { animation-play-state: running; }
.vinyl-hole { position: absolute; width: 12px; height: 12px; background: var(--bg); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid #222; z-index: 2; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.player-controls-area { flex-grow: 1; width: 100%; }
.player-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.player-info { display: flex; flex-direction: column; gap: 5px; }
.track-name { font-weight: 900; font-size: 1.2rem; }
.artist-name { font-family: 'Space Mono'; font-size: 0.8rem; color: var(--dim-text); }

/* Эквалайзер */
.dynamic-eq { display: flex; align-items: flex-end; gap: 3px; height: 35px; width: 40px; }
.dynamic-eq span { width: 5px; background: var(--dim-text); height: 10%; border-radius: 1px; transition: background 0.3s; }
.dynamic-eq.playing span { background: var(--accent); animation: eq-bounce 1s infinite alternate ease-in-out; }
.dynamic-eq.playing span:nth-child(1) { animation-duration: 0.6s; }
.dynamic-eq.playing span:nth-child(2) { animation-duration: 0.9s; animation-delay: 0.2s; }
.dynamic-eq.playing span:nth-child(3) { animation-duration: 0.7s; animation-delay: 0.4s; }
.dynamic-eq.playing span:nth-child(4) { animation-duration: 0.5s; animation-delay: 0.1s; }
.dynamic-eq.playing span:nth-child(5) { animation-duration: 0.8s; animation-delay: 0.3s; }
@keyframes eq-bounce { 0% { height: 10%; } 25% { height: 40%; } 50% { height: 100%; } 75% { height: 30%; } 100% { height: 80%; } }

.progress-bar { width: 100%; height: 2px; background: #333; margin: 15px 0; }
.progress-fill { width: 0%; height: 100%; background: var(--accent); transition: width 0.1s linear; }

.player-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.player-controls { display: flex; gap: 15px; font-family: 'Space Mono', monospace; }
.btn-play { background: var(--fg); color: var(--bg); border: none; padding: 5px 20px; font-weight: bold; transition: all 0.3s; }
.btn-play:hover { background: var(--accent); color: var(--fg); }
.btn-icon { background: transparent; color: var(--dim-text); border: none; font-size: 1rem; transition: color 0.3s; }
.btn-icon:hover { color: var(--fg); }

/* Ползунок громкости */
.volume-control { display: flex; align-items: center; gap: 10px; font-family: 'Space Mono', monospace; }
.vol-label { font-size: 0.7rem; color: var(--dim-text); }
input[type=range] { -webkit-appearance: none; width: 80px; background: transparent; cursor: pointer !important; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 3px; background: #333; border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 12px; width: 6px; background: var(--fg); margin-top: -4px; border-radius: 1px; transition: background 0.2s, transform 0.2s; }
input[type=range]:hover::-webkit-slider-thumb { background: var(--accent); transform: scale(1.2); }

/* КАРТА */
.map-log { font-family: 'Space Mono'; font-size: 0.75rem; color: var(--accent); margin-bottom: 15px; }
.map-container { position: relative; width: 100%; aspect-ratio: 2 / 1; border: 1px solid rgba(255,255,255,0.05); overflow: hidden; background: #000; }
.world-map-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.visitor-dot { position: absolute; width: 8px; height: 8px; background: red; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 10px red, 0 0 20px red; animation: pulse 2s infinite; display: none; }

/* АНИМЕ */
.anime-box { background: transparent; }
.anime-category { margin-bottom: 30px; }
.anime-cat-title { font-family: 'Space Mono'; font-size: 0.8rem; color: var(--accent); border-bottom: 1px solid #333; padding-bottom: 5px; margin-bottom: 15px; }
.anime-list-ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.anime-item { display: flex; justify-content: space-between; font-size: 0.9rem; transition: color 0.2s; }
.anime-item:hover { color: var(--accent); }
.anime-item-title { font-weight: 400; }
.anime-item-status { font-family: 'Space Mono'; font-size: 0.75rem; color: var(--dim-text); }
.anime-dots { flex-grow: 1; border-bottom: 1px dotted #333; margin: 0 10px; position: relative; top: -5px; }

/* ГАЛЕРЕЯ */
.gallery-container { position: relative; width: 100%; height: 350px; background: #111; border: 1px solid var(--glass-border); overflow: hidden; }
.gallery-wrapper { display: flex; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1); }
.gallery-slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; filter: grayscale(50%); transition: filter 0.3s; }
.gallery-container:hover .gallery-slide { filter: grayscale(0%); }
.gallery-controls { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.gallery-container:hover .gallery-controls { opacity: 1; pointer-events: auto; }
.gallery-btn { background: transparent; color: var(--fg); border: none; font-size: 2rem; padding: 10px; text-shadow: 0 0 10px #000; transition: color 0.3s; }
.gallery-btn:hover { color: var(--accent); }
.gallery-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--accent); width: 0%; transition: width 0.1s linear; }

/* АППАРАТУРА (GEAR) */
.gear-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 600px) { .gear-grid { grid-template-columns: 1fr; } }
.gear-item { position: relative; border: 1px solid var(--glass-border); overflow: hidden; aspect-ratio: 4/3; background: #0a0a0a; border-radius: 4px; }
.gear-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) brightness(0.6); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.gear-item:hover .gear-img { filter: grayscale(0%) brightness(0.2); transform: scale(1.05); }
.gear-overlay { position: absolute; inset: 0; padding: 25px; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(15px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.gear-item:hover .gear-overlay { opacity: 1; transform: translateY(0); }
.gear-title { font-size: 1.2rem; font-weight: 900; color: var(--fg); margin-bottom: 12px; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.gear-specs-list { list-style: none; font-family: 'Space Mono', monospace; font-size: 0.75rem; color: #ccc; text-shadow: 0 1px 5px rgba(0,0,0,0.8); }
.gear-specs-list li { margin-bottom: 6px; display: flex; gap: 10px; }
.gear-specs-list li::before { content: '>'; color: var(--accent); font-weight: bold; }

/* ССЫЛКИ И ТУЛТИПЫ */
.links-grid { display: flex; flex-direction: column; gap: 5px; }
.interactive-btn { font-size: 2rem; font-weight: 900; text-decoration: none; color: var(--fg); transition: all 0.3s; width: max-content; }
.interactive-btn:hover { color: var(--accent); transform: translateX(15px); }

.link-wrapper { position: relative; width: max-content; }
.link-card { position: absolute; left: 100%; top: 50%; transform: translateY(-50%) translateX(-10px); opacity: 0; pointer-events: none; background: rgba(10, 10, 10, 0.85); border: 1px solid var(--glass-border); border-left: 2px solid var(--accent); padding: 15px; display: flex; align-items: center; gap: 15px; backdrop-filter: blur(10px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 100; width: max-content; border-radius: 4px; margin-left: 20px; }
@media (hover: hover) and (pointer: fine) {
    .link-wrapper:hover .link-card { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.link-avatar { width: 45px; height: 45px; border-radius: 4px; border: 1px solid #333; object-fit: cover; }
.link-info { display: flex; flex-direction: column; justify-content: center; }
.link-name { color: var(--fg); font-weight: 900; font-size: 1rem; margin-bottom: 2px; }
.link-sub { color: var(--dim-text); font-family: 'Space Mono', monospace; font-size: 0.7rem; }

/* АНИМАЦИИ */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- СКРЫТЫЙ ПОДВАЛ --- */
.cyber-footer { padding: 80px 10vw 40px 10vw; background: linear-gradient(to top, #0a0a0a, transparent); border-top: 1px solid rgba(255,255,255,0.02); opacity: 0; transform: translateY(30px); transition: all 1s ease; pointer-events: none; }
.cyber-footer.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.footer-content { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 50px; }
.footer-columns { display: flex; gap: 10vw; flex-wrap: wrap; }
.footer-col h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 20px; color: var(--fg); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #999; text-decoration: none; font-size: 1rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-family: 'Space Mono', monospace; font-size: 0.8rem; color: #666; }
.heart { color: #555; transition: color 0.3s; }
.footer-credit:hover .heart { color: var(--accent); }
.webring-box { letter-spacing: 0.1em; transition: color 0.3s; }
.webring-box:hover { color: var(--fg); }
.footer-banner { height: 30px; border-radius: 4px; opacity: 0.7; transition: opacity 0.3s; border: 1px solid #333; }
.footer-banner:hover { opacity: 1; }
/* КНОПКА ЗВУКА */
#sound-toggle {
    position: fixed;
    bottom: 20px;
    left: 20vw; /* Выравниваем по краю контента */
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--dim-text);
    z-index: 1000;
    transition: color 0.3s;
}
@media (max-width: 768px) {
    #sound-toggle { left: 20px; bottom: 10px; } /* На мобилках сдвигаем в угол */
}
#sound-toggle:hover {
    color: var(--accent);
}