/*==================================================
    Fish Fish - Zones and Seasons
    The pond zone card, the Zones screen, the Season
    Pass, the Hot Zone strip in the weather screen and
    the mutation-style Perfect, Shiny, Foil and Elder
    tags. Loaded after tides.css, harbor.css and
    dock.css.
==================================================*/

:root {
    --icon-season: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4h16v5a2 2 0 0 0 0 4v7H4v-7a2 2 0 0 0 0-4z'/><path d='M9 4v16' stroke-dasharray='2 2.5'/><path d='M14.5 9l1 2 2.2.3-1.6 1.5.4 2.2-2-1.1-2 1.1.4-2.2-1.6-1.5 2.2-.3z'/></svg>");
    --icon-map: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z'/><path d='M9 3v15M15 6v15'/></svg>");
    --icon-flame: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 22c4.4 0 7.5-3.1 7.5-7.3 0-5-4.6-7.4-5.3-12.7-3.2 2.1-5 5.2-5 8.4-1-.8-2-2.2-2.2-4C5.2 8.6 4.5 11.4 4.5 14.7 4.5 18.9 7.6 22 12 22z'/></svg>");
    --icon-sparkle: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 2l2.2 6.6L21 11l-6.8 2.4L12 20l-2.2-6.6L3 11l6.8-2.4z'/><path d='M19 2l.8 2.2L22 5l-2.2.8L19 8l-.8-2.2L16 5l2.2-.8z'/></svg>");
    --icon-elder: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21V9'/><path d='M12 13c-3 0-6-2-6-6 3 0 6 2 6 6zM12 11c3 0 6-2 6-6-3 0-6 2-6 6z'/><path d='M7 21h10'/></svg>");
}

[data-icon="season"] { --icon: var(--icon-season); }
[data-icon="map"] { --icon: var(--icon-map); }
[data-icon="flame"] { --icon: var(--icon-flame); }


/*==================================================
    Mutation tags: Perfect, Shiny, Foil and Elder
==================================================*/

.ff-mutation-tag.ff-special-tag::before {
    -webkit-mask-image: var(--icon-sparkle);
    mask-image: var(--icon-sparkle);
}

.ff-mutation-tag[data-mutation="elder"]::before {
    -webkit-mask-image: var(--icon-elder);
    mask-image: var(--icon-elder);
}

.ff-mutation-tag[data-mutation="shiny"] {
    border-color: rgba(244, 114, 182, 0.7);
    background:
        linear-gradient(90deg, rgba(255, 95, 109, 0.24), rgba(255, 195, 113, 0.24), rgba(123, 237, 159, 0.24), rgba(112, 161, 255, 0.24), rgba(197, 108, 240, 0.24));
    background-size: 220% 100%;
    color: #fff;
    text-shadow: 0 0 6px rgba(244, 114, 182, 0.8);
    animation: ff-shiny-tag 3s linear infinite;
}

@keyframes ff-shiny-tag {
    to { background-position: 220% 0; }
}

.ff-mutation-tag[data-mutation="perfect"] {
    border-color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(196, 181, 253, 0.18));
    color: #fff;
    text-shadow: 0 0 4px #fff, 0 0 9px rgba(216, 180, 254, 0.9);
    box-shadow: 0 0 10px rgba(233, 213, 255, 0.45);
}

.ff-mutation-tag[data-mutation="foil"] {
    border-color: rgba(125, 211, 252, 0.8);
    background:
        linear-gradient(115deg, rgba(14, 165, 233, 0.16) 20%, rgba(224, 242, 254, 0.42) 45%, rgba(14, 165, 233, 0.16) 70%);
    background-size: 240% 100%;
    color: #a5f3fc;
    text-shadow: 0 0 6px rgba(14, 165, 233, 0.8);
    animation: ff-foil-tag 2.6s ease-in-out infinite;
}

@keyframes ff-foil-tag {
    50% { background-position: 100% 0; }
}

