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

body {
    min-height: 100vh;
    font-family: 'Cinzel', 'Times New Roman', serif;
    background:
        radial-gradient(ellipse at center, #1a0203 0%, #0a0000 55%, #000000 100%),
        #000;
    color: #f4d4d4;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg,   rgba(0,0,0,0.25) 0 2px, transparent 2px 4px),
        repeating-linear-gradient(90deg,  rgba(0,0,0,0.15) 0 2px, transparent 2px 5px);
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: multiply;
}

body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 60%, transparent 0%, rgba(0,0,0,0.85) 90%);
    pointer-events: none;
}

.fog {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 30%, rgba(120, 10, 10, 0.18), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(80, 0, 0, 0.22), transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(60, 0, 0, 0.25), transparent 50%);
    filter: blur(40px);
    animation: drift 25s ease-in-out infinite alternate;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(3%, -3%) scale(1.08); }
}

.embers {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 80%, #ff3a2a, transparent 60%),
        radial-gradient(1px   1px   at 35% 60%, #c0241b, transparent 60%),
        radial-gradient(2px   2px   at 60% 85%, #ff5236, transparent 60%),
        radial-gradient(1px   1px   at 78% 55%, #b8201a, transparent 60%),
        radial-gradient(1.5px 1.5px at 88% 78%, #ff442d, transparent 60%),
        radial-gradient(1px   1px   at 25% 95%, #de2a1d, transparent 60%);
    opacity: 0.85;
    animation: rise 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes rise {
    0%   { transform: translateY(0);     opacity: 0.4; }
    50%  { opacity: 0.95; }
    100% { transform: translateY(-30px); opacity: 0.35; }
}

.container {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hello {
    font-family: 'UnifrakturMaguntia', 'Cinzel', serif;
    font-size: clamp(2.8rem, 11vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    line-height: 1.1;
}

.hello span {
    display: inline-block;
    color: #8b0000;
    background: linear-gradient(180deg, #ff2a1a 0%, #8b0000 45%, #3a0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 8px  rgba(180, 0, 0, 0.55),
        0 0 22px rgba(120, 0, 0, 0.45),
        0 0 40px rgba(80,  0, 0, 0.35);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.9));
    animation:
        flicker 3.2s ease-in-out infinite,
        sway 5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.08s);
}

.hello .space {
    width: 0.45em;
}

@keyframes flicker {
    0%, 100% { opacity: 1;    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.9)) brightness(1); }
    42%      { opacity: 0.92; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.9)) brightness(0.85); }
    45%      { opacity: 1;    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.9)) brightness(1.1); }
    48%      { opacity: 0.88; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.9)) brightness(0.8); }
    52%      { opacity: 1;    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.9)) brightness(1); }
}

@keyframes sway {
    0%, 100% { transform: translateY(0)    rotate(0deg); }
    50%      { transform: translateY(-3px) rotate(0.4deg); }
}

.subtitle {
    margin-top: 1.8rem;
    font-family: 'Cinzel', serif;
    font-size: clamp(0.85rem, 1.8vw, 1.15rem);
    color: rgba(180, 30, 30, 0.75);
    letter-spacing: 0.45em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(120, 0, 0, 0.6);
    animation: fadeIn 3s ease-out 1.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); letter-spacing: 0.2em; }
    to   { opacity: 0.85; transform: translateY(0); letter-spacing: 0.45em; }
}
