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

body {
    background: radial-gradient(circle at 20% 30%, #0a0f1e, #03060c);
    font-family: 'Segoe UI', 'Cinema', 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero {
    text-align: center;
    color: #e0e5f0;
    z-index: 2;
    backdrop-filter: blur(3px);
    padding: 2rem;
    border-radius: 2rem;
    background: rgba(10, 20, 30, 0.4);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.1);
    animation: fadeIn 2s ease-out;
}

h1 {
    font-size: 4rem;
    letter-spacing: 6px;
    text-shadow: 0 0 12px cyan, 0 0 20px #ff4d4d;
    background: linear-gradient(135deg, #ffcc88, #ff6699, #88ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 4s infinite;
}

.subtitle {
    font-size: 1.2rem;
    margin: 1rem 0;
    letter-spacing: 2px;
    color: #bbd9ff;
}

.runes {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.rune {
    font-size: 2rem;
    font-family: monospace;
    filter: drop-shadow(0 0 6px gold);
    animation: floatRune 3s infinite alternate;
}

.rune:nth-child(2) { animation-delay: 0.4s; }
.rune:nth-child(3) { animation-delay: 0.8s; }
.rune:nth-child(4) { animation-delay: 1.2s; }

.scroll-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 2rem auto;
}

.core {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ffaa44, #ff4400);
    border-radius: 50%;
    position: absolute;
    top: 35px;
    left: 35px;
    box-shadow: 0 0 20px orange;
    animation: pulseCore 2s infinite;
}

.energy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 50%;
    border-top-color: #ff5555;
    border-right-color: #55ff55;
    animation: spin 3s linear infinite;
}

.status {
    font-size: 1rem;
    margin-top: 2rem;
    background: #00000066;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    backdrop-filter: blur(8px);
    letter-spacing: 1px;
}

/* анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { text-shadow: 0 0 5px cyan, 0 0 10px #ff4d4d; }
    100% { text-shadow: 0 0 25px cyan, 0 0 35px #ff4d4d; }
}

@keyframes floatRune {
    0% { transform: translateY(0px); opacity: 0.7; }
    100% { transform: translateY(-15px); opacity: 1; text-shadow: 0 0 12px gold; }
}

@keyframes pulseCore {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0.3; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.element {
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

.fire {
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, #ff6600, transparent);
    filter: blur(20px);
    animation: drift 20s infinite alternate;
}
.water {
    bottom: 10%;
    right: 5%;
    background: radial-gradient(circle, #3399ff, transparent);
    filter: blur(25px);
    animation: drift 25s infinite alternate-reverse;
}
.earth {
    bottom: 20%;
    left: 15%;
    background: radial-gradient(circle, #8b5a2b, transparent);
    filter: blur(28px);
    width: 200px;
    height: 200px;
    animation: drift 18s infinite alternate;
}
.air {
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, #cceeff, transparent);
    filter: blur(30px);
    animation: drift 22s infinite alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    100% { transform: translate(50px, 50px) scale(1.2); opacity: 0.5; }
}