.ff-mutation-tag[data-mutation="elder"] {
    border-color: rgba(214, 179, 112, 0.75);
    background: linear-gradient(180deg, rgba(120, 83, 30, 0.35), rgba(214, 179, 112, 0.14));
    color: #ecd29b;
}

.hb-fish-tags .ff-mutation-tag,
.catalog-caught-tags .ff-mutation-tag {
    font-size: 0.62rem;
}

.catalog-caught-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
}

.ff-codex-special i {
    -webkit-mask-image: var(--icon-sparkle);
    mask-image: var(--icon-sparkle);
}

.ff-codex-entry[data-mutation="elder"] i {
    -webkit-mask-image: var(--icon-elder);
    mask-image: var(--icon-elder);
}

.ff-codex-entry[data-mutation="shiny"] strong {
    background: linear-gradient(90deg, #ff5f6d, #ffc371, #7bed9f, #70a1ff, #c56cf0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/*==================================================
    Toasts
==================================================*/

.ff-toast-season { --toast-color: #f97316; --icon: var(--icon-season); border-color: rgba(249, 115, 22, 0.5); }
.ff-toast-zone { --toast-color: #fb923c; --icon: var(--icon-map); border-color: rgba(251, 146, 60, 0.45); }


/*==================================================
    Season chip in the top bar, between the weather
    and the Angler Level
==================================================*/

.ff-season-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 14px 0 10px;
    border-color: rgba(249, 115, 22, 0.45);
    border-radius: var(--ff-r-lg, 12px);
    background: rgba(4, 14, 22, 0.55);
    text-align: left;
}

.ff-season-chip:hover:not(:disabled) {
    border-color: #fb923c;
}

.ff-season-chip-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    background: #fb923c;
    -webkit-mask: var(--icon-season) center / contain no-repeat;
    mask: var(--icon-season) center / contain no-repeat;
}

.ff-season-chip span {
    display: grid;
    line-height: 1.1;
}

.ff-season-chip strong {
    font-size: 0.92rem;
}

.ff-season-chip small {
    color: #fdba74;
    font-size: 0.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Narrow windows keep the icon and the level. */
@media (max-width: 1100px) {
    .ff-season-chip {
        gap: 6px;
        padding: 0 10px 0 8px;
    }

    .ff-season-chip strong {
        display: none;
    }
}

@media (max-width: 760px) {
    .ff-season-chip {
        min-height: 42px;
    }
}


/*==================================================
    Zone card in the pond
==================================================*/

.ff-zone-card {
    --zone-color: #38bdf8;
    display: grid;
    gap: 2px;
    width: 100%;
    min-width: 150px;
    max-width: 230px;
    padding: 6px 10px 7px;
    border: 1px solid color-mix(in srgb, var(--zone-color) 45%, transparent);
    border-radius: var(--ff-r-md, 10px);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--zone-color) 16%, transparent), transparent 80%),
        var(--glass);
    backdrop-filter: blur(8px);
    color: var(--text);
    text-align: left;
    box-shadow: none;
    pointer-events: auto;
    cursor: pointer;
}

.ff-zone-card[hidden] {
    display: none;
}

.ff-zone-card:hover {
    border-color: color-mix(in srgb, var(--zone-color) 75%, transparent);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--zone-color) 24%, transparent), transparent 80%),
        var(--glass);
}

.ff-zone-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ff-zone-card-top b {
    color: var(--zone-color);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ff-zone-card-top em {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 6px;
    border-radius: var(--ff-r-pill, 999px);
    background: linear-gradient(180deg, #fb923c, #dc2626);
    color: #fff;
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ff-zone-card-top em[hidden] {
    display: none;
}

.ff-zone-card-top em::before,
.ff-hot-flame,
.ff-zone-hot-badge::before {
    content: "";
    width: 9px;
    height: 9px;
    background: currentColor;
    -webkit-mask: var(--icon-flame) center / contain no-repeat;
    mask: var(--icon-flame) center / contain no-repeat;
}

.ff-zone-card > small {
    color: #e0f2fe;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.25;
}

.ff-zone-card-mastery {
    display: grid;
    gap: 3px;
    margin-top: 2px;
}

.ff-zone-card-mastery small {
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 800;
}

.ff-zone-card-mastery i {
    display: block;
    height: 3px;
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.ff-zone-card-mastery b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--zone-color);
    transition: width 0.4s;
}

.ff-zone-card.is-hot {
    border-color: rgba(251, 146, 60, 0.7);
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.28);
}

#zoneNameLabel {
    cursor: pointer;
}


