/* HELLMODE V2: launch controls beneath torture modules. */
.launch-panel {
    margin-top: 32px;
    padding: 28px;
    border: 1px solid rgba(255, 70, 70, 0.25);
    border-radius: 16px;
    background:
        radial-gradient(ellipse at top right, rgba(220, 30, 30, 0.12), transparent 65%),
        rgba(12, 12, 15, 0.85);
}

.launch-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.launch-heading h3 {
    margin: 8px 0 10px;
    font-size: 22px;
    letter-spacing: 0.04em;
}

.launch-heading p {
    margin: 0;
    max-width: 540px;
    color: #a9a9b0;
    font-size: 14px;
    line-height: 1.6;
}

#launchArmed {
    flex-shrink: 0;
    color: #ff7777;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.launch-panel .master {
    display: flex;
    gap: 14px;
}

.launch-panel #hellButton {
    flex: 1;
}

.launch-panel #hellButton:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

.launch-panel #abortButton:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .launch-panel {
        padding: 20px;
    }

    .launch-heading {
        flex-direction: column;
        gap: 12px;
    }

    .launch-panel .master {
        flex-direction: column;
    }

    .launch-panel .master button {
        width: 100%;
    }
}


/* ==========================================
   HELLMODE - ANIMATED FIRE HERO TEXT
   CSS-only, paused while the stress test runs.
   ========================================== */

.hero h1 em.hell-fire {
    position: relative;
    display: inline-block;
    isolation: isolate;
    font-style: inherit;
    color: #e66100;
    background-image: linear-gradient(
        175deg,
        #e5a50a 0%,
        #fff0a3 15%,
        #e66100 35%,
        #e01b24 56%,
        #ff8b16 73%,
        #e5a50a 88%,
        #e01b24 100%
    );
    background-size: 140% 320%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0 transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(230, 97, 0, 0.42));
    animation:
        hell-fire-flow 3.2s linear infinite,
        hell-fire-glow 2.4s ease-in-out infinite alternate;
}

.hero h1 em.hell-fire::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    color: #e01b24;
    -webkit-text-fill-color: #e01b24;
    -webkit-text-stroke: 0 transparent;
    opacity: 0.35;
    filter: blur(12px);
    pointer-events: none;
    animation: hell-fire-embers 2.1s ease-in-out infinite alternate;
}

@keyframes hell-fire-flow {
    0% { background-position: 50% 0%; }
    100% { background-position: 50% 100%; }
}

@keyframes hell-fire-glow {
    0% { filter: drop-shadow(0 0 5px rgba(224, 27, 36, 0.32)); }
    100% { filter: drop-shadow(0 0 15px rgba(230, 97, 0, 0.70)); }
}

@keyframes hell-fire-embers {
    0% { opacity: 0.20; transform: translateY(1px) scale(1); }
    100% { opacity: 0.45; transform: translateY(-2px) scale(1.02); }
}

/* Avoid adding decorative animation workload to benchmark results. */
body.hell .hero h1 em.hell-fire,
body.hell .hero h1 em.hell-fire::after {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .hero h1 em.hell-fire,
    .hero h1 em.hell-fire::after {
        animation: none;
    }
}
