@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Uncial+Antiqua&display=swap');

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Cinzel', serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.glitch-header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(to bottom, #1a1a1a, #000);
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
}

h1.glitch {
    font-size: 3em;
    color: #ffdddd;
    position: relative;
    animation: glitch 1s infinite;
}

h1.glitch::before,
h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip: rect(0, 900px, 0, 0);
}

h1.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

h1.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    animation: glitch-anim 1.5s infinite linear alternate-reverse;
}

.subtitle.glitch {
    font-size: 1.2em;
    color: #ccc;
    animation: glitch-text 3s infinite;
}

.manifesto {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #ff0000;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.mask-ritual {
    position: relative;
    overflow: hidden;
}

.mask-ritual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="M50 0 L100 50 L50 100 L0 50 Z" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.2;
}

.elven-script {
    font-family: 'Uncial Antiqua', cursive;
    color: #ffd700;
    font-size: 2em;
    text-shadow: 0 0 10px #ffd700;
}

p {
    line-height: 1.6;
    font-size: 1.1em;
    color: #ddd;
}

.connection-seek {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.cryptic-call {
    margin-bottom: 20px;
}

.ritual-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.glitch-input {
    background: #111;
    border: 1px solid #ff0000;
    color: #fff;
    padding: 10px;
    font-family: 'Cinzel', serif;
    animation: glitch-border 2s infinite;
}

.glitch-button {
    background: #ff0000;
    border: none;
    color: #000;
    padding: 10px;
    cursor: pointer;
    font-family: 'Uncial Antiqua', cursive;
    animation: glitch 1s infinite;
}

footer {
    text-align: center;
    padding: 20px;
    background: #000;
    color: #888;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(95px, 9999px, 98px, 0); }
    20% { clip: rect(50px, 9999px, 102px, 0); }
    25% { clip: rect(8px, 9999px, 14px, 0); }
    30% { clip: rect(47px, 9999px, 16px, 0); }
    35% { clip: rect(99px, 9999px, 105px, 0); }
    40% { clip: rect(17px, 9999px, 64px, 0); }
    45% { clip: rect(82px, 9999px, 14px, 0); }
    50% { clip: rect(111px, 9999px, 18px, 0); }
    55% { clip: rect(97px, 9999px, 71px, 0); }
    60% { clip: rect(38px, 9999px, 90px, 0); }
    65% { clip: rect(134px, 9999px, 119px, 0); }
    70% { clip: rect(121px, 9999px, 85px, 0); }
    75% { clip: rect(130px, 9999px, 5px, 0); }
    80% { clip: rect(26px, 9999px, 89px, 0); }
    85% { clip: rect(105px, 9999px, 29px, 0); }
    90% { clip: rect(86px, 9999px, 73px, 0); }
    95% { clip: rect(37px, 9999px, 98px, 0); }
    100% { clip: rect(129px, 9999px, 123px, 0); }
}

@keyframes glitch-text {
    0% { text-shadow: 0.05em 0 0 #f00, -0.03em -0.04em 0 #0f0, 0.04em 0.03em 0 #00f; }
    14% { text-shadow: 0.05em 0 0 #f00, -0.03em -0.04em 0 #0f0, 0.04em 0.03em 0 #00f; }
    15% { text-shadow: -0.05em -0.025em 0 #f00, 0.025em 0.035em 0 #0f0, -0.05em -0.05em 0 #00f; }
    49% { text-shadow: -0.05em -0.025em 0 #f00, 0.025em 0.035em 0 #0f0, -0.05em -0.05em 0 #00f; }
    50% { text-shadow: 0.025em 0.035em 0 #f00, 0.05em 0 0 #0f0, 0 -0.05em 0 #00f; }
    99% { text-shadow: 0.025em 0.035em 0 #f00, 0.05em 0 0 #0f0, 0 -0.05em 0 #00f; }
    100% { text-shadow: -0.025em 0 0 #f00, -0.025em -0.035em 0 #0f0, -0.04em -0.02em 0 #00f; }
}

@keyframes glitch-border {
    0% { border-color: #ff0000; }
    20% { border-color: #00ff00; }
    40% { border-color: #0000ff; }
    60% { border-color: #ff00ff; }
    80% { border-color: #ffff00; }
    100% { border-color: #ff0000; }
}