/* Lovecraftian ornaments shared by the whole app: the abyssal sky, sigils, ink tendrils, the watching eye,
   carved card frames and the glow around charts. Everything is CSS/SVG only, purely decorative, and every
   animation stops under prefers-reduced-motion (see the end of this file). */

html,
body {
    /* Decorative layers bleed past the viewport edges; never let them cause sideways scrolling on phones. */
    overflow-x: clip;
}

body {
    /* Own stacking context, so the z-index:-1 sky layers paint above the body gradient instead of beneath it. */
    isolation: isolate;
}

/* ---------- The sky: twinkling stars and deep-water caustics ---------- */

body::before {
    animation: eldritch-twinkle 7s ease-in-out infinite alternate;
}

/* Light from a surface far above, wavering across the sea floor. */
body::after {
    position: fixed;
    z-index: -1;
    inset: -12%;
    background:
        radial-gradient(ellipse 34% 20% at 22% 28%, rgba(114, 244, 213, .075), transparent 70%),
        radial-gradient(ellipse 26% 24% at 72% 18%, rgba(108, 174, 255, .06), transparent 70%),
        radial-gradient(ellipse 40% 16% at 56% 72%, rgba(114, 244, 213, .055), transparent 70%),
        radial-gradient(ellipse 22% 28% at 12% 82%, rgba(167, 122, 255, .065), transparent 70%),
        radial-gradient(ellipse 18% 12% at 86% 58%, rgba(114, 244, 213, .05), transparent 70%);
    content: "";
    pointer-events: none;
    animation: eldritch-caustics 38s ease-in-out infinite alternate;
}

/* A second, sparser star field that twinkles out of phase with the first. */
.eldritch-layout::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    opacity: .28;
    background-image:
        radial-gradient(circle at 63% 12%, rgba(255, 244, 215, .95) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 12% 54%, rgba(255, 255, 255, .85) 0 .8px, transparent 1.4px),
        radial-gradient(circle at 88% 81%, rgba(114, 244, 213, .9) 0 1px, transparent 1.6px);
    background-size: 17rem 17rem, 29rem 29rem, 31rem 31rem;
    content: "";
    pointer-events: none;
    animation: eldritch-twinkle-alt 9s ease-in-out infinite alternate;
}

/* The deep: the bottom of the screen sinks into dark water. */
.eldritch-layout::after {
    position: fixed;
    z-index: -1;
    inset: auto 0 0 0;
    height: 45vh;
    background: linear-gradient(to top, rgba(4, 26, 38, .55), rgba(4, 26, 38, 0));
    content: "";
    pointer-events: none;
}

@keyframes eldritch-twinkle {
    from { opacity: .2; }
    to { opacity: .42; }
}

@keyframes eldritch-twinkle-alt {
    0% { opacity: .34; }
    50% { opacity: .12; }
    100% { opacity: .3; }
}

@keyframes eldritch-caustics {
    from { transform: translate3d(-2%, 1%, 0) rotate(-1deg) scale(1.02); }
    to { transform: translate3d(2%, -2%, 0) rotate(1.5deg) scale(1.08); }
}

/* ---------- Elder sigil (app bar, drawer crest, Tonight) ---------- */

.elder-sigil {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.elder-sigil-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: eldritch-spin 80s linear infinite;
}

.elder-sigil-orbits {
    transform-origin: 32px 32px;
    animation: eldritch-spin-back 47s linear infinite;
}

.elder-sigil-core {
    transform-origin: 32px 32px;
    animation: eldritch-spin 13s linear infinite;
}

@keyframes eldritch-spin-back {
    to { transform: rotate(-360deg); }
}

.eldritch-nav-crest-sigil {
    display: block;
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    color: #72f4d5;
    filter: drop-shadow(0 0 6px rgba(114, 244, 213, .5));
}

.tonight-sigil .elder-sigil {
    width: 82%;
    height: 82%;
}

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

