body.is-hell-loading .site-header,
body.is-hell-loading .site-main,
body.is-hell-loading .site-footer,
body.is-hell-loading .flash-container,
body.is-hell-loading .hellscape {
    filter: blur(12px) brightness(0.7) saturate(0.9);
    transition: filter 0.65s ease;
}

body.hell-loader-done .site-header,
body.hell-loader-done .site-main,
body.hell-loader-done .site-footer,
body.hell-loader-done .flash-container,
body.hell-loader-done .hellscape {
    filter: none;
    transition: filter 0.8s ease;
}

.hell-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hell-loader.is-hiding {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hell-loader-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 60% at 50% 42%, rgba(255, 122, 24, 0.28), transparent 62%),
        radial-gradient(ellipse 50% 40% at 80% 90%, rgba(120, 55, 20, 0.35), transparent 70%),
        linear-gradient(180deg, rgba(26, 16, 10, 0.94) 0%, rgba(12, 7, 5, 0.96) 55%, rgba(18, 11, 7, 0.97) 100%);
    backdrop-filter: blur(6px);
}

.hell-loader-core {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.hell-loader-ring-wrap {
    position: relative;
    width: 148px;
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hell-loader-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hell-loader-ring-outer {
    inset: 0;
    background: conic-gradient(
        from 0deg,
        transparent 0deg 28deg,
        #ff7a18 55deg,
        #ffb347 95deg,
        #e8c39a 135deg,
        #c46a1a 175deg,
        #7a3e12 220deg,
        #ff9a3c 265deg,
        #f4e6d4 300deg,
        transparent 330deg 360deg
    );
    animation: hell-ring-spin 1.5s linear infinite;
    filter: blur(0.4px) drop-shadow(0 0 16px rgba(255, 122, 24, 0.55)) drop-shadow(0 0 36px rgba(255, 170, 60, 0.28));
    mask: radial-gradient(transparent 62%, #000 64%);
    -webkit-mask: radial-gradient(transparent 62%, #000 64%);
}

.hell-loader-ring-mid {
    inset: 10px;
    background: conic-gradient(
        from 180deg,
        transparent 0deg 40deg,
        #d4a574 70deg,
        #ff7a18 120deg,
        #ffb347 180deg,
        #5c3a1e 230deg,
        transparent 280deg 360deg
    );
    animation: hell-ring-spin-reverse 2.1s linear infinite;
    opacity: 0.9;
    mask: radial-gradient(transparent 58%, #000 60%);
    -webkit-mask: radial-gradient(transparent 58%, #000 60%);
}

.hell-loader-ring-glow {
    inset: -8px;
    background: radial-gradient(circle, rgba(255, 170, 60, 0.28) 0%, transparent 70%);
    animation: hell-glow-pulse 2.2s ease-in-out infinite;
}

.hell-loader-ring-sparks {
    inset: -4px;
    border: 2px solid transparent;
    border-top-color: rgba(244, 230, 212, 0.55);
    border-right-color: rgba(255, 122, 24, 0.35);
    animation: hell-ring-spin 1s linear infinite;
    opacity: 0.75;
}

.hell-loader-center {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #5a3a22, #1a100a 78%);
    border: 1px solid rgba(255, 179, 71, 0.4);
    box-shadow:
        inset 0 0 22px rgba(255, 122, 24, 0.18),
        0 0 26px rgba(90, 45, 16, 0.55);
    animation: hell-center-pulse 2.5s ease-in-out infinite;
}

.hell-loader-pentagram,
.bakery-loader-leaf {
    position: absolute;
    width: 52px;
    height: 52px;
    color: rgba(255, 179, 71, 0.45);
    animation: hell-pentagram-spin 10s linear infinite;
}

.hell-loader-icon {
    position: relative;
    z-index: 1;
    font-size: 1.7rem;
    animation: hell-icon-bounce 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 170, 60, 0.65));
}

.hell-loader-runes {
    position: absolute;
    inset: -18px;
    animation: hell-ring-spin 14s linear infinite;
}

.hell-loader-rune {
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    transform-origin: 50% 90px;
    font-size: 0.72rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(255, 122, 24, 0.35));
}

.hell-loader-rune:nth-child(1) { transform: rotate(0deg); }
.hell-loader-rune:nth-child(2) { transform: rotate(60deg); }
.hell-loader-rune:nth-child(3) { transform: rotate(120deg); }
.hell-loader-rune:nth-child(4) { transform: rotate(180deg); }
.hell-loader-rune:nth-child(5) { transform: rotate(240deg); }
.hell-loader-rune:nth-child(6) { transform: rotate(300deg); }

.hell-loader-text {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f4e6d4;
    text-shadow: 0 0 18px rgba(255, 122, 24, 0.45);
    animation: hell-text-flicker 3.2s ease-in-out infinite;
}

.hell-loader-sub {
    font-size: 0.8rem;
    color: rgba(232, 195, 154, 0.85);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: -1rem;
    opacity: 0.85;
    animation: hell-sub-pulse 2s ease-in-out infinite;
}

.hell-loader-orbit {
    position: absolute;
    left: calc(50% - 3px);
    top: calc(50% - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff7a18;
    box-shadow: 0 0 10px #ffb347, 0 0 18px #ff7a18;
    animation: hell-orbit 2.2s linear infinite;
}

.hell-loader-orbit-2 {
    left: calc(50% - 2px);
    top: calc(50% - 2px);
    width: 4px;
    height: 4px;
    animation-duration: 1.6s;
    animation-direction: reverse;
    background: #f4e6d4;
}

@keyframes hell-ring-spin {
    to { transform: rotate(360deg); }
}

@keyframes hell-ring-spin-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes hell-glow-pulse {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes hell-center-pulse {
    0%, 100% {
        box-shadow:
            inset 0 0 22px rgba(255, 122, 24, 0.12),
            0 0 22px rgba(90, 45, 16, 0.45);
    }
    50% {
        box-shadow:
            inset 0 0 30px rgba(255, 170, 60, 0.28),
            0 0 36px rgba(255, 122, 24, 0.4);
    }
}

@keyframes hell-pentagram-spin {
    to { transform: rotate(360deg); }
}

@keyframes hell-icon-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.08); }
}

@keyframes hell-text-flicker {
    0%, 100% { opacity: 1; }
    45% { opacity: 0.78; }
    50% { opacity: 1; }
    55% { opacity: 0.88; }
}

@keyframes hell-sub-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes hell-orbit {
    0% { transform: rotate(0deg) translateX(74px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(74px) rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
    body.is-hell-loading .site-header,
    body.is-hell-loading .site-main,
    body.is-hell-loading .site-footer,
    body.is-hell-loading .flash-container,
    body.is-hell-loading .hellscape {
        filter: none;
        transform: none;
    }

    .hell-loader-ring-outer,
    .hell-loader-ring-mid,
    .hell-loader-ring-sparks,
    .hell-loader-pentagram,
    .hell-loader-runes,
    .hell-loader-orbit,
    .hell-loader-icon,
    .hell-loader-center {
        animation: none;
    }
}