/*==================================================
    Hot Zone strip (weather screen)
==================================================*/

.ff-hot-zone-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(251, 146, 60, 0.45);
    border-radius: var(--ff-r-lg, 16px);
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.22), rgba(13, 34, 50, 0.6) 70%);
}

.ff-hot-zone-strip[hidden] {
    display: none;
}

.ff-hot-zone-strip .ff-hot-flame,
.ff-zones-hot-now .ff-hot-flame {
    width: 30px;
    height: 30px;
    background: linear-gradient(180deg, #fde047, #f97316 55%, #dc2626);
}

.ff-hot-zone-strip strong {
    display: block;
    color: #fdba74;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.ff-hot-zone-strip small {
    color: var(--muted);
    font-size: 0.78rem;
}

.ff-hot-next {
    display: grid;
    justify-items: end;
    text-align: right;
}

.ff-hot-next strong {
    font-size: 0.95rem;
    color: var(--text);
}


/*==================================================
    Zones screen
==================================================*/

.ff-zones-modal {
    width: min(1180px, 100%);
}

.ff-zones-hot {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 12px;
    margin-bottom: 14px;
}

.ff-zones-hot > div {
    display: grid;
    align-content: start;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--ff-r-lg, 14px);
    background: rgba(13, 34, 50, 0.6);
}

.ff-zones-hot small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ff-zones-hot strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.ff-zones-hot span {
    color: #cbd5e1;
    font-size: 0.78rem;
}

.ff-zones-hot em {
    color: var(--muted);
    font-style: normal;
}

.ff-zones-hot-now {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px !important;
    border-color: rgba(251, 146, 60, 0.5) !important;
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.24), rgba(13, 34, 50, 0.6)) !important;
}

.ff-zones-hot-now > div {
    display: grid;
    gap: 2px;
}

.ff-zones-hot-now strong {
    color: #fdba74;
}

.ff-zones-potency strong {
    color: #c4b5fd;
}

.ff-zones-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ff-zone-tile {
    --zone-color: #38bdf8;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--zone-color) 32%, transparent);
    border-radius: var(--ff-r-lg, 16px);
    background:
        linear-gradient(170deg, color-mix(in srgb, var(--zone-color) 16%, transparent), transparent 55%),
        rgba(13, 34, 50, 0.7);
}

.ff-zone-tile.here {
    border-color: color-mix(in srgb, var(--zone-color) 75%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--zone-color) 40%, transparent) inset;
}

.ff-zone-tile.hot {
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.25);
}

.ff-zone-tile.locked {
    opacity: 0.6;
}

.ff-zone-tile header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.ff-zone-tile header strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.ff-zone-tile header small {
    color: var(--zone-color);
    font-size: 0.78rem;
    font-weight: 800;
}