@keyframes eldritch-blink {
    0%, 93%, 100% { transform: scaleY(1); }
    96% { transform: scaleY(.08); }
}

/* ---------- Ink tendril dividers ---------- */

.eldritch-tendril {
    width: 100%;
    max-width: 40rem;
    margin: .25rem auto 1.25rem;
    color: rgba(114, 244, 213, .55);
    line-height: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.eldritch-tendril svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.eldritch-tendril-arm {
    transform-box: fill-box;
    transform-origin: right center;
    animation: eldritch-undulate 11s ease-in-out infinite alternate;
}

.eldritch-tendril-arm-mirror {
    animation-delay: -5.5s;
}

.eldritch-tendril-pupil {
    transform-box: fill-box;
    transform-origin: center;
    animation: eldritch-glance-small 8s ease-in-out infinite;
}

.eldritch-tendril-hero {
    margin-top: -.5rem;
}

.eldritch-tendril-tonight {
    max-width: 30rem;
    margin: .5rem 0 0;
    color: rgba(244, 189, 90, .55);
}

.eldritch-tendril-nav {
    margin: .5rem 0;
    color: rgba(167, 122, 255, .62);
}

@keyframes eldritch-undulate {
    from { transform: scaleY(.9) skewX(0deg); }
    to { transform: scaleY(1.2) skewX(-3deg); }
}

@keyframes eldritch-glance-small {
    0%, 30%, 100% { transform: translateX(0); }
    40%, 55% { transform: translateX(-2.5px); }
    65%, 80% { transform: translateX(2.5px); }
}

/* ---------- The watching eye in empty states ---------- */

.eldritch-void {
    width: 7.5rem;
    max-width: 100%;
    aspect-ratio: 3 / 2;
    margin: 0 auto .25rem;
    color: #72f4d5;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, #020106 0 32%, rgba(23, 8, 40, .9) 54%, rgba(23, 8, 40, 0) 72%);
    filter: drop-shadow(0 0 14px rgba(114, 244, 213, .22));
}

.eldritch-void svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* WatchingEye is sized for empty states (7.5rem). Inside a small badge or sigil it must fill the
   container instead, otherwise it spills over the neighbouring heading. */
.eldritch-void.eldritch-void-fit {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
}

.eldritch-void-gold {
    color: #f4bd5a;
    filter: drop-shadow(0 0 14px rgba(244, 189, 90, .25));
}

.eldritch-void-stars {
    animation: eldritch-flicker 3.5s ease-in-out infinite alternate;
}

.eldritch-eye-lid {
    transform-box: fill-box;
    transform-origin: center;
    animation: eldritch-blink 7s ease-in-out infinite;
}

.eldritch-eye-iris {
    animation: eldritch-glance 11s ease-in-out infinite;
}

.eldritch-legacy-empty {
    display: grid;
    gap: .5rem;
    justify-items: center;
    text-align: center;
}

@keyframes eldritch-flicker {
    from { opacity: .35; }
    to { opacity: 1; }
}

@keyframes eldritch-glance {
    0%, 20%, 100% { transform: translate(0, 0); }
    30%, 45% { transform: translate(-6px, 1px); }
    55%, 70% { transform: translate(6px, -1px); }
}

/* ---------- Carved stone / old parchment card frames ---------- */

.eldritch-carved {
    position: relative;
    isolation: isolate;
}

/* Inner chiselled frame with a faint grain, painted between the card background and its content. */
.eldritch-carved::before {
    position: absolute;
    z-index: -1;
    inset: 6px;
    border: 1px solid rgba(255, 240, 211, .09);
    border-radius: 12px;
    background-image:
        repeating-linear-gradient(115deg, rgba(255, 240, 211, .018) 0 1px, transparent 1px 5px),
        radial-gradient(circle at 50% 0%, rgba(255, 240, 211, .045), transparent 60%);
    box-shadow: inset 0 1px 0 rgba(255, 240, 211, .05), inset 0 -12px 24px rgba(0, 0, 0, .18);
    content: "";
    pointer-events: none;
}

/* Corner ornaments, as if cut into the stone. */
.eldritch-carved::after {
    position: absolute;
    z-index: -1;
    inset: 3px;
    opacity: .75;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23d9c08a'%3E%3Cpath d='M1 23V8Q1 1 8 1h15' stroke-width='1.2'/%3E%3Cpath d='M5 15v-5q0-5 5-5h5' stroke-width='.8' opacity='.7'/%3E%3C/g%3E%3Ccircle cx='5' cy='5' r='1.3' fill='%23d9c08a'/%3E%3C/svg%3E") left top / 20px 20px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(90 12 12)'%3E%3Cg fill='none' stroke='%23d9c08a'%3E%3Cpath d='M1 23V8Q1 1 8 1h15' stroke-width='1.2'/%3E%3Cpath d='M5 15v-5q0-5 5-5h5' stroke-width='.8' opacity='.7'/%3E%3C/g%3E%3Ccircle cx='5' cy='5' r='1.3' fill='%23d9c08a'/%3E%3C/g%3E%3C/svg%3E") right top / 20px 20px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(180 12 12)'%3E%3Cg fill='none' stroke='%23d9c08a'%3E%3Cpath d='M1 23V8Q1 1 8 1h15' stroke-width='1.2'/%3E%3Cpath d='M5 15v-5q0-5 5-5h5' stroke-width='.8' opacity='.7'/%3E%3C/g%3E%3Ccircle cx='5' cy='5' r='1.3' fill='%23d9c08a'/%3E%3C/g%3E%3C/svg%3E") right bottom / 20px 20px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(270 12 12)'%3E%3Cg fill='none' stroke='%23d9c08a'%3E%3Cpath d='M1 23V8Q1 1 8 1h15' stroke-width='1.2'/%3E%3Cpath d='M5 15v-5q0-5 5-5h5' stroke-width='.8' opacity='.7'/%3E%3C/g%3E%3Ccircle cx='5' cy='5' r='1.3' fill='%23d9c08a'/%3E%3C/g%3E%3C/svg%3E") left bottom / 20px 20px no-repeat;
    content: "";
    pointer-events: none;
}

