/* FoxLand Stage4 5.2: a fitted title frame and the selected server name. */
#fox-punishment-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    gap: 0;
    margin: 12px 0 21px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

#fox-punishment-header > .fox-punishments__title-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: fit-content;
    max-width: calc(100% - 16px);
    min-width: 0;
    padding: 8px 22px;
    border: 1px solid rgba(var(--fox-rgb-as4l14, 191, 114, 255), .68);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(var(--fox-rgb-ts2l3, 31, 19, 48), .96), rgba(var(--fox-rgb-ts2l2, 16, 11, 28), .96));
    box-shadow: 0 0 0 1px rgba(var(--fox-rgb-gs4l14, 191, 114, 255), clamp(0, calc(.1 * var(--fox-glow-strength, 1)), 1)), 0 0 21px rgba(var(--fox-rgb-gs3l12, 145, 61, 239), clamp(0, calc(.24 * var(--fox-glow-strength, 1)), 1)), inset 0 1px 0 rgba(255, 255, 255, .065);
}

#punishments-title,
#fox-punishment-server {
    margin: 0;
    background: linear-gradient(105deg, var(--fox-tone-ts4l14, #b873f6) 15%, var(--fox-tone-ts4l18, #ead0ff) 48%, var(--fox-tone-ts3l13, #a858f0) 82%);
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: var(--fox-tone-as4l16, #d2a0ff);
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
    animation: fox-punishment-heading-shimmer 8s ease-in-out infinite alternate;
}

#punishments-title {
    font-size: clamp(22px, 4.4vw, 30px);
    white-space: normal;
}

#fox-punishment-server {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 13px;
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.35;
    filter: drop-shadow(0 0 5px rgba(var(--fox-rgb-gs3l13, 168, 88, 240), clamp(0, calc(.2 * var(--fox-glow-strength, 1)), 1)));
}

@keyframes fox-punishment-heading-shimmer {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

@media (max-width: 760px) {
    #fox-punishment-header { margin: 9px 0 19px; }
    #fox-punishment-header > .fox-punishments__title-frame { padding: 8px 18px; }
    #fox-punishment-server { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    #punishments-title,
    #fox-punishment-server {
        background-position: 50% 50%;
        animation: none;
    }
}
