/*==================================================
    Fish Fish - Low Detail Mode
    For browsers painting without the GPU. When the
    CPU draws every pixel, background blur, big glows
    and looping decorative animation are what cost the
    most, so this turns those off. Animations that
    carry gameplay meaning (the bite marker, the reel
    button, boss timers) are left alone.
==================================================*/

html.ff-low-detail {
    --glass: rgba(8, 22, 34, 0.9);
}

/* Background blur re-blurs everything behind a panel whenever anything
   under it moves. */
html.ff-low-detail *,
html.ff-low-detail *::before,
html.ff-low-detail *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

html.ff-low-detail .modal-backdrop {
    background: rgba(3, 9, 15, 0.86) !important;
}

/* Glows on every icon in a grid. */
html.ff-low-detail .fish-icon-image,
html.ff-low-detail .equipment-icon-image,
html.ff-low-detail .pond-equipped-pet.shiny-pond-pet,
html.ff-low-detail .aquarium-fish .fish-icon,
html.ff-low-detail .cast-bobber {
    filter: none !important;
}

/* Fishers are re-tinted for the time of day with a filter; skipping it keeps
   their pose animation cheap. */
html.ff-low-detail .pond-player .fisher-host {
    filter: none;
}

/* Looping decoration: the pond. */
html:is(.ff-low-detail, .ff-motion-off) .fish-shadow,
html:is(.ff-low-detail, .ff-motion-off) .pet-icon.pond-equipped-pet,
html:is(.ff-low-detail, .ff-motion-off) .fisher-figure,
html:is(.ff-low-detail, .ff-motion-off) .fisher-head,
html:is(.ff-low-detail, .ff-motion-off) .fisher-catch-glow,
html:is(.ff-low-detail, .ff-motion-off) .fisher-propeller,
html:is(.ff-low-detail, .ff-motion-off) .fisher-halo,
html:is(.ff-low-detail, .ff-motion-off) .fisher-wings,
html:is(.ff-low-detail, .ff-motion-off) .ff-logo,
html:is(.ff-low-detail, .ff-motion-off) .line-cast:not(.bite-active) .cast-bobber,
html:is(.ff-low-detail, .ff-motion-off) .pond-scene.boss-enraged::after,
html:is(.ff-low-detail, .ff-motion-off) .hb-boss-sprite .hb-boss-foam,
html:is(.ff-low-detail, .ff-motion-off) .ff-rail.can-scroll-down .ff-rail-more.down::before,
/* Shimmering text and cards. */
html:is(.ff-low-detail, .ff-motion-off) .rarity-eternal,
html:is(.ff-low-detail, .ff-motion-off) .shiny-text,
html:is(.ff-low-detail, .ff-motion-off) .foil-text,
html:is(.ff-low-detail, .ff-motion-off) .perfect-fish-text,
html:is(.ff-low-detail, .ff-motion-off) .perfect-gold-text,
html:is(.ff-low-detail, .ff-motion-off) .catalog-card.shiny-cataloged,
html:is(.ff-low-detail, .ff-motion-off) .catalog-card.shiny-cataloged::before,
html:is(.ff-low-detail, .ff-motion-off) .pet-card.shiny-pet::before,
html:is(.ff-low-detail, .ff-motion-off) .catalog-perfect-sheen::before,
html:is(.ff-low-detail, .ff-motion-off) .evolve-fish-button.evolution-ready,
html:is(.ff-low-detail, .ff-motion-off) .evolved-label,
html:is(.ff-low-detail, .ff-motion-off) .catalog-count-summary.evolved-count-summary,
html:is(.ff-low-detail, .ff-motion-off) .reward-reel-card.shiny-pet,
html:is(.ff-low-detail, .ff-motion-off) .pet-card.shiny-pet,
html:is(.ff-low-detail, .ff-motion-off) .overclocked-tag,
html:is(.ff-low-detail, .ff-motion-off) .ff-points-dot,
html:is(.ff-low-detail, .ff-motion-off) .recover-streak-button,
/* The aquarium, pets and lodge. */
html:is(.ff-low-detail, .ff-motion-off) .aquarium-fish.shiny-aquarium-fish::after,
html:is(.ff-low-detail, .ff-motion-off) .aquarium-fish.perfect-aquarium-fish::before,
html:is(.ff-low-detail, .ff-motion-off) .hb-pet-habitat .pet-icon,
html:is(.ff-low-detail, .ff-motion-off) .hb-tank-rays i,
html:is(.ff-low-detail, .ff-motion-off) .hb-tank-caustics,
html:is(.ff-low-detail, .ff-motion-off) .hb-tank-bubbles i,
html:is(.ff-low-detail, .ff-motion-off) .hb-sway,
html:is(.ff-low-detail, .ff-motion-off) .hb-wreck-light,
html:is(.ff-low-detail, .ff-motion-off) .hb-ruin-runes path,
html:is(.ff-low-detail, .ff-motion-off) .hb-tank-motes i,
html:is(.ff-low-detail, .ff-motion-off) .hb-tank-school,
html:is(.ff-low-detail, .ff-motion-off) .hb-tank-school i,
html:is(.ff-low-detail, .ff-motion-off) .hb-tank-waterline,
html:is(.ff-low-detail, .ff-motion-off) .hb-lodge-water span,
html:is(.ff-low-detail, .ff-motion-off) .lodge-smoke circle,
html:is(.ff-low-detail, .ff-motion-off) .lodge-mill {
    animation: none !important;
}