.ff-zone-badges {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.ff-zone-badges b {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: var(--ff-r-pill, 999px);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ff-zone-hot-badge {
    background: linear-gradient(180deg, #fb923c, #dc2626);
    color: #fff;
}

.ff-zone-here-badge {
    background: rgba(94, 234, 212, 0.16);
    color: var(--accent);
}

.ff-zone-lock-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.ff-zone-specialty em {
    color: var(--text);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.ff-zone-specialty ul {
    display: grid;
    gap: 3px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.ff-zone-specialty li {
    position: relative;
    padding-left: 14px;
    color: #cbd5e1;
    font-size: 0.76rem;
    line-height: 1.3;
}

.ff-zone-specialty li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--zone-color);
    transform: rotate(45deg);
}

.ff-zone-mastery {
    display: grid;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.ff-zone-mastery-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.ff-zone-mastery-head b {
    font-family: var(--font-display);
    font-size: 0.92rem;
}

.ff-zone-mastery-head b small {
    color: var(--muted);
}

.ff-zone-mastery-head span,
.ff-zone-mastery > small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.ff-zone-mastery .ff-mini-bar i {
    background: var(--zone-color);
}

.ff-zone-elder {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border-radius: var(--ff-r-md, 10px);
    background: rgba(255, 255, 255, 0.04);
}

.ff-zone-elder b {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.76rem;
}

.ff-zone-elder b::before {
    content: "";
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: var(--icon-elder) center / contain no-repeat;
    mask: var(--icon-elder) center / contain no-repeat;
}

.ff-zone-elder small {
    color: var(--muted);
    font-size: 0.7rem;
}

.ff-zone-elder.on {
    background: rgba(214, 179, 112, 0.12);
}

.ff-zone-elder.on b {
    color: #ecd29b;
}

.ff-zone-go {
    margin-top: auto;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--zone-color) 55%, transparent);
    border-radius: var(--ff-r-md, 10px);
    background: color-mix(in srgb, var(--zone-color) 16%, transparent);
    color: var(--text);
    font-weight: 800;
}

.ff-zone-go:hover {
    background: color-mix(in srgb, var(--zone-color) 28%, transparent);
}


/*==================================================
    Season Pass
==================================================*/

.ff-season-modal {
    --season-primary: #f97316;
    --season-secondary: #a855f7;
    --season-accent: #bef264;
    --season-deep: #170c22;
    position: relative;
    width: min(1180px, 100%);
    padding-top: 0;
}

.ff-season-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
}

.ff-season-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    margin: 0 -22px 6px;
    padding: 26px 30px 22px;
    border-bottom: 1px solid color-mix(in srgb, var(--season-primary) 45%, transparent);
    border-radius: var(--ff-r-lg, 18px) var(--ff-r-lg, 18px) 0 0;
    background:
        radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--season-primary) 40%, transparent), transparent 60%),
        radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--season-secondary) 38%, transparent), transparent 55%),
        linear-gradient(160deg, var(--season-deep), #0b1622);
    overflow: hidden;
}