.eldritch-grid .eldritch-card.eldritch-carved,
.tonight-scene .tonight-card.eldritch-carved {
    box-shadow:
        0 16px 32px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .06),
        inset 0 0 0 1px rgba(0, 0, 0, .35),
        inset 0 -18px 40px rgba(2, 1, 8, .28);
}

/* Legacy Bootstrap pages: an ink tendril trails beneath the page heading. */
.eldritch-legacy-page > h1::after {
    display: block;
    width: min(100%, 22rem);
    height: 1.25rem;
    margin-top: .35rem;
    opacity: .8;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 24'%3E%3Cg fill='none' stroke='%2372f4d5' stroke-linecap='round'%3E%3Cpath d='M4 12C40 12 56 3 84 6S124 20 156 15S206 3 236 9S280 19 300 12' stroke-width='1.8'/%3E%3Cpath d='M300 12c8-5 16-1 13 5c-2 4-8 3-7-1' stroke-width='1.3'/%3E%3Cpath d='M84 6c-6-5-14-1-11 4' stroke-width='1' opacity='.7'/%3E%3C/g%3E%3Ccircle cx='156' cy='15' r='1.5' fill='%2372f4d5'/%3E%3Ccircle cx='236' cy='9' r='1.2' fill='%2372f4d5'/%3E%3C/svg%3E") left center / contain no-repeat;
    content: "";
}

/* ---------- Dashboard hero: aligning constellation and a warped orb ---------- */

.eldritch-constellation {
    position: absolute;
    right: 4%;
    bottom: .75rem;
    width: clamp(9rem, 26vw, 15rem);
    height: auto;
    color: rgba(245, 237, 255, .62);
    pointer-events: none;
}

.eldritch-constellation-line {
    opacity: .55;
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: eldritch-align 3.2s ease-out .4s forwards;
}

.eldritch-constellation-star {
    transform-box: fill-box;
    transform-origin: center;
    animation: eldritch-flicker 3.4s ease-in-out infinite alternate;
}

.eldritch-constellation-star:nth-child(2n) {
    animation-delay: -1.3s;
}

.eldritch-constellation-star:nth-child(3n) {
    animation-delay: -2.2s;
}

.eldritch-orb::before {
    animation: eldritch-warp 26s linear infinite;
}

.eldritch-orb::after {
    animation: eldritch-warp-reverse 41s linear infinite;
}

.eldritch-hero-hint {
    color: rgba(245, 237, 255, .74) !important;
    font-style: italic;
}

@keyframes eldritch-align {
    to { stroke-dashoffset: 0; }
}

@keyframes eldritch-warp {
    from { transform: rotate(28deg) scaleX(1); }
    50% { transform: rotate(208deg) scaleX(1.08); }
    to { transform: rotate(388deg) scaleX(1); }
}

@keyframes eldritch-warp-reverse {
    from { transform: rotate(-21deg) scaleY(1); }
    50% { transform: rotate(-201deg) scaleY(1.1); }
    to { transform: rotate(-381deg) scaleY(1); }
}

/* ---------- Tonight: the omen line above the chart ---------- */

.tonight-scene .tonight-omen {
    color: #ffe3a8 !important;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: .98rem;
    font-style: italic;
    letter-spacing: .01em;
}

/* ---------- Charts glow like instruments in a dark observatory ---------- */

.tonight-scene .chart-container {
    box-shadow:
        inset 0 0 28px rgba(81, 37, 57, .2),
        0 0 0 1px rgba(244, 189, 90, .28),
        0 0 26px rgba(244, 189, 90, .22),
        0 0 70px rgba(114, 244, 213, .12);
}

.eldritch-standard-page .chart-container {
    border-color: rgba(114, 244, 213, .35);
    border-radius: 12px;
    box-shadow: 0 0 24px rgba(114, 244, 213, .14), 0 0 60px rgba(167, 122, 255, .12);
}

/* The shared Uric/BAC chart (Kvällen) matches the competition board look. */
.uric-acid-chart .chart-container {
    border: 1px solid rgba(244, 189, 90, .25);
    border-radius: 12px;
    background: radial-gradient(ellipse at 50% 0%, rgba(76, 56, 130, .5), rgba(8, 11, 25, .96));
}

.trends-v2-chart-surface {
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(114, 244, 213, .22),
        0 0 30px rgba(114, 244, 213, .12),
        0 0 80px rgba(167, 122, 255, .14);
}

/* ---------- Ticker: quotes and original whispers ---------- */

.eldritch-ticker {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.eldritch-ticker-track {
    /* Ten lines instead of three: keep the reading speed of the original band. */
    animation-duration: 210s;
}

.eldritch-ticker-quote-whisper {
    color: #e6fbf5;
}

.eldritch-ticker-quote-whisper::before {
    color: #f4bd5a;
    content: "⟁ ";
    text-shadow: 0 0 10px rgba(244, 189, 90, .6);
}

.eldritch-ticker-quote-whisper em {
    color: #a9efdd;
}

/* ---------- Phones ---------- */

@media (max-width: 700px) {
    .eldritch-constellation {
        top: .75rem;
        right: .75rem;
        bottom: auto;
        width: 7rem;
        opacity: .6;
    }
}

/* ---------- Respect reduced motion: everything holds still ---------- */

/* ---------- Snackbars: dark carved panels with a severity accent ---------- */

/* Doubled class beats MudBlazor's filled alert colours without !important on the panel. */
.mud-snackbar.mud-snackbar {
    --eldritch-snack-accent: #f4bd5a;
    color: #fff0d3;
    border: 1px solid rgba(244, 189, 90, .3);
    border-left: 4px solid var(--eldritch-snack-accent);
    background:
        repeating-linear-gradient(115deg, rgba(255, 240, 211, .02) 0 1px, transparent 1px 5px),
        linear-gradient(145deg, #261433, #140b1f);
    box-shadow: 0 12px 28px rgba(2, 0, 8, .55), inset 0 1px 0 rgba(255, 240, 211, .06);
}

.mud-snackbar.mud-snackbar[class*="-success"] { --eldritch-snack-accent: #9ee56b; }
.mud-snackbar.mud-snackbar[class*="-info"] { --eldritch-snack-accent: #6caeff; }
.mud-snackbar.mud-snackbar[class*="-warning"] { --eldritch-snack-accent: #ffc768; }
.mud-snackbar.mud-snackbar[class*="-error"] { --eldritch-snack-accent: #ff7193; }

.mud-snackbar.mud-snackbar .mud-snackbar-icon {
    color: var(--eldritch-snack-accent);
}

.mud-snackbar.mud-snackbar .mud-snackbar-content-message {
    color: #fff0d3;
}

.mud-snackbar.mud-snackbar .mud-snackbar-content-action > button {
    min-height: 44px;
    color: #f4bd5a !important;
    font-weight: 700;
    letter-spacing: .06em;
    /* The app's primary-button gradient is too light behind gold text; keep the action dark. */
    background: rgba(244, 189, 90, .08) !important;
    border: 1px solid rgba(244, 189, 90, .55);
    box-shadow: none !important;
}

.mud-snackbar.mud-snackbar .mud-snackbar-content-action > .mud-icon-button {
    min-width: 44px;
    min-height: 44px;
    color: rgba(255, 240, 211, .8) !important;
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .eldritch-layout::before,
    .elder-sigil-ring,
    .elder-sigil-orbits,
    .elder-sigil-core,
    .eldritch-tendril-arm,
    .eldritch-tendril-pupil,
    .eldritch-void-stars,
    .eldritch-eye-lid,
    .eldritch-eye-iris,
    .eldritch-constellation-star,
    .eldritch-orb::before,
    .eldritch-orb::after {
        animation: none;
    }

    .eldritch-constellation-line {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* ---------- Loading scene: a complete scene before the application has data ---------- */

.eldritch-loading-scene {
    display: grid;
    place-items: center;
    min-height: clamp(16rem, 42vw, 25rem);
    padding: 1rem 0 2rem;
}

.eldritch-loading-panel {
    width: min(100%, 46rem);
    overflow: hidden;
    border: 1px solid rgba(152, 225, 205, .38);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 75% 0%, rgba(147, 77, 209, .19), transparent 39%),
        linear-gradient(145deg, rgba(9, 23, 35, .96), rgba(22, 9, 38, .98));
    box-shadow: 0 1.1rem 3rem rgba(0, 0, 0, .45), inset 0 1px rgba(255, 244, 217, .08);
}

.eldritch-loading-stage {
    display: block;
    width: 100%;
    aspect-ratio: 36 / 17;
    border-bottom: 1px solid rgba(157, 231, 213, .25);
}

.eldritch-loading-copy {
    display: grid;
    grid-template-columns: minmax(9rem, auto) 1fr;
    align-items: center;
    gap: .75rem 1rem;
    min-height: 4.2rem;
    padding: .75rem 1rem;
    color: #f9eed8;
}

.eldritch-loading-status {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
}

.eldritch-loading-whispers {
    position: relative;
    min-width: 12rem;
    height: 1.45rem;
    color: #91f1d7;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .035em;
}

.eldritch-loading-whisper {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: eldritch-loading-whisper 9s ease-in-out infinite;
}

.eldritch-loading-whisper-goat { animation-delay: 3s; }
.eldritch-loading-whisper-shoggoth { animation-delay: 6s; }

.eldritch-loading-stars { animation: eldritch-loading-stars 3.2s ease-in-out infinite alternate; }
.eldritch-loading-cthulhu { transform-origin: 451px 119px; animation: eldritch-loading-hover 2.7s ease-in-out infinite; }
.eldritch-loading-wing { transform-box: fill-box; }
.eldritch-loading-wing-left { transform-origin: 100% 70%; animation: eldritch-loading-wing-left 1.25s ease-in-out infinite alternate; }
.eldritch-loading-wing-right { transform-origin: 0 70%; animation: eldritch-loading-wing-right 1.25s ease-in-out infinite alternate; }
.eldritch-loading-cthulhu-eye { animation: eldritch-loading-eye 2.7s ease-in-out infinite; }
.eldritch-loading-goat { transform-origin: 138px 246px; animation: eldritch-loading-goat 4.5s ease-in-out infinite; }
.eldritch-loading-goat-call { animation: eldritch-loading-call 4.5s ease-out infinite; }
.eldritch-loading-shoggoth { transform-origin: 588px 340px; animation: eldritch-loading-shoggoth 4.8s cubic-bezier(.25, .7, .35, 1) infinite; }
.eldritch-loading-shoggoth-eyes { animation: eldritch-loading-eye 2.1s ease-in-out infinite alternate; }
.eldritch-loading-fog { animation: eldritch-loading-fog 8s ease-in-out infinite alternate; }

@keyframes eldritch-loading-whisper {
    0%, 25% { opacity: 0; transform: translateY(.22rem); }
    6%, 20% { opacity: 1; transform: translateY(0); }
    31%, 100% { opacity: 0; transform: translateY(-.22rem); }
}

@keyframes eldritch-loading-stars {
    from { opacity: .42; transform: translateY(0); }
    to { opacity: 1; transform: translateY(-2px); }
}

@keyframes eldritch-loading-hover {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes eldritch-loading-wing-left { from { transform: rotate(-11deg); } to { transform: rotate(14deg); } }
@keyframes eldritch-loading-wing-right { from { transform: rotate(11deg); } to { transform: rotate(-14deg); } }

@keyframes eldritch-loading-eye {
    0%, 42%, 50%, 100% { opacity: 1; }
    46% { opacity: .15; }
}

@keyframes eldritch-loading-goat {
    0%, 66%, 100% { transform: translateY(0) rotate(0); }
    73% { transform: translateY(-3px) rotate(-3deg); }
    80% { transform: translateY(0) rotate(3deg); }
}

@keyframes eldritch-loading-call {
    0%, 67% { opacity: 0; transform: translateX(-3px) scaleX(.6); }
    74% { opacity: .9; }
    88% { opacity: 0; transform: translateX(16px) scaleX(1.5); }
    100% { opacity: 0; }
}

@keyframes eldritch-loading-shoggoth {
    0%, 14%, 100% { opacity: .3; transform: translateY(31px) scale(.9); }
    38%, 72% { opacity: 1; transform: translateY(0) scale(1); }
    86% { opacity: .78; transform: translateY(10px) scale(.96); }
}

@keyframes eldritch-loading-fog {
    from { transform: translateX(-16px); opacity: .08; }
    to { transform: translateX(16px); opacity: .22; }
}

@media (max-width: 520px) {
    .eldritch-loading-scene { min-height: 14rem; padding-bottom: 1rem; }
    .eldritch-loading-copy { grid-template-columns: 1fr; gap: .2rem; min-height: 5.4rem; }
    .eldritch-loading-whispers { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .eldritch-loading-stage *,
    .eldritch-loading-whisper {
        animation: none !important;
    }

    .eldritch-loading-shoggoth {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .eldritch-loading-whisper-wings {
        opacity: 1;
    }
}
