:root {
    --bg-color: #050505;
    --text-color: #888; /* Более темный текст по умолчанию */
    --accent-color: #fff; /* Акцент теперь белый, но редкий */
    --terminal-bg: #000;
    --terminal-border: #222;
    --font-head: 'Syncopate', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

body, html {
    margin: 0; padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; opacity: 0.05;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
}

/* --- ENTER SCREEN --- */
#enter-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}
.warning { font-family: var(--font-mono); color: #444; margin-bottom: 20px; letter-spacing: 2px; }
#enter-btn {
    background: transparent; border: 1px solid #444; color: #aaa;
    padding: 15px 40px; font-family: var(--font-head); font-weight: 700; cursor: pointer;
    transition: 0.3s; letter-spacing: 2px;
}
#enter-btn:hover { border-color: #fff; color: #fff; background: #111; }

/* --- HERO SECTION --- */
.hero-section {
    position: relative; height: 100vh; width: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('bg_mine.jpg') no-repeat center center;
    background-size: cover;
    z-index: 1;
}
/* Vignette */
.hero-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.95) 90%);
}

.hero-content { position: relative; z-index: 10; text-align: center; width: 90%; }

/* --- TRANSPARENT GLITCH TITLE --- */
.glitch-title {
    font-family: var(--font-head);
    font-size: 7vw; 
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    margin: 0;
    letter-spacing: 0.05em;
    
    /* Make letters transparent */
    color: transparent; 
    /* White outline */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    
    /* Blend slightly with background */
    mix-blend-mode: hard-light; 
}

/* Glitch Layers (Outline only) */
.glitch-title::before, .glitch-title::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    opacity: 0.7;
    /* Glitch layers also transparent with stroke */
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
}
.glitch-title::before {
    left: 2px; text-shadow: none;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 4s infinite linear alternate-reverse;
}
.glitch-title::after {
    left: -2px; text-shadow: none;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); transform: skew(0.5deg); }
    20% { clip: rect(80px, 9999px, 90px, 0); transform: skew(-0.5deg); }
    40% { clip: rect(10px, 9999px, 50px, 0); }
    60% { clip: rect(40px, 9999px, 20px, 0); transform: skew(0.2deg); }
    100% { clip: rect(20px, 9999px, 60px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(10px, 9999px, 80px, 0); transform: skew(-0.5deg); }
    40% { clip: rect(80px, 9999px, 20px, 0); transform: skew(0.5deg); }
    80% { clip: rect(10px, 9999px, 40px, 0); }
    100% { clip: rect(60px, 9999px, 30px, 0); }
}

.subtitle {
    font-size: 1.2rem; letter-spacing: 6px; color: #666; margin-top: 15px;
    font-family: var(--font-mono); 
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 20; text-align: center; opacity: 0.5;
    animation: bounce 2s infinite;
}
.scroll-text {
    display: block; font-family: var(--font-mono); font-size: 0.8rem; 
    letter-spacing: 2px; margin-bottom: 10px; color: #aaa;
}
.arrow-down {
    width: 0; height: 0; 
    border-left: 8px solid transparent; border-right: 8px solid transparent;
    border-top: 8px solid #aaa; margin: 0 auto;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* --- GALLERY (BREATHING & MIST) --- */
.main-wrapper { 
    position: relative; z-index: 5; background: #050505; 
    min-height: 100vh; padding-top: 50px;
}

/* Wrapper for mask effect */
.gallery-mask {
    position: relative;
    /* Fade out bottom to black/transparent */
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    padding-bottom: 50px;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px; 
    grid-auto-flow: dense; 
    gap: 15px;
    padding: 20px;
    max-width: 1800px; margin: 0 auto;
}

.art-card {
    position: relative; 
    background: #080808;
    overflow: hidden;
    opacity: 0; 
    transition: transform 0.3s ease; /* For hover interact */
}

/* 2x2 Big Block */
.art-card.big { 
    grid-column: span 2; 
    grid-row: span 2;
}

.art-card img {
    width: 100%; height: 100%; 
    object-fit: cover; 
    display: block;
    image-rendering: pixelated; 
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.5s ease;
}

.art-card:hover img {
    filter: grayscale(0%) brightness(1);
}

.art-id {
    position: absolute; bottom: 0; right: 0;
    background: #000; color: #fff;
    padding: 4px 8px; font-family: var(--font-mono); font-size: 0.8rem; 
    transform: translateY(100%); transition: transform 0.3s ease;
}
.art-card:hover .art-id { transform: translateY(0); }

/* --- DARK TERMINAL --- */
.terminal-section {
    padding: 80px 20px; background: #000;
    border-top: 1px solid #111; margin-top: -50px; /* Pull up into the fade */
    position: relative; z-index: 10;
}
.terminal-box {
    max-width: 700px; margin: 0 auto;
    background: var(--terminal-bg); 
    border: 1px solid var(--terminal-border);
    font-family: var(--font-mono); 
}
.terminal-header {
    background: #0a0a0a; padding: 10px; color: #444; font-size: 0.8rem;
    border-bottom: 1px solid #1a1a1a; display: flex; align-items: center; gap: 10px;
}
/* Red/Dim dot for status instead of green */
.status-dot { width: 6px; height: 6px; background: #333; border-radius: 50%; box-shadow: 0 0 2px #555; }

.terminal-body { padding: 30px; }
.cmd-title { color: #888; margin-top: 0; font-size: 1.1rem; margin-bottom: 5px; font-weight: normal;}
.cmd-desc { color: #444; margin-bottom: 25px; font-size: 0.8rem; }

.input-line {
    display: flex; gap: 10px; align-items: center;
    border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 20px;
}
.user-prompt { color: #555; }
#miner-id-input {
    background: transparent; border: none; color: #fff;
    font-family: var(--font-mono); font-size: 1.1rem; width: 100%; outline: none;
}
#search-btn {
    background: #222; color: #888; border: 1px solid #333;
    font-family: var(--font-head); font-weight: bold; padding: 5px 20px; cursor: pointer;
    transition: 0.2s;
}
#search-btn:hover { background: #fff; color: #000; }

.results-area { display: flex; flex-direction: column; gap: 10px; animation: fadeIn 0.5s; }
.results-area.hidden { display: none; }
.dl-link {
    color: #888; text-decoration: none; border: 1px solid #222; padding: 12px;
    display: block; transition: 0.3s; font-size: 0.9rem;
}
.dl-link:hover { border-color: #fff; color: #fff; background: #111; }

@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

/* --- FOOTER --- */
.footer { padding: 50px 20px; background: #000; text-align: center; border-top: 1px solid #111; }
.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.social-btn {
    color: #444; text-decoration: none; font-family: var(--font-head); border: 1px solid #222;
    padding: 8px 16px; font-size: 0.8rem; transition: 0.3s;
}
.social-btn:hover { color: #fff; border-color: #fff; }
.disclaimer { color: #333; font-size: 0.7rem; max-width: 600px; margin: 0 auto; font-family: var(--font-mono); line-height: 1.5; }