* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #080808;
    --fg: #ffffff;
    --fg-dim: #888888;
    --fg-muted: #444444;
    --border: #1a1a1a;
    --mono: 'JetBrains Mono', monospace;
}

html, body {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--mono);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Сетка на фоне */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 80%);
}

/* Шум */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Контейнер */
.container {
    min-height: 100vh;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Ник */
h1 {
    position: relative;
    font-family: 'Anton', sans-serif;
    font-size: min(36vw, 260px);
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: -0.05em;
    text-transform: lowercase;
    color: var(--fg);
    margin-bottom: 24px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

h1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30%;
    width: 80%;
    height: 130%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.06) 35%,
        transparent 70%
    );
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { 
        opacity: 0.5; 
        transform: translate(-50%, -50%) scale(0.95); 
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.15); 
    }
}

h1 span {
    position: relative;
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    white-space: nowrap;
    max-width: 100%;
}

h1 span:nth-child(1) { animation-delay: 0.1s; }
h1 span:nth-child(2) { 
    animation-delay: 0.25s;
    padding-left: 0.55em;
    color: var(--fg-dim);
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ГЛИТЧ ===== */
h1 span::before,
h1 span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: inherit;
    padding-left: inherit;
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
}

h1 span::before {
    color: var(--fg);
    animation: glitchTop 4s infinite steps(1);
}

h1 span::after {
    color: var(--fg-dim);
    animation: glitchBot 4s steps(1) infinite;
    animation-delay: 0.05s;
}

@keyframes glitchTop {
    0%, 24%, 28%, 54%, 58%, 91%, 100% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
        transform: translate(0, 0);
    }
    25% { opacity: 1; clip-path: inset(10% 0 55% 0); transform: translate(-4px, -2px); }
    26% { opacity: 1; clip-path: inset(45% 0 25% 0); transform: translate(4px, 1px); }
    27% { opacity: 1; clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
    55% { opacity: 1; clip-path: inset(65% 0 10% 0); transform: translate(3px, -1px); }
    56% { opacity: 1; clip-path: inset(15% 0 50% 0); transform: translate(-4px, 2px); }
    57% { opacity: 1; clip-path: inset(40% 0 30% 0); transform: translate(4px, -2px); }
    93% { opacity: 1; clip-path: inset(10% 0 55% 0); transform: translate(-4px, -2px); }
    94% { opacity: 1; clip-path: inset(45% 0 25% 0); transform: translate(4px, 1px); }
    95% { opacity: 1; clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
    96% { opacity: 1; clip-path: inset(65% 0 10% 0); transform: translate(3px, -1px); }
    97% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
}

@keyframes glitchBot {
    0%, 24%, 28%, 54%, 58%, 91%, 100% {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
        transform: translate(0, 0);
    }
    25% { opacity: 1; clip-path: inset(60% 0 15% 0); transform: translate(4px, 2px); }
    26% { opacity: 1; clip-path: inset(25% 0 55% 0); transform: translate(-4px, -1px); }
    27% { opacity: 1; clip-path: inset(5% 0 70% 0); transform: translate(3px, 0); }
    55% { opacity: 1; clip-path: inset(50% 0 30% 0); transform: translate(-3px, 1px); }
    56% { opacity: 1; clip-path: inset(10% 0 65% 0); transform: translate(4px, -2px); }
    57% { opacity: 1; clip-path: inset(35% 0 40% 0); transform: translate(-4px, 2px); }
    93% { opacity: 1; clip-path: inset(60% 0 15% 0); transform: translate(4px, 2px); }
    94% { opacity: 1; clip-path: inset(25% 0 55% 0); transform: translate(-4px, -1px); }
    95% { opacity: 1; clip-path: inset(5% 0 70% 0); transform: translate(3px, 0); }
    96% { opacity: 1; clip-path: inset(50% 0 30% 0); transform: translate(-3px, 1px); }
    97% { opacity: 0; clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
}

/* ===== СТАТУС ===== */
.status {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
    font-family: var(--mono);
    width: 100%;
}

.status-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Сплит-блок: LOCATION слева, VISITS справа */
.status-block-split {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.status-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-col-right {
    text-align: right;
    align-items: flex-end;
}

.status-col-right .status-line {
    justify-content: flex-end;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--fg);
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--fg);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.status-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #999999;
    text-transform: lowercase;
    width: 100%;
}

.status-col-right .status-meta {
    justify-content: flex-end;
}

.status-meta .sep {
    color: #999999;
    opacity: 0.5;
}

/* ===== ССЫЛКИ ===== */
.links {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.link {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 26px 0;
    border-top: 1px solid var(--border);
    text-decoration: none;
    color: #e0e0e0;
    transition: color 0.3s ease, padding-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: linkReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.link:nth-child(1) { animation-delay: 0.5s; }
.link:nth-child(2) { animation-delay: 0.65s; }
.link:nth-child(3) { animation-delay: 0.8s; }
.link:nth-child(4) { animation-delay: 0.95s; }

@keyframes linkReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link:last-of-type {
    border-bottom: 1px solid var(--border);
}

.link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--fg);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link:hover {
    color: var(--fg);
    padding-left: 28px;
}

.link:hover::before {
    width: 2px;
}

.link-num {
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-muted);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.link:hover .link-num {
    color: var(--fg);
}

.link-name {
    font-family: 'Anton', sans-serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: lowercase;
    color: #e0e0e0;
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.link:hover .link-name {
    color: #ffffff;
    transform: scale(1.02);
}

.link-arrow {
    font-size: 22px;
    color: var(--fg-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link:hover .link-arrow {
    color: var(--fg);
    transform: translate(6px, -6px);
}

/* Мобильная адаптация */
@media (max-width: 700px) {
    .container {
        padding: 32px 16px 32px;
    }
    h1 {
        font-size: min(34vw, 200px);
        margin-bottom: 20px;
        margin-top: 10px;
    }
    .status { margin-bottom: 28px; gap: 20px; }
    .status-meta { font-size: 11px; letter-spacing: 1px; }
    .link {
        grid-template-columns: 32px 1fr auto;
        gap: 12px;
        padding: 22px 0;
    }
    .link-name { font-size: 26px; }
    .link-arrow { font-size: 18px; }
}