/* Shared question-loading artwork; error/recovery screens keep their controls. */
.ao3-mix-transition.hm-question-loading {
    isolation: isolate;
    gap: clamp(.7rem, 1.8vh, 1.25rem);
    padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
    background:
        radial-gradient(ellipse at 50% 42%, #fffef7 0%, #fffef780 35%, transparent 65%),
        radial-gradient(ellipse at 8% 5%, #e5e4fa 0%, transparent 52%),
        radial-gradient(ellipse at 95% 85%, #ffd992 0%, transparent 57%),
        linear-gradient(135deg, #fff7df, #fff2d6 55%, #fce8dd);
}
.hm-question-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='208' viewBox='0 0 120 208'%3E%3Cpath d='M30 0h60l30 52-30 52H30L0 52Zm0 104h60l30 52-30 52H30L0 156Z' fill='none' stroke='%23bb8425' stroke-opacity='.13' stroke-width='1.5'/%3E%3C/svg%3E");
    mask-image: radial-gradient(ellipse at center, transparent 25%, #000 100%);
}
.hm-question-loading .hm-question-loading-image {
    flex: 0 0 auto;
    width: min(460px, 80vw, 48dvh);
    height: auto;
    max-height: none;
    border-radius: 0;
    filter: drop-shadow(0 16px 22px #a76b1420);
}
.hm-question-loading .hm-question-loading-indicator {
    display: block;
    flex: 0 0 auto;
    width: min(360px, 72vw);
    height: clamp(64px, 21vw, 105px);
    /* Frame the animated lettering, trimming the GIF's empty top/bottom space. */
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(transparent, #000 12%, #000 88%, transparent);
    mask-composite: intersect;
}
.hm-question-loading .hm-question-loading-caption {
    max-width: 28ch;
    margin: 0;
    color: #62411d;
    font-family: 'Chalkboard SE', 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: clamp(1.8rem, 4.5vw, 3.3rem);
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 0 #ffffffc9;
}
@media (max-height: 500px) and (orientation: landscape) {
    .ao3-mix-transition.hm-question-loading { gap: .4rem; padding: 1rem; }
    .hm-question-loading .hm-question-loading-image { width: min(280px, 36dvh); }
    .hm-question-loading .hm-question-loading-indicator { width: 280px; height: 82px; }
    .hm-question-loading .hm-question-loading-caption { font-size: clamp(1.4rem, 4vh, 1.8rem); }
}