.ff-season-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ff-season-motif {
    position: absolute;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.ff-season-motif.m1 { width: 70px; left: 44%; bottom: -16px; transform: rotate(-12deg); opacity: 0.9; }
.ff-season-motif.m2 { width: 36px; left: 3%; top: 8px; transform: rotate(14deg); opacity: 0.4; }
.ff-season-motif.m3 { width: 30px; left: 52%; top: 14px; opacity: 0.55; }

.ff-season-bat {
    position: absolute;
    width: 40px;
    animation: ff-bat-flap 0.5s ease-in-out infinite alternate, ff-bat-drift 9s ease-in-out infinite;
    opacity: 0.85;
}

.ff-season-bat:nth-of-type(1) { top: 14%; left: 34%; }
.ff-season-bat:nth-of-type(2) { top: 8%; left: 62%; width: 30px; animation-delay: -0.2s, -3s; }
.ff-season-bat:nth-of-type(3) { top: 30%; left: 70%; width: 24px; animation-delay: -0.35s, -6s; }

@keyframes ff-bat-flap {
    to { transform: scaleY(0.55) translateY(3px); }
}

@keyframes ff-bat-drift {
    50% { margin-left: 24px; margin-top: 8px; }
}

.ff-season-title {
    position: relative;
}

.ff-season-title small {
    color: var(--season-accent);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ff-season-title h2 {
    margin: 4px 0 6px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.05;
    text-shadow: 0 2px 0 color-mix(in srgb, var(--season-primary) 60%, #000), 0 0 26px color-mix(in srgb, var(--season-primary) 55%, transparent);
}

.ff-season-title p {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.86rem;
    max-width: 48ch;
}

.ff-season-level {
    position: relative;
    margin-top: 30px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--ff-r-lg, 16px);
    background: rgba(5, 10, 18, 0.55);
    backdrop-filter: blur(6px);
}

.ff-season-level-badge {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: var(--ff-r-lg, 18px);
    background: linear-gradient(160deg, var(--season-primary), color-mix(in srgb, var(--season-primary) 45%, #000));
    box-shadow: 0 0 22px color-mix(in srgb, var(--season-primary) 50%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #fff;
}

.ff-season-level-badge small {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: -10px;
}

.ff-season-level-badge strong {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.ff-season-xp {
    display: grid;
    gap: 7px;
}

.ff-season-xp-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.82rem;
}

.ff-season-xp-text span {
    color: var(--muted);
}

.ff-season-xp-text em {
    color: var(--text);
    font-style: normal;
    font-weight: 800;
}

.ff-season-xp-bar {
    height: 10px;
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.ff-season-xp-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--season-secondary), var(--season-primary));
    box-shadow: 0 0 12px color-mix(in srgb, var(--season-primary) 70%, transparent);
    transition: width 0.4s;
}

.ff-season-catchup {
    padding: 6px 10px;
    border-radius: var(--ff-r-md, 10px);
    background: color-mix(in srgb, var(--season-accent) 16%, transparent);
    color: var(--season-accent);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.3;
}

.ff-season-catchup.done {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.ff-season-body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 20px;
}

.ff-sp-missions {
    display: grid;
    gap: 8px;
}

.ff-sp-mission {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--ff-r-lg, 12px);
    background: rgba(13, 34, 50, 0.6);
}

.ff-sp-mission-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--ff-r-md, 10px);
    background: color-mix(in srgb, var(--season-primary) 20%, transparent);
    color: var(--season-primary);
}

.ff-sp-mission-icon svg {
    width: 20px;
    height: 20px;
}

.ff-sp-mission strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.86rem;
}

.ff-sp-mission .ff-mini-bar {
    height: 5px;
}

.ff-sp-mission .ff-mini-bar i {
    background: linear-gradient(90deg, var(--season-secondary), var(--season-primary));
}

.ff-sp-mission small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.ff-sp-mission-xp {
    color: var(--season-accent);
    font-family: var(--font-display);
    font-size: 1rem;
    white-space: nowrap;
}

.ff-sp-mission-xp small {
    margin-left: 2px;
    font-size: 0.66rem;
}

.ff-sp-mission.done {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(22, 101, 52, 0.18);
}

.ff-sp-mission.done .ff-sp-mission-icon {
    background: rgba(74, 222, 128, 0.16);
    color: var(--good);
}

.ff-sp-mission.done .ff-sp-mission-xp {
    color: var(--good);
    font-size: 1.2rem;
}

.ff-sp-mission.done .ff-mini-bar i {
    background: var(--good);
}

.ff-season-buffs {
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--season-primary) 30%, transparent);
    border-radius: var(--ff-r-lg, 14px);
    background: rgba(13, 34, 50, 0.6);
}

.ff-season-buffs ul {
    display: grid;
    gap: 5px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.ff-season-buffs li {
    color: var(--season-accent);
    font-size: 0.84rem;
    font-weight: 800;
}

.ff-season-buffs p,
.ff-season-buffs small,
.ff-season-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.ff-season-note {
    margin-top: 10px;
}

.ff-season-track {
    display: flex;
    gap: 8px;
    padding: 4px 2px 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.ff-sp-loading {
    padding: 20px;
    color: var(--muted);
}

.ff-sp-reward {
    position: relative;
    display: grid;
    grid-template-rows: auto 64px auto;
    justify-items: center;
    align-content: start;
    gap: 4px;
    flex: 0 0 96px;
    min-height: 150px;
    padding: 8px 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--ff-r-lg, 14px);
    background: rgba(13, 34, 50, 0.65);
    scroll-snap-align: center;
    text-align: center;
}

.ff-sp-reward.big {
    flex-basis: 118px;
    border-color: color-mix(in srgb, var(--season-primary) 45%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--season-primary) 18%, transparent), transparent 70%),
        rgba(13, 34, 50, 0.7);
}

