/* Shared action treatments. Page styles still control placement and spacing. */
:is(.btn:not(.btn-link), .btn-b, .button:not(.sharer), .public-button, .auth-card .btn,
    .public-header .header-account, .ptc-viewer .ok-button, .d-button a,
    .history-pagination .page-link, .motion-toggle, .swal2-styled.swal2-confirm) {
    --button-fill: linear-gradient(112deg, transparent 30%, #ffffff29 48%, transparent 66%) 100% 0 / 260% 100% no-repeat,
        linear-gradient(180deg, var(--button-face, #593b79), var(--button-edge, #362149));
    border: 1px solid var(--button-border, #a486c8);
    border-radius: 5px;
    background: var(--button-fill);
    color: var(--button-ink, #fff8ff);
    box-shadow: inset 0 1px #ffffff24, 0 2px 4px #130b2166;
    font-size: var(--text-detail, 14px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .01em;
    text-decoration: none;
    transition: var(--button-transition, background-position 260ms ease, border-color 160ms ease, box-shadow 160ms ease, translate 160ms ease);
}

:is(.btn-gold, .btn-c, .button:not(.sharer), .auth-card .btn, .public-button, .public-header .header-account,
    .ptc-viewer .ok-button:not(.ok-button-secondary), .swal2-styled.swal2-confirm) {
    --button-face: #ffe3ab;
    --button-edge: #edb66f;
    --button-border: #ffe3ab;
    --button-ink: #281929;
}

:is(.btn-outline-primary, .btn-outline-light, .slots-nav .btn, .btn-balance .btn, .copy-btn.btn,
    .ptc-viewer .ok-button-secondary, .d-button a, .history-pagination .page-link, .motion-toggle) {
    --button-face: #322544;
    --button-edge: #251b35;
    --button-border: #826c99;
    --button-ink: #f9eeff;
}

.d-button a.active {
    --button-face: #f2d9fa;
    --button-edge: #cfb0e6;
    --button-border: #f2d9fa;
    --button-ink: #301e43;
    background: var(--button-fill);
    color: var(--button-ink);
}

.history-pagination .active .page-link {
    --button-face: #ffe3ab;
    --button-edge: #edb66f;
    --button-border: #ffe3ab;
    --button-ink: #281929;
    background: var(--button-fill);
    color: var(--button-ink);
}

.btn-info {
    --button-face: #276477;
    --button-edge: #184253;
    --button-border: #8fcad7;
}

.btn-success {
    --button-face: #306c55;
    --button-edge: #1b4536;
    --button-border: #93cabb;
}

.btn-warning {
    --button-face: #ffdb92;
    --button-edge: #eeb262;
    --button-border: #ffdb92;
    --button-ink: #281929;
}

.btn-danger {
    --button-face: #8e3654;
    --button-edge: #63213c;
    --button-border: #dfa1b2;
}

@media (hover: hover) {
    :is(.btn:not(.btn-link), .btn-b, .button:not(.sharer), .public-button, .auth-card .btn,
        .public-header .header-account, .ptc-viewer .ok-button, .d-button a,
        .history-pagination .page-link, .motion-toggle, .swal2-styled.swal2-confirm):hover:not(:where(:disabled, .disabled, [aria-disabled="true"], [aria-current="page"], .history-pagination .disabled *)) {
        background: var(--button-fill);
        background-position: 0 0, 0 0;
        border-color: #ffe3ab;
        color: var(--button-ink, #fff8ff);
        box-shadow: inset 0 1px #ffffff36, 0 6px 13px #130b2199;
        text-decoration: none;
        translate: 0 var(--button-lift, -2px);
    }
}

:is(.btn:not(.btn-link), .btn-b, .button:not(.sharer), .public-button, .auth-card .btn,
    .public-header .header-account, .ptc-viewer .ok-button, .d-button a,
    .history-pagination .page-link, .motion-toggle, .swal2-styled.swal2-confirm):active:not(:where(:disabled, .disabled, [aria-disabled="true"], [aria-current="page"], .history-pagination .disabled *)) {
    background: var(--button-fill);
    color: var(--button-ink, #fff8ff);
    box-shadow: inset 0 2px 5px #180c2a59;
    translate: 0 calc(-1 * var(--button-lift, -2px));
}

:is(.btn:not(.btn-link), .btn-b, .button:not(.sharer), .public-button, .auth-card .btn,
    .public-header .header-account, .ptc-viewer .ok-button, .d-button a,
    .history-pagination .page-link, .motion-toggle, .swal2-styled.swal2-confirm):is(:disabled, .disabled, [aria-disabled="true"]),
.history-pagination .disabled .page-link {
    background: var(--button-fill);
    border-color: var(--button-border, #a486c8);
    color: var(--button-ink, #fff8ff);
    opacity: .55;
    box-shadow: none;
    cursor: not-allowed;
}

:is(button, input[type="submit"], .btn, .btn-b, .button, .public-button, .header-account, .d-button a, .page-link):focus-visible {
    outline: 2px solid #ffdb96;
    outline-offset: 3px;
}

:is(.navbar-toggler, .password-toggle, .btn-close, .close) {
    border-radius: 5px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

:is(.navbar-toggler, .password-toggle, .btn-close, .close):hover {
    box-shadow: inset 0 0 0 1px currentColor;
}

.navbar :is(.games-toggle, .nav-button):hover {
    border-radius: 5px;
    background-color: #ffffff12;
}

.ptc-claim-form > .ok-button { font-size: var(--text-caption, 12px); }

.motion-paused {
    --button-lift: 0px;
    --button-transition: none;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --button-lift: 0px;
        --button-transition: none;
    }
}

button.utility-button {
    --button-lift: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 136px;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 6px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
}


@font-face {
    font-family: "OilKeen Button Icons";
    src: url("../assets/fonts/fontawesome-webfont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.button-action-icon {
    display: inline-block;
    flex: none;
    margin-inline-end: .35em;
    vertical-align: -.02em;
    font-family: "OilKeen Button Icons";
    font-size: .9em;
    font-weight: normal;
    line-height: 1;
}

.button-action-icon::before { content: attr(data-glyph); }

:is(.utility-button, .public-button, .copy-input > .copy-btn) > .button-action-icon { margin-inline-end: 0; }