/* With their animation stopped, these would freeze mid-flight. */
html:is(.ff-low-detail, .ff-motion-off) .fish-shadow,
html:is(.ff-low-detail, .ff-motion-off) .hb-tank-bubbles,
html:is(.ff-low-detail, .ff-motion-off) .hb-tank-motes,
html:is(.ff-low-detail, .ff-motion-off) .hb-tank-rays,
html:is(.ff-low-detail, .ff-motion-off) .hb-tank-caustics {
    display: none !important;
}

html.ff-low-detail .ff-pond-hud-left .streak-display.active,
html.ff-low-detail .ff-shell .catch-needle {
    box-shadow: none;
}

html:is(.ff-low-detail, .ff-motion-off) .rarity-ultimate,
html:is(.ff-low-detail, .ff-motion-off) .fish-icon.rarity-ultimate::before {
    animation: none !important;
}

html:is(.ff-low-detail, .ff-motion-off) .rarity-galactic,
html:is(.ff-low-detail, .ff-motion-off) .fish-icon.rarity-galactic::before,
html:is(.ff-low-detail, .ff-motion-off) .rarity-intergalactic,
html:is(.ff-low-detail, .ff-motion-off) .fish-icon.rarity-intergalactic::before,
html:is(.ff-low-detail, .ff-motion-off) .rarity-universal,
html:is(.ff-low-detail, .ff-motion-off) .fish-icon.rarity-universal::before,
html:is(.ff-low-detail, .ff-motion-off) .rarity-multiversal,
html:is(.ff-low-detail, .ff-motion-off) .fish-icon.rarity-multiversal::before,
html:is(.ff-low-detail, .ff-motion-off) .fish-icon.rarity-multiversal::after {
    animation: none !important;
}

html:is(.ff-low-detail, .ff-motion-off) .hb-storage .fish-card.hb-fish-card.rarity-multiversal,
html:is(.ff-low-detail, .ff-motion-off) .hb-storage .fish-card.hb-fish-card.rarity-multiversal::after,
html:is(.ff-low-detail, .ff-motion-off) .hb-storage .fish-card.hb-fish-card.rarity-multiversal .hb-fish-copy > strong {
    animation: none !important;
}

html:is(.ff-low-detail, .ff-motion-off) .avatar-activate,
html:is(.ff-low-detail, .ff-motion-off) .avatar-title,
html:is(.ff-low-detail, .ff-motion-off) .minigame.avatar-mode.avatar-hit .minigame-track {
    animation: none !important;
}

html:is(.ff-low-detail, .ff-motion-off) .activity-entry.activity-card,
html:is(.ff-low-detail, .ff-motion-off) .activity-entry.activity-card .activity-mut-title {
    animation: none;
    box-shadow: none;
}

html:is(.ff-low-detail, .ff-motion-off) .ultimate-flash,
html:is(.ff-low-detail, .ff-motion-off) .activity-drink-title,
html:is(.ff-low-detail, .ff-motion-off) .activity-glove-title {
    animation: none;
}

html:is(.ff-low-detail, .ff-motion-reduced, .ff-motion-off) .activity-entry.card-glove::after {
    display: none;
}


/*==================================================
    Motion & Particles (the Motion setting)
    Reduced: the busiest decoration stops; Off also
    stops everything Low Detail Mode stops (above).
==================================================*/

html.ff-motion-reduced .ff-theme-decor,
html.ff-motion-reduced .ff-theme-decor *,
html.ff-motion-reduced .hb-tank-motes i,
html.ff-motion-reduced .hb-tank-school,
html.ff-motion-reduced .hb-tank-school i,
html.ff-motion-reduced .activity-entry.activity-card,
html.ff-motion-reduced .activity-entry.activity-card .activity-mut-title {
    animation: none !important;
}

html.ff-motion-reduced .hb-tank-motes,
html.ff-motion-reduced .hb-tank-school {
    display: none !important;
}

html.ff-motion-off .ultimate-flash,
html.ff-motion-off .activity-drink-title,
html.ff-motion-off .dk3-bubble {
    animation: none !important;
}


/* Catalog cards hold still. */
html:is(.ff-low-detail, .ff-motion-reduced) #catalogModal .catalog-card {
    transition: none;
}

html:is(.ff-low-detail, .ff-motion-reduced) .catalog-perfect-sheen::before {
    animation: none;
    opacity: 0;
}

/* The Glove Case card keeps its ring and glow, standing still. */
html:is(.ff-low-detail, .ff-motion-reduced, .ff-motion-off) .hb-storage .hb-glovecase,
html:is(.ff-low-detail, .ff-motion-reduced, .ff-motion-off) .hb-storage .hb-glovecase::before,
html:is(.ff-low-detail, .ff-motion-reduced, .ff-motion-off) .hb-storage .hb-glovecase .hb-container-art svg,
html:is(.ff-low-detail, .ff-motion-reduced, .ff-motion-off) .hb-storage .hb-glovecase .hb-fish-copy strong {
    animation: none;
}

html:is(.ff-low-detail, .ff-motion-reduced, .ff-motion-off) .hb-storage .hb-glovecase .hb-container-art::before,
html:is(.ff-low-detail, .ff-motion-reduced, .ff-motion-off) .hb-storage .hb-glovecase .hb-container-art::after {
    animation: none;
    opacity: 0.8;
}

/* Slot Machine pond log cards stand still. */
html:is(.ff-low-detail, .ff-motion-off) .activity-entry.card-slots,
html:is(.ff-low-detail, .ff-motion-off) .sl-log-title,
html:is(.ff-low-detail, .ff-motion-off) .sl-log-jackpot-title {
    animation: none;
}

html:is(.ff-low-detail, .ff-motion-reduced, .ff-motion-off) .activity-entry.card-slots::after {
    display: none;
}