.ff-sp-reward.kind-cosmetic {
    border-color: color-mix(in srgb, var(--season-accent) 55%, transparent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--season-primary) 25%, transparent);
}

.ff-sp-reward-level {
    padding: 0 8px;
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 0.74rem;
}

.ff-sp-reward-art {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
}

.ff-sp-reward-art > svg {
    width: 48px;
    height: 48px;
}

.ff-sp-reward small {
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
}

.ff-sp-stack {
    display: flex;
    align-items: center;
}

.ff-sp-stack svg {
    width: 30px;
    height: 30px;
    margin: 0 -5px;
}

.ff-sp-xp {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--ff-r-lg, 12px);
    background: linear-gradient(160deg, #a78bfa, #6d28d9);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.45);
}

.ff-sp-buff {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--season-accent) 40%, transparent), transparent 70%);
    color: var(--season-accent);
}

.ff-sp-buff svg {
    width: 30px;
    height: 30px;
}

.ff-sp-figure {
    display: block;
    width: 64px;
    height: 64px;
    overflow: hidden;
}

.ff-sp-figure .fisher {
    width: 64px;
    height: 84px;
}

.ff-sp-figure.slot-hat .fisher,
.ff-sp-figure.slot-accessory .fisher {
    width: 110px;
    height: 144px;
    margin: -14px 0 0 -26px;
}

.ff-sp-figure.slot-rod .fisher {
    width: 64px;
    height: 84px;
    margin-top: -6px;
}

.ff-sp-bobber {
    width: 54px;
    height: 48px;
}

.ff-sp-reward.earned {
    border-color: rgba(74, 222, 128, 0.4);
}

.ff-sp-reward.earned .ff-sp-reward-level {
    background: rgba(74, 222, 128, 0.18);
    color: var(--good);
}

.ff-sp-check {
    position: absolute;
    top: 6px;
    right: 7px;
    color: var(--good);
    font-style: normal;
    font-weight: 900;
}

.ff-sp-reward.next {
    border-color: var(--season-primary);
    box-shadow: 0 0 0 1px var(--season-primary) inset, 0 0 18px color-mix(in srgb, var(--season-primary) 40%, transparent);
}

.ff-sp-reward.next .ff-sp-reward-level {
    background: var(--season-primary);
    color: #fff;
}


/*==================================================
    Building materials (Lodge)
==================================================*/

.hb-building-material {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    padding: 6px 9px;
    border-radius: var(--ff-r-md, 9px);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.74rem;
}

.hb-building-material span {
    color: var(--muted);
    font-weight: 800;
}

.hb-building-material small {
    color: var(--muted);
}

.hb-building-material.short b,
.hb-building-material.short small {
    color: var(--bad);
}


/*==================================================
    Smaller screens
==================================================*/

@media (max-width: 1100px) {
    .ff-zones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ff-zones-hot {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .ff-season-hero {
        grid-template-columns: minmax(0, 1fr);
        margin: 0 -14px 6px;
        padding: 22px 18px 18px;
    }

    .ff-season-body {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .ff-zones-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ff-hot-zone-strip {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ff-hot-next {
        grid-column: 1 / -1;
        justify-items: start;
        text-align: left;
    }

    .ff-sp-mission {
        gap: 8px;
        padding: 8px 10px;
    }
}

/* Very short screens: the Zones button in the rail is enough. */
@media (max-height: 540px) and (min-width: 561px) {
    .ff-zone-card {
        display: none;
    }
}

@media (max-height: 760px) {
    .ff-zone-card {
        padding: 4px 9px 5px;
    }

    .ff-zone-card > small {
        display: none;
    }
}
