/* Task 15: opt-in action buttons. Loaded after the active GameCMS theme. */
:is(a, button, input).fox-action-button {
    --fox-action-edge: rgba(var(--fox-rgb-as4l15, 195, 116, 255), .76);
    --fox-action-edge-hover: var(--fox-tone-as4l17, #dfacff);
    --fox-action-ink: var(--fox-tone-as4l19, #f7e9ff);
    --fox-action-glow: rgba(var(--fox-rgb-gs3l12, 163, 78, 235), clamp(0, calc(.15 * var(--fox-glow-strength, 1)), 1));
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 44px !important;
    height: auto !important;
    padding: 10px 17px !important;
    border: 1px solid var(--fox-action-edge) !important;
    border-radius: 12px !important;
    outline: none !important;
    background: rgba(var(--fox-rgb-as2l9, 118, 52, 183), .075) !important;
    box-shadow: inset 0 0 0 1px rgba(var(--fox-rgb-gs4l16, 208, 152, 255), clamp(0, calc(.07 * var(--fox-glow-strength, 1)), 1)), 0 0 12px var(--fox-action-glow) !important;
    color: var(--fox-action-ink) !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    text-transform: none !important;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    filter: none !important;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

:is(a, button).fox-action-button { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; }
input.fox-action-button { display: inline-block !important; }
:is(a, button, input).fox-action-button--large { min-height: 52px !important; padding: 11px 18px !important; font-size: 15px !important; }

:is(a, button, input).fox-action-button--danger {
    --fox-action-edge: rgba(255, 130, 166, .76);
    --fox-action-edge-hover: #ffadc6;
    --fox-action-ink: #ffe4eb;
    --fox-action-glow: rgba(224, 86, 126, .13);
}

:is(a, button, input).fox-action-button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.is-loading) {
    border-color: var(--fox-action-edge-hover) !important;
    background: rgba(var(--fox-rgb-as3l11, 143, 64, 211), .15) !important;
    box-shadow: inset 0 0 0 1px rgba(var(--fox-rgb-gs4l17, 225, 181, 255), clamp(0, calc(.14 * var(--fox-glow-strength, 1)), 1)), 0 0 18px var(--fox-action-glow) !important;
    color: #fff !important;
    filter: none !important;
}
:is(a, button, input).fox-action-button--danger:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.is-loading) {
    background: rgba(204, 72, 114, .14) !important;
}
:is(a, button, input).fox-action-button:focus-visible {
    outline: 2px solid var(--fox-tone-as4l18, #eed0ff) !important;
    outline-offset: 3px !important;
    border-color: var(--fox-action-edge-hover) !important;
    box-shadow: 0 0 0 4px rgba(var(--fox-rgb-gs3l13, 171, 93, 236), clamp(0, calc(.24 * var(--fox-glow-strength, 1)), 1)), 0 0 16px var(--fox-action-glow) !important;
}
:is(a, button, input).fox-action-button:active:not(:disabled):not(.disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.is-loading) {
    border-color: var(--fox-action-edge-hover) !important;
    background: rgba(var(--fox-rgb-as3l11, 160, 71, 221), .2) !important;
    box-shadow: inset 0 0 10px var(--fox-action-glow) !important;
}
:is(a, button, input).fox-action-button:disabled,
:is(a, button, input).fox-action-button.disabled,
:is(a, button, input).fox-action-button[aria-disabled="true"],
:is(a, button, input).fox-action-button[aria-busy="true"],
:is(a, button, input).fox-action-button.is-loading {
    border-color: rgba(var(--fox-rgb-as2l14, 184, 150, 211), .34) !important;
    background: rgba(var(--fox-rgb-as1l10, 130, 105, 151), .065) !important;
    box-shadow: none !important;
    color: var(--fox-tone-as1l13, #a99bb8) !important;
    cursor: not-allowed;
    transform: none !important;
    filter: none !important;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    :is(a, button, input).fox-action-button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.is-loading) { transform: scale(1.018); }
    :is(a, button, input).fox-action-button:active:not(:disabled):not(.disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.is-loading) { transform: scale(.988); }
}
@media (prefers-reduced-motion: reduce) {
    :is(a, button, input).fox-action-button { transition: none; }
}
@media (max-width: 680px) {
    :is(a, button, input).fox-action-button { padding-inline: 12px !important; }
    :is(a, button, input).fox-action-button--large { padding-inline: 14px !important; }
}
