/* Include dynamically rendered rewards and inline gradient text, without
   changing decorative gradients on cards, buttons, avatars or progress bars. */
:root[data-no-text-gradients] :is(
    .bg-clip-text,
    .text-astra-gradient,
    .text-stellar-gradient,
    .text-growth-gradient,
    .asceltial-rate-value,
    .player-role__name,
    .loot-power-text-fill,
    .cosmic-mail-rarity--mythical .cosmic-mail-rarity__label,
    .cosmic-mail-rarity--godix .cosmic-mail-rarity__label,
    .cosmic-mail-rarity__label.cosmic-mail-rarity--mythical,
    .cosmic-mail-rarity__label.cosmic-mail-rarity--godix,
    [style*="background-clip: text"],
    [style*="background-clip:text"]
) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-image: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
}

.text-gradient-toggle {
    appearance: none;
    position: relative;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 1.5rem;
    border: 1px solid rgba(0, 245, 255, 0.4);
    border-radius: 999px;
    background: rgba(10, 10, 15, 0.8);
    cursor: pointer;
}

.text-gradient-toggle::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #d1d5db;
}

.text-gradient-toggle:checked {
    background: rgba(0, 245, 255, 0.2);
}

.text-gradient-toggle:checked::before {
    transform: translateX(1.25rem);
    background: #00f5ff;
}

.text-gradient-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}
