/*==================================================
    Fish Fish - Tides theme
    Loaded after style.css. Owns the app shell (top bar,
    menu rail, stage, dock, social column), the pond HUD
    and every Tides screen, and retunes the shared tokens
    so older components pick up the new palette.
==================================================*/

:root {
    --bg-deep: #050e16;
    --bg: #081722;
    --panel: rgba(11, 27, 40, 0.86);
    --panel-solid: #0d2232;
    --panel-2: #123047;
    --panel-3: #19405c;
    --glass: rgba(8, 22, 34, 0.62);
    --line: rgba(125, 196, 235, 0.2);
    --line-strong: rgba(125, 196, 235, 0.38);
    --text: #eef7ff;
    --muted: #8eafc5;
    --water: #1e8bb2;
    --water-dark: #0e5578;
    --accent: #5eead4;
    --accent-2: #38bdf8;
    --accent-ink: #032a26;
    --lantern: #ffb547;
    --coral: #ff7a59;
    --gold: #fcd34d;
    --good: #4ade80;
    --bad: #fb7185;
    --xp: #a78bfa;
    --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --topbar-height: 68px;
    --rail-width: 96px;
    --social-width: 330px;

    /* Line icons, used as masks so they take the button's text color. */
    --icon-pond: 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='M2.5 12c3.2-5 9.5-6.6 14.2-2.6L21 6v12l-4.3-3.4C12 18.6 5.7 17 2.5 12z'/><circle cx='8' cy='11' r='.6' fill='black'/></svg>");
    --icon-shop: 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.5 9.5h17l-1.6-5h-13.8z'/><path d='M5 9.5V20h14V9.5'/><path d='M10 20v-5h4v5'/></svg>");
    --icon-gear: 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='M8.5 3.5 3 6.5l2 4.2 2.6-1V20h8.8V9.7l2.6 1 2-4.2-5.5-3c-.8 1.9-2 2.8-3.5 2.8S9.3 5.4 8.5 3.5z'/></svg>");
    --icon-paw: 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='M12 12.5c-3.2 0-6 3.3-6 5.8 0 1.9 1.8 2.2 6 2.2s6-.3 6-2.2c0-2.5-2.8-5.8-6-5.8z'/><circle cx='5' cy='10' r='1.8'/><circle cx='9' cy='5.8' r='1.8'/><circle cx='15' cy='5.8' r='1.8'/><circle cx='19' cy='10' r='1.8'/></svg>");
    --icon-scroll: 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='M7 3.5h11a2 2 0 0 1 2 2V7h-3.5'/><path d='M7 3.5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h8.5a2 2 0 0 0 2-2V6.5'/><path d='M9 9h5.5M9 13h5.5M9 17h3.5'/></svg>");
    --icon-star: 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='m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/></svg>");
    --icon-home: 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 11.5 12 4l9 7.5'/><path d='M5 10v10h14V10'/><path d='M10 20v-6h4v6'/><path d='M16 6.5V4h2v4'/></svg>");
    --icon-book: 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 19.5V5a2 2 0 0 1 2-2h14v15H6a2 2 0 0 0-2 2 2 2 0 0 0 2 2h14'/><path d='M9 8h7'/></svg>");
    --icon-trophy: 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='M8 4h8v5a4 4 0 0 1-8 0z'/><path d='M8 6H5a3 3 0 0 0 3 4M16 6h3a3 3 0 0 1-3 4M12 13v4M8 20.5h8M10 17h4'/></svg>");
    --icon-podium: 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 20v-6h6v6M9 20V8h6v12M15 20v-8.5h6V20M2.5 20h19'/></svg>");
    --icon-chart: 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 3.5v16.5h16.5'/><path d='M8 16v-4M12 16V8M16 16v-6.5'/></svg>");
    --icon-help: 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'><circle cx='12' cy='12' r='9'/><path d='M9.5 9.2a2.6 2.6 0 1 1 3.6 2.4c-.7.3-1.1.9-1.1 1.7v.4M12 17h.01'/></svg>");
    --icon-cog: 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'><circle cx='12' cy='12' r='3.2'/><path d='M12 2.5v3M12 18.5v3M4.6 4.6l2.1 2.1M17.3 17.3l2.1 2.1M2.5 12h3M18.5 12h3M4.6 19.4l2.1-2.1M17.3 6.7l2.1-2.1'/></svg>");
    --icon-exit: 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='M14 4h5v16h-5M10 8l-4 4 4 4M6 12h10'/></svg>");
    --icon-net: 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.5 5h17l-3 9.5a6 6 0 0 1-11 0z'/><path d='M8 5l3 14M16 5l-3 14M5 10h14M6.5 15h11'/></svg>");
    --icon-tank: 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'><rect x='3' y='5' width='18' height='14' rx='2.5'/><path d='M7 12.5c2-2 5-2 7 0l2.5-1.8v3.6L14 12.5c-2 2-5 2-7 0z'/><path d='M3 9h18'/></svg>");
    --icon-storm: 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='M7 15a4 4 0 0 1 .4-8 5.2 5.2 0 0 1 10 1.6A3.3 3.3 0 0 1 17 15'/><path d='m13 13-3 4.5h4l-3 4.5'/></svg>");
    --icon-dna: 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='M7 3c0 6 10 6 10 12s-10 6-10 6M17 3c0 6-10 6-10 12s10 6 10 6'/><path d='M8.5 7.5h7M8.5 16.5h7'/></svg>");
    --icon-medal: 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'><circle cx='12' cy='15' r='5.5'/><path d='M8 3.5l3 6.3M16 3.5l-3 6.3M12 12.8v4.4'/></svg>");
    --icon-chat: 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 5h16v11H9l-5 4z'/><path d='M8 9.5h8M8 12.5h5'/></svg>");
    --icon-lock: 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'><rect x='5' y='11' width='14' height='9.5' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
    --icon-coin: 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'><ellipse cx='12' cy='12' rx='8.5' ry='8.5'/><path d='M12 7.5v9M14.5 9.2c-.6-.9-1.5-1.2-2.5-1.2-1.4 0-2.5.8-2.5 1.9 0 2.6 5 1.5 5 4.2 0 1.1-1.1 1.9-2.5 1.9-1.1 0-2.1-.4-2.6-1.3'/></svg>");
    --icon-crate: 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'><rect x='3.5' y='6' width='17' height='13' rx='1.5'/><path d='M3.5 10.5h17M10 10.5v3h4v-3'/></svg>");
    --icon-egg: 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='M12 3c3.7 0 6.5 6 6.5 10.3A6.5 6.5 0 0 1 5.5 13.3C5.5 9 8.3 3 12 3z'/><path d='M7 13l2.5-1.5L12 13l2.5-1.5L17 13'/></svg>");
    --icon-reroll: 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='M20 11a8 8 0 0 0-14.5-4.5L4 8M4 3.5V8h4.5M4 13a8 8 0 0 0 14.5 4.5L20 16M20 20.5V16h-4.5'/></svg>");

    --weather-sun: 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'><circle cx='12' cy='12' r='4.2'/><path d='M12 2.5v2.2M12 19.3v2.2M2.5 12h2.2M19.3 12h2.2M5.3 5.3l1.6 1.6M17.1 17.1l1.6 1.6M5.3 18.7l1.6-1.6M17.1 6.9l1.6-1.6'/></svg>");
    --weather-rain: 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='M7 14.5a4 4 0 0 1 .4-8 5.2 5.2 0 0 1 10 1.6 3.3 3.3 0 0 1-.4 6.4z'/><path d='M8.5 17.5 7.5 20M12.5 17.5l-1 2.5M16.5 17.5l-1 2.5'/></svg>");
    --weather-fog: 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'><path d='M7.5 10.5a4.6 4.6 0 0 1 9 0M3.5 13.5h17M5.5 17h13M8 20.5h8'/></svg>");
    --weather-storm: var(--icon-storm);
    --weather-heat: 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'><circle cx='12' cy='8.5' r='3.8'/><path d='M12 1.5v1.4M4.8 8.5H3.4M20.6 8.5h-1.4M6.9 3.4l1 1M17.1 3.4l-1 1M3.5 15.5c2-1.4 3.8 1.4 5.7 0s3.8 1.4 5.7 0 3.8 1.4 5.6 0M3.5 20c2-1.4 3.8 1.4 5.7 0s3.8 1.4 5.7 0 3.8 1.4 5.6 0'/></svg>");
    --weather-wind: 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 8.5h10.5a3 3 0 1 0-3-3M3 12.5h15a3 3 0 1 1-3 3M3 16.5h7'/></svg>");
    --weather-snow: 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='M12 2.5v19M3.8 7.3l16.4 9.4M3.8 16.7l16.4-9.4M9.5 4.3 12 6.6l2.5-2.3M9.5 19.7 12 17.4l2.5 2.3'/></svg>");
    --weather-glow: 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 15.5c2-1.4 3.8 1.4 5.7 0s3.8 1.4 5.7 0 3.8 1.4 5.6 0M3 20c2-1.4 3.8 1.4 5.7 0s3.8 1.4 5.7 0 3.8 1.4 5.6 0'/><circle cx='6.5' cy='9' r='1.4'/><circle cx='12.5' cy='5' r='1.4'/><circle cx='17.5' cy='9.5' r='1.4'/></svg>");
    --weather-sunshower: 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'><circle cx='7.5' cy='7' r='3'/><path d='M7.5 1.6v1.2M2.1 7h1.2M3.7 3.2l.9.9'/><path d='M10 16.5a3.5 3.5 0 0 1 .4-7 4.6 4.6 0 0 1 8.8 1.4 2.8 2.8 0 0 1-.4 5.6z'/><path d='M12 19.2l-.8 2M16 19.2l-.8 2'/></svg>");
    --weather-eclipse: 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'><circle cx='12' cy='12' r='4.6'/><circle cx='12' cy='12' r='2.6' fill='black'/><path d='M12 2.5v2.2M12 19.3v2.2M2.5 12h2.2M19.3 12h2.2M5.3 5.3l1.5 1.5M17.2 17.2l1.5 1.5M5.3 18.7l1.5-1.5M17.2 6.8l1.5-1.5'/></svg>");
    --weather-rainbow: 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'><path d='M2.5 18a9.5 9.5 0 0 1 19 0M6 18a6 6 0 0 1 12 0M9.5 18a2.5 2.5 0 0 1 5 0'/></svg>");
    --weather-aurora: 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 13c3-7 6 2 9-4.5S18 10 21 4M3 19c3-5 6 1.5 9-3.5s6 1 9-3.5'/></svg>");
    --weather-meteor: 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'><circle cx='16' cy='16' r='3.5'/><path d='M3.5 3.5l9 9M9 3l4.5 4.5M3 9l4.5 4.5'/></svg>");
    --weather-moon: 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='M20 14.5A8.2 8.2 0 1 1 9.5 4a6.6 6.6 0 0 0 10.5 10.5z'/></svg>");
}


/*==================================================
    Base
==================================================*/

html {
    background: var(--bg-deep);
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(94, 234, 212, 0.1), transparent 60%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560' fill='none' stroke='rgb(125,196,235)' stroke-opacity='.06' stroke-width='1.4'><path d='M-20 120c80-40 140 30 220-10s130-70 210-20 120 40 170 10'/><path d='M-20 170c80-40 150 40 230-5s120-70 200-25 130 50 170 15'/><path d='M-20 230c90-30 140 50 230 10s140-60 210-10 110 30 160 5'/><path d='M-20 330c70-50 160 20 240-20s120-50 200-5 120 50 160 20'/><path d='M-20 390c80-40 150 40 240 0s130-60 210-15 110 40 150 15'/><path d='M-20 460c90-30 140 40 220 5s140-50 220-10 100 30 160 10'/><ellipse cx='400' cy='90' rx='60' ry='26'/><ellipse cx='400' cy='90' rx='34' ry='13'/><ellipse cx='130' cy='520' rx='70' ry='24'/></svg>"),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    background-attachment: fixed;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.book-header h2,
.cast-button,
.zone-name {
    font-family: var(--font-display);
    letter-spacing: 0.01em;
}

h2 {
    font-weight: 600;
}

button {
    border-radius: var(--radius-sm);
    border-color: var(--line-strong);
    background: linear-gradient(180deg, rgba(30, 72, 102, 0.9), rgba(18, 48, 71, 0.95));
    font-family: var(--font-body);
    font-weight: 800;
    transition: border-color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.15s, color 0.15s;
}

button:hover:not(:disabled) {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.2), 0 6px 16px rgba(0, 0, 0, 0.25);
}

button:active:not(:disabled) {
    transform: translateY(1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

input,
select {
    border-radius: var(--radius-sm);
    border-color: var(--line-strong);
    background: rgba(4, 14, 22, 0.7);
    font-family: var(--font-body);
}

.ff-primary {
    border-color: rgba(94, 234, 212, 0.8);
    background: linear-gradient(180deg, #2dd4bf, #0d9488);
    color: #022c27;
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.35);
}

.ff-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #5eead4, #14b8a6);
}

.ff-join-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.ff-join-row button {
    width: 100%;
}

.ff-solo-button {
    padding: 0 16px;
    border-color: rgba(94, 234, 212, 0.55);
    background: rgba(13, 148, 136, 0.14);
    color: #ccfbf1;
    font-weight: 800;
    white-space: nowrap;
}

.ff-solo-button:hover:not(:disabled) {
    border-color: #5eead4;
    background: rgba(13, 148, 136, 0.28);
}

.ff-link-button {
    min-height: 0;
    border: none;
    background: none;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ff-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(4, 14, 22, 0.55);
    font-weight: 800;
    font-size: 0.86rem;
    white-space: nowrap;
}

.ff-pill-gold {
    border-color: rgba(252, 211, 77, 0.5);
    color: var(--gold);
}

.ff-dot {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 2px var(--panel-solid), 0 0 10px var(--coral);
}

.ff-dot[hidden] {
    display: none;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(125, 196, 235, 0.25) padding-box;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

.panel,
.book-modal {
    border-radius: var(--radius);
}


/*==================================================
    Lobby
==================================================*/

.ff-lobby {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    overflow: hidden;
}

.ff-lobby-scenery {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
}

.ff-lobby-veil {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(5, 14, 22, 0.05), rgba(5, 14, 22, 0.55) 70%),
        linear-gradient(180deg, rgba(5, 14, 22, 0.15), rgba(5, 14, 22, 0.75));
}

.ff-lobby .hub-back-link {
    color: rgba(238, 247, 255, 0.85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.ff-title {
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
    margin: 4vh auto 26px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.ff-title h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 5.6rem);
    font-weight: 700;
    line-height: 0.95;
    color: #fff;
    letter-spacing: 0.01em;
}

.ff-title p {
    max-width: 560px;
    margin: 6px 0 0;
    color: rgba(238, 247, 255, 0.86);
    font-weight: 600;
}

.ff-logo {
    width: 74px;
    height: 74px;
    color: var(--accent);
    filter: drop-shadow(0 6px 18px rgba(94, 234, 212, 0.45));
    animation: ff-bob 4s ease-in-out infinite;
}

.ff-title .ff-subtitle {
    margin: 2px 0 6px;
}

.ff-subtitle span {
    display: inline-block;
    padding: 4px 18px;
    border: 1px solid rgba(94, 234, 212, 0.6);
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(5, 14, 22, 0.55);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.ff-lobby-weather {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-top: 10px;
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(5, 14, 22, 0.6);
    backdrop-filter: blur(6px);
    font-weight: 700;
}

.ff-lobby .lobby-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.ff-lobby .panel {
    border-color: rgba(125, 196, 235, 0.28);
    background: rgba(7, 20, 31, 0.74);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.ff-lobby .panel h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.ff-lobby .room-card {
    border-radius: var(--ff-r-lg, 12px);
}

#lobbyWhatsNewButton {
    display: block;
    margin: 20px auto 40px;
    color: #a5f3fc;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

@keyframes ff-bob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
}


/*==================================================
    Game shell
==================================================*/

.game.ff-shell {
    position: relative;
    display: grid;
    grid-template-columns: var(--rail-width) minmax(0, 1fr) var(--social-width);
    grid-template-rows: var(--topbar-height) minmax(0, 1fr);
    grid-template-areas:
        "top top top"
        "rail stage social";
    align-items: stretch;
    justify-items: stretch;
    gap: 12px;
    width: 100%;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    padding: 12px;
    zoom: 1;
    overflow: hidden;
}

.ff-topbar {
    grid-area: top;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.ff-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.ff-brand-mark {
    width: 34px;
    height: 34px;
    color: var(--accent);
}

.ff-brand .sidebar-brand h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    white-space: nowrap;
}

.ff-room {
    display: grid;
    flex: 0 1 auto;
    min-width: 0;
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.ff-room h2 {
    margin: 0;
    color: var(--accent);
    font-size: 1rem;
    line-height: 1.1;
}

.ff-room .muted {
    overflow: hidden;
    font-size: 0.75rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ff-topbar .zone-bar {
    flex: 0 1 300px;
    min-width: 190px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--ff-r-lg, 12px);
    overflow: hidden;
    background: rgba(4, 14, 22, 0.55);
}

.ff-topbar .zone-select {
    padding-left: 12px;
}

.ff-topbar .zone-label-wrap {
    display: grid;
    place-content: center;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.ff-topbar .zone-name {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ff-topbar .zone-progress {
    color: var(--muted);
    font-size: 0.7rem;
}

.ff-topbar-spacer {
    flex: 1 1 0;
}

.ff-weather-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 14px 0 10px;
    border-radius: var(--ff-r-lg, 12px);
    background: rgba(4, 14, 22, 0.55);
    text-align: left;
}

.ff-weather-chip span {
    display: grid;
    line-height: 1.1;
}

.ff-weather-chip strong {
    font-size: 0.92rem;
}

.ff-weather-chip small {
    color: var(--muted);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.ff-weather-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    background: currentColor;
    -webkit-mask: var(--weather-sun) center / contain no-repeat;
    mask: var(--weather-sun) center / contain no-repeat;
    color: var(--gold);
}

.ff-weather-icon[data-weather="rain"] { -webkit-mask-image: var(--weather-rain); mask-image: var(--weather-rain); color: #60a5fa; }
.ff-weather-icon[data-weather="fog"] { -webkit-mask-image: var(--weather-fog); mask-image: var(--weather-fog); color: #cbd5e1; }
.ff-weather-icon[data-weather="storm"] { -webkit-mask-image: var(--weather-storm); mask-image: var(--weather-storm); color: #fde047; }
.ff-weather-icon[data-weather="rainbow"] { -webkit-mask-image: var(--weather-rainbow); mask-image: var(--weather-rainbow); color: #f472b6; }
.ff-weather-icon[data-weather="aurora"] { -webkit-mask-image: var(--weather-aurora); mask-image: var(--weather-aurora); color: #5eead4; }
.ff-weather-icon[data-weather="meteor"] { -webkit-mask-image: var(--weather-meteor); mask-image: var(--weather-meteor); color: #c4b5fd; }
.ff-weather-icon[data-weather="bloodmoon"] { -webkit-mask-image: var(--weather-moon); mask-image: var(--weather-moon); color: #f43f5e; }
.ff-weather-icon[data-weather="heatwave"] { -webkit-mask-image: var(--weather-heat); mask-image: var(--weather-heat); color: #fb923c; }
.ff-weather-icon[data-weather="gale"] { -webkit-mask-image: var(--weather-wind); mask-image: var(--weather-wind); color: #86efac; }
.ff-weather-icon[data-weather="blizzard"] { -webkit-mask-image: var(--weather-snow); mask-image: var(--weather-snow); color: #bfdbfe; }
.ff-weather-icon[data-weather="bioluminescence"] { -webkit-mask-image: var(--weather-glow); mask-image: var(--weather-glow); color: #22d3ee; }
.ff-weather-icon[data-weather="sunshower"] { -webkit-mask-image: var(--weather-sunshower); mask-image: var(--weather-sunshower); color: #facc15; }
.ff-weather-icon[data-weather="eclipse"] { -webkit-mask-image: var(--weather-eclipse); mask-image: var(--weather-eclipse); color: #818cf8; }

.ff-weather-chip[data-weather="eclipse"] {
    border-color: rgba(129, 140, 248, 0.7);
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.35);
}

.ff-weather-chip[data-weather="bloodmoon"] {
    border-color: rgba(244, 63, 94, 0.7);
    box-shadow: 0 0 18px rgba(244, 63, 94, 0.35);
}

.ff-weather-chip[data-weather="rainbow"] {
    border-image: linear-gradient(90deg, #f87171, #facc15, #4ade80, #38bdf8, #a78bfa) 1;
}

.ff-angler-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 12px 0 6px;
    border-color: rgba(167, 139, 250, 0.5);
    border-radius: var(--ff-r-lg, 12px);
    background: rgba(4, 14, 22, 0.55);
}

.ff-angler-level {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--ff-r-md, 10px);
    background: linear-gradient(160deg, #8b5cf6, #4c1d95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(139, 92, 246, 0.4);
    line-height: 1;
}

.ff-angler-level small {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.ff-angler-level strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.ff-angler-xp {
    display: grid;
    gap: 4px;
    width: 116px;
    text-align: left;
}

.ff-angler-xp small {
    color: var(--muted);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ff-xp-track {
    position: relative;
    height: 7px;
    border-radius: var(--ff-r-pill, 999px);
    overflow: hidden;
    background: rgba(167, 139, 250, 0.16);
}

.ff-xp-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6, #c084fc, #f0abfc);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.7);
    transition: width 0.6s cubic-bezier(.2, .8, .2, 1);
}

.ff-points-dot {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--ff-r-pill, 999px);
    background: var(--coral);
    color: #fff;
    font-size: 0.72rem;
    line-height: 20px;
    box-shadow: 0 0 12px rgba(255, 122, 89, 0.7);
    animation: ff-pulse 1.8s ease-in-out infinite;
}

.ff-points-dot[hidden] {
    display: none;
}

.ff-angler-badge.ff-level-up {
    animation: ff-level-flash 1.4s ease-out;
}

@keyframes ff-level-flash {
    0% { box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.9); }
    40% { box-shadow: 0 0 0 10px rgba(192, 132, 252, 0); background: rgba(139, 92, 246, 0.35); }
    100% { box-shadow: 0 0 0 0 rgba(192, 132, 252, 0); }
}

@keyframes ff-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.ff-wallet.wallet {
    flex: 0 0 auto;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: var(--ff-r-lg, 12px);
    background: linear-gradient(180deg, rgba(252, 211, 77, 0.12), rgba(252, 211, 77, 0.04));
}

.ff-wallet span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ff-wallet span::before {
    content: "";
    width: 20px;
    height: 20px;
    background: var(--gold);
    -webkit-mask: var(--icon-coin) center / contain no-repeat;
    mask: var(--icon-coin) center / contain no-repeat;
}

.ff-wallet strong {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
}

.ff-social-toggle {
    position: relative;
    display: none;
    width: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: var(--ff-r-lg, 12px);
}

.ff-social-toggle::before {
    content: "";
    position: absolute;
    inset: 11px;
    background: currentColor;
    -webkit-mask: var(--icon-chat) center / contain no-repeat;
    mask: var(--icon-chat) center / contain no-repeat;
}

.ff-unread {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--coral);
}

.ff-unread[hidden] {
    display: none;
}


/* Menu rail */

.ff-rail {
    grid-area: rail;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    padding: 8px 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.ff-rail::-webkit-scrollbar {
    display: none;
}

.ff-rail-group {
    display: grid;
    gap: 2px;
    padding: 0;
}

.ff-rail-group + .ff-rail-group {
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.ff-rail-bottom {
    margin-top: auto;
}

.ff-rail .pond-menu-bar {
    grid-template-columns: 1fr;
}

.ff-rail button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 50px;
    padding: 5px 2px 4px;
    border: 1px solid transparent;
    border-radius: var(--ff-r-lg, 12px);
    background: transparent;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
}

.ff-rail button::before {
    content: "";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: var(--icon, var(--icon-pond)) center / contain no-repeat;
    mask: var(--icon, var(--icon-pond)) center / contain no-repeat;
    transition: transform 0.15s;
}

.ff-rail button:hover:not(:disabled) {
    border-color: transparent;
    background: rgba(125, 196, 235, 0.08);
    color: var(--text);
    box-shadow: none;
}

.ff-rail button:hover:not(:disabled)::before {
    transform: translateY(-1px) scale(1.06);
}

.ff-rail button.active {
    border-color: rgba(94, 234, 212, 0.45);
    background: linear-gradient(180deg, rgba(94, 234, 212, 0.18), rgba(94, 234, 212, 0.06));
    color: var(--accent);
}

.ff-rail button.active::after {
    content: "";
    position: absolute;
    left: -7px;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.ff-rail button:disabled {
    color: rgba(142, 175, 197, 0.45);
    opacity: 1;
}

.ff-rail button:disabled::before {
    -webkit-mask-image: var(--icon-lock);
    mask-image: var(--icon-lock);
    width: 20px;
    height: 20px;
}

.ff-rail .equipment-full-label {
    color: var(--bad);
    font-size: 0.6rem;
}

[data-icon="pond"] { --icon: var(--icon-pond); }
[data-icon="shop"] { --icon: var(--icon-shop); }
[data-icon="gear"] { --icon: var(--icon-gear); }
[data-icon="paw"] { --icon: var(--icon-paw); }
[data-icon="scroll"] { --icon: var(--icon-scroll); }
[data-icon="star"] { --icon: var(--icon-star); }
[data-icon="home"] { --icon: var(--icon-home); }
[data-icon="book"] { --icon: var(--icon-book); }
[data-icon="trophy"] { --icon: var(--icon-trophy); }
[data-icon="podium"] { --icon: var(--icon-podium); }
[data-icon="chart"] { --icon: var(--icon-chart); }
[data-icon="help"] { --icon: var(--icon-help); }
[data-icon="cog"] { --icon: var(--icon-cog); }
[data-icon="exit"] { --icon: var(--icon-exit); }
[data-icon="net"] { --icon: var(--icon-net); }
[data-icon="tank"] { --icon: var(--icon-tank); }
[data-icon="storm"] { --icon: var(--icon-storm); }
[data-icon="dna"] { --icon: var(--icon-dna); }
[data-icon="medal"] { --icon: var(--icon-medal); }

/* Old notice badges sit on the rail buttons' corner. */
.ff-rail .menu-notice,
.ff-rail .new-badge,
.ff-rail [class*="notice-dot"] {
    position: absolute;
    top: 4px;
    right: 6px;
}


/* Stage */

.ff-stage.pond-column {
    grid-area: stage;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    min-height: 0;
}

.ff-stage .center-view-host {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0;
}

.ff-stage .fishing-area-view {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 12px;
    min-height: 0;
}

.ff-stage .center-view-panel {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    max-height: none !important;
    min-height: 0;
    border-color: var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.ff-shell .pond-scene {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 300px;
    aspect-ratio: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--ff-r-lg, 20px);
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ff-shell .pond-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 13;
    border-radius: inherit;
    box-shadow: inset 0 0 80px rgba(2, 8, 14, 0.45);
    pointer-events: none;
}


/* Pond HUD */

.ff-pond-hud-left {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 15;
    display: grid;
    justify-items: start;
    gap: 8px;
    pointer-events: none;
}

.ff-pond-hud-left .pond-clock {
    position: static;
    min-width: 0;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--ff-r-md, 10px);
    background: var(--glass);
    backdrop-filter: blur(8px);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
}

.ff-pond-hud-left .streak-display {
    grid-template-columns: auto auto;
    gap: 10px;
    padding: 6px 12px 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--ff-r-md, 10px);
    background: var(--glass);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.ff-pond-hud-left .streak-display > span {
    display: grid;
    color: #e0f2fe;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ff-pond-hud-left .streak-display small {
    color: var(--muted);
    font-size: 0.66rem;
    letter-spacing: 0;
    text-transform: none;
}

/* Room for 4 digits; longer streaks widen the box. */
.ff-pond-hud-left .streak-display strong {
    width: auto;
    min-width: 66px;
    padding: 0 8px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

.ff-pond-hud-left .streak-display.active {
    border-color: rgba(252, 211, 77, 0.55);
    box-shadow: 0 0 16px rgba(252, 211, 77, 0.2);
}

.ff-shell .pond-streak-display {
    top: 14px;
    right: 14px;
    border-radius: var(--ff-r-md, 10px);
    background: var(--glass);
    backdrop-filter: blur(8px);
}

/* Pause After a Drink: the Cast button rests while the drink sinks in. */
.ff-dock .cast-button.is-drink-hold[data-cast-state="idle"] {
    filter: saturate(0.55) brightness(0.8);
    cursor: wait;
}

/* Ready notices: a Dock or Lodge upgrade done, crops ready (ready-notices.js). */
.ff-ready-notices {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 26;
    display: grid;
    gap: 8px;
    width: min(360px, calc(100% - 24px));
    transform: translateX(-50%);
    pointer-events: none;
}

.ff-ready-notice {
    --tint: #5eead4;
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--tint) 55%, transparent);
    border-radius: var(--ff-r-lg, 14px);
    background: rgba(6, 18, 28, 0.86);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 18px color-mix(in srgb, var(--tint) 22%, transparent);
    pointer-events: auto;
    animation: ff-ready-in 0.35s cubic-bezier(.2, .9, .3, 1.25);
}

.ff-ready-notice.is-lodge {
    --tint: #fcd34d;
}

.ff-ready-notice.is-crop {
    --tint: #86efac;
}

.ff-ready-notice.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s, transform 0.22s;
}

.ff-ready-notice button {
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
}

.ff-ready-open {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 4px 12px 12px;
    text-align: left;
    cursor: pointer;
}

.ff-ready-open > span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ff-ready-open strong {
    color: var(--tint);
    font-size: 0.92rem;
    font-weight: 800;
}

.ff-ready-open small {
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
}

.ff-ready-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: var(--ff-r-lg, 12px);
    background: color-mix(in srgb, var(--tint) 18%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 45%, transparent);
}

.ff-ready-icon::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    margin: 8px;
    background: var(--tint);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.ff-ready-notice.is-lodge .ff-ready-icon {
    --icon: 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 11 12 4l9 7'/><path d='M5.5 9.5V20h13V9.5'/><path d='M10 20v-5h4v5'/></svg>");
}

.ff-ready-notice.is-dock .ff-ready-icon {
    --icon: 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'><circle cx='12' cy='5' r='2.2'/><path d='M12 7.2V21M8 11h8M4.5 14.5c.8 3.6 3.8 6.5 7.5 6.5s6.7-2.9 7.5-6.5M4.5 14.5 3 16M19.5 14.5 21 16'/></svg>");
}

.ff-ready-notice.is-crop .ff-ready-icon {
    --icon: 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='M12 21v-9'/><path d='M12 12C12 8 9 5 4.5 5c0 4.2 3 7 7.5 7z'/><path d='M12 14c0-4 3-7 7.5-7 0 4.2-3 7-7.5 7z'/></svg>");
}

.ff-ready-close {
    flex: 0 0 auto;
    width: 34px;
    color: var(--muted) !important;
    font-size: 1.2rem;
    cursor: pointer;
}

.ff-ready-close:hover {
    color: var(--text) !important;
}

.ff-ready-life {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--tint);
    opacity: 0.7;
    transform-origin: left;
    animation: ff-ready-life var(--life) linear forwards;
}

@keyframes ff-ready-in {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(0.96);
    }
}

@keyframes ff-ready-life {
    to {
        transform: scaleX(0);
    }
}

/* The bounty and Season Pass trackers, stacked down the pond's right side. */
.ff-pond-trackers {
    position: absolute;
    top: 84px;
    right: 14px;
    bottom: 14px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 230px;
    pointer-events: none;
}

.ff-bounty-tracker {
    display: grid;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 0;
    overflow: hidden;
    padding: 9px 11px;
    pointer-events: auto;
    border: 1px solid rgba(255, 181, 71, 0.4);
    border-radius: var(--ff-r-lg, 12px);
    background: var(--glass);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.ff-bounty-tracker[hidden] {
    display: none;
}

.ff-bounty-tracker > strong {
    display: flex;
    justify-content: space-between;
    color: var(--lantern);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ff-tracker-row {
    display: grid;
    gap: 3px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
}

.ff-tracker-row.done {
    color: var(--good);
}

.ff-tracker-row em {
    color: var(--muted);
    font-size: 0.68rem;
    font-style: normal;
    white-space: nowrap;
}

.ff-tracker-sub {
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ff-season-tracker {
    gap: 5px;
    flex-shrink: 1;
    border-color: rgba(192, 132, 252, 0.45);
}

.ff-season-tracker > strong {
    color: #d8b4fe;
}

.ff-season-tracker .ff-mini-bar i {
    background: linear-gradient(90deg, #a855f7, #f0abfc);
}

/* "Show on the fishing screen", in the Bounty Board and Season Pass. */
.hb-toggle.ff-tracker-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: auto;
    margin: 0;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s;
}

.hb-toggle.ff-tracker-toggle:hover {
    border-color: rgba(94, 234, 212, 0.5);
    background: rgba(94, 234, 212, 0.08);
}

.hb-toggle.ff-tracker-toggle > span {
    font-weight: 800;
}

.hb-toggle.ff-tracker-toggle input {
    order: 0;
    box-sizing: border-box;
    flex: 0 0 34px;
    width: 34px;
    min-width: 0;
    height: 20px;
    min-height: 0;
    padding: 0;
    border-radius: var(--ff-r-pill, 999px);
}

.hb-toggle.ff-tracker-toggle input::after {
    width: 14px;
    height: 14px;
}

.hb-toggle.ff-tracker-toggle input:checked::after {
    transform: translateX(14px);
}

.hb-toggle.ff-tracker-toggle:has(input:not(:checked)) > span {
    color: var(--muted);
}

.book-header .ff-tracker-toggle {
    align-self: center;
    margin-left: auto;
}

.ff-season-missions .ff-tracker-toggle {
    align-self: flex-start;
    margin-bottom: 10px;
}

.ff-mini-bar {
    height: 4px;
    border-radius: var(--ff-r-pill, 999px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.ff-mini-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lantern), var(--gold));
}

.ff-tracker-row.done .ff-mini-bar i {
    background: var(--good);
}


/* Minigame overlay */

.ff-shell .pond-scene .minigame {
    position: absolute;
    left: 50%;
    bottom: 13%;
    z-index: 30;
    display: grid;
    gap: 8px;
    width: min(760px, 88%);
    padding: 12px 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--ff-r-lg, 18px);
    background: rgba(5, 16, 26, 0.72);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transform: translateX(-50%);
    transition: opacity 0.2s, transform 0.25s cubic-bezier(.2, .9, .3, 1.2);
}

.ff-shell .pond-scene .minigame.inactive {
    opacity: 0;
    filter: none;
    transform: translate(-50%, 14px) scale(0.97);
    pointer-events: none;
}

.ff-shell .minigame-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    min-height: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.ff-shell .minigame-header span:empty {
    display: none;
}

.ff-shell .minigame-track {
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--ff-r-pill, 999px);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5%),
        linear-gradient(90deg, rgba(251, 113, 133, 0.35), rgba(56, 189, 248, 0.15) 50%, rgba(251, 113, 133, 0.35)),
        #04101a;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.ff-shell .green-zone {
    border-radius: var(--ff-r-md, 6px);
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 6px, transparent 6px 12px),
        linear-gradient(180deg, rgba(74, 222, 128, 0.9), rgba(16, 185, 129, 0.85));
    box-shadow: 0 0 22px rgba(52, 211, 153, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* A Galactic or rarer fish on the line paints the zone its rarity's colors. */
.ff-shell .minigame[data-zone-rarity] .green-zone {
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 6px, transparent 6px 12px),
        var(--zone-rg);
    background-size: auto, 300% 100%;
    box-shadow: 0 0 22px color-mix(in srgb, var(--zone-rc) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: ff-zone-shimmer 3s linear infinite;
}

.minigame[data-zone-rarity="galactic"] {
    --zone-rc: #a78bfa;
    --zone-rg: linear-gradient(100deg, #7c3aed, #a78bfa 25%, #ddd6fe 50%, #a78bfa 75%, #7c3aed);
}

.minigame[data-zone-rarity="intergalactic"] {
    --zone-rc: #f472b6;
    --zone-rg: linear-gradient(100deg, #db2777, #f472b6 25%, #fbcfe8 50%, #f472b6 75%, #db2777);
}

.minigame[data-zone-rarity="universal"] {
    --zone-rc: #34d399;
    --zone-rg: linear-gradient(100deg, #047857, #34d399 25%, #d1fae5 50%, #34d399 75%, #047857);
}

.minigame[data-zone-rarity="multiversal"] {
    --zone-rc: #bae6fd;
    --zone-rg: linear-gradient(100deg, #64748b, #cbd5e1 25%, #e0f2fe 45%, #bae6fd 60%, #cbd5e1 80%, #64748b);
}

.minigame[data-zone-rarity="ultimate"] {
    --zone-rc: #f0abfc;
    --zone-rg: linear-gradient(100deg, #fbbf24, #f0abfc 25%, #a5f3fc 50%, #86efac 75%, #fbbf24);
}

/* The white needle keeps a dark edge on these lighter zones. */
.ff-shell .minigame[data-zone-rarity] .catch-needle {
    box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.7), 0 0 8px #fff, 0 0 18px rgba(94, 234, 212, 0.85);
}

@keyframes ff-zone-shimmer {
    to { background-position: 0 0, 300% 0; }
}

html:is(.ff-low-detail, .ff-motion-off) .minigame[data-zone-rarity] .green-zone {
    animation: none;
}

.ff-shell .catch-needle {
    width: 2.5px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 0 8px #fff, 0 0 18px rgba(94, 234, 212, 0.85);
}

.ff-shell .catch-needle::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50% 50% 50% 0;
    background: var(--coral);
    box-shadow: 0 0 10px rgba(255, 122, 89, 0.8);
    transform: translateX(-50%) rotate(-45deg);
}

/* Fog hides the catch zone in slow waves. */
.minigame.ff-fogged .green-zone {
    opacity: var(--ff-fog-visibility, 1);
    transition: opacity 0.12s linear;
}

.minigame.ff-fogged .minigame-track::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.2), rgba(203, 213, 225, 0.05), rgba(203, 213, 225, 0.25));
    pointer-events: none;
}

.minigame.ff-weather-storm {
    border-color: rgba(253, 224, 71, 0.5);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 26px rgba(253, 224, 71, 0.18);
}

.minigame.ff-weather-eclipse {
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(129, 140, 248, 0.3);
}

.minigame.ff-weather-blizzard {
    border-color: rgba(191, 219, 254, 0.55);
}

.minigame.ff-weather-bloodmoon {
    border-color: rgba(244, 63, 94, 0.6);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(244, 63, 94, 0.3);
}

.ff-minigame-tag {
    position: absolute;
    top: -12px;
    right: 18px;
    padding: 2px 10px;
    border-radius: var(--ff-r-pill, 999px);
    background: var(--panel-3);
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ff-shell .pond-scene .result-banner {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 31;
    width: max-content;
    max-width: min(640px, 70%);
    min-height: 0;
    padding: 9px 16px;
    border: 1px solid rgba(251, 113, 133, 0.45);
    border-radius: var(--ff-r-lg, 14px);
    background: rgba(40, 10, 18, 0.78);
    backdrop-filter: blur(8px);
    color: #fecdd3;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
}

.ff-shell .pond-scene .result-banner:empty {
    display: none;
}

.ff-shell .pond-scene .result-banner.success {
    border-color: rgba(94, 234, 212, 0.5);
    background: rgba(4, 30, 32, 0.8);
    color: #e6fffb;
}

.ff-shell .pond-scene .result-banner .fish-icon {
    vertical-align: middle;
}

.ff-shell .pond-scene .bait-notice {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 31;
    border-radius: var(--ff-r-md, 10px);
    transform: translateX(-50%);
}

.ff-shell .boss-announcement,
.ff-shell .boss-card {
    z-index: 32;
}


/* Pond effects (mutation splashes, XP floats) */

.ff-pond-effects {
    position: absolute;
    inset: 0;
    z-index: 29;
    overflow: hidden;
    pointer-events: none;
}

.ff-mutation-splash {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    justify-items: center;
    gap: 2px;
    transform: translate(-50%, -50%);
    animation: ff-splash 2.6s cubic-bezier(.2, .9, .3, 1) forwards;
    text-align: center;
}

.ff-mutation-splash small {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.ff-mutation-splash strong {
    color: var(--mutation-color, #fff);
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: 0 0 22px var(--mutation-color, #fff), 0 4px 14px rgba(0, 0, 0, 0.7);
}

.ff-mutation-splash span {
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@keyframes ff-splash {
    0% { opacity: 0; transform: translate(-50%, -40%) scale(0.6); }
    12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
    22% { transform: translate(-50%, -50%) scale(1); }
    78% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -62%) scale(1); }
}

.ff-xp-float {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 60%);
    color: #e9d5ff;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.9), 0 2px 6px rgba(0, 0, 0, 0.7);
    animation: ff-float-up 1.6s ease-out forwards;
}

.ff-xp-float.ff-coin-float {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(252, 211, 77, 0.8), 0 2px 6px rgba(0, 0, 0, 0.7);
}

@keyframes ff-float-up {
    0% { opacity: 0; transform: translate(-50%, 10px); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -60px); }
}

.ff-level-banner {
    position: absolute;
    left: 50%;
    top: 26%;
    display: grid;
    justify-items: center;
    padding: 16px 40px;
    border: 1px solid rgba(192, 132, 252, 0.6);
    border-radius: var(--ff-r-lg, 20px);
    background: radial-gradient(ellipse at 50% 0, rgba(139, 92, 246, 0.55), rgba(15, 8, 35, 0.86));
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.45);
    transform: translate(-50%, -50%);
    animation: ff-splash 3.4s cubic-bezier(.2, .9, .3, 1) forwards;
    text-align: center;
}

.ff-level-banner small {
    color: #e9d5ff;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.ff-level-banner strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
}

.ff-level-banner span {
    color: #f0abfc;
    font-weight: 800;
}


/* Dock */

.ff-dock {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.6fr);
    gap: 12px;
    flex: 0 0 auto;
}

.ff-dock-tackle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "bait lure"
        "buy gear";
    gap: 6px 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.ff-dock-tackle .bait-control {
    grid-area: bait;
}

.ff-dock-tackle .lure-control {
    grid-area: lure;
}

.ff-dock-tackle .quick-buy-bait {
    grid-area: buy;
    min-height: 32px;
    margin: 0;
    font-size: 0.8rem;
}

.ff-dock-tackle label {
    display: grid;
    gap: 3px;
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ff-dock-tackle select {
    min-height: 34px;
    font-size: 0.85rem;
}

.ff-gear-row {
    grid-area: gear;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ff-gear-row .sidebar-section-title {
    display: none;
}

.ff-gear-row .gear-summary {
    display: flex;
    flex: 1;
    gap: 4px;
    margin: 0;
}

.ff-gear-row .gear-summary.collapsed {
    display: flex !important;
}

.ff-gear-row .gear-summary div {
    flex: 1;
    padding: 6px 4px;
    border: 1px solid var(--line);
    border-radius: var(--ff-r-md, 8px);
    background: rgba(4, 14, 22, 0.45);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.ff-gear-row .gear-summary b {
    color: var(--text);
}

.ff-dock .cast-control-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.ff-dock .cast-control-row > span:last-child {
    display: none;
}

.ff-dock .storage-access-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 74px;
    border-radius: var(--ff-r-lg, 14px);
    font-size: 0.86rem;
}

.ff-dock .storage-access-button::before {
    content: "";
    width: 26px;
    height: 26px;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.ff-dock .storage-access-button:disabled::before {
    -webkit-mask-image: var(--icon-lock);
    mask-image: var(--icon-lock);
}

.ff-dock .cast-button {
    width: 100%;
    min-height: 74px;
    margin: 0;
    border: 1px solid rgba(94, 234, 212, 0.8);
    border-radius: var(--ff-r-lg, 16px);
    background:
        radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.35), transparent 60%),
        linear-gradient(180deg, #2dd4bf, #0f766e);
    color: #ecfeff;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.ff-dock .cast-button:hover:not(:disabled) {
    background:
        radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.45), transparent 60%),
        linear-gradient(180deg, #5eead4, #0d9488);
}

.ff-dock .cast-button[data-cast-state="waiting"] {
    border-color: rgba(255, 181, 71, 0.8);
    background: linear-gradient(180deg, #92400e, #5b2a07);
    color: #fde68a;
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.35);
}

.ff-dock .cast-button[data-cast-state="bite"] {
    border-color: #fecaca;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.4), transparent 60%),
        linear-gradient(180deg, #ff7a59, #dc2626);
    color: #fff;
    animation: ff-reel-pulse 0.7s ease-in-out infinite;
}

.ff-dock .cast-button[data-cast-state="clutch"] {
    border-color: #fde68a;
    background: linear-gradient(180deg, #facc15, #b45309);
    color: #1c1003;
    text-shadow: none;
    animation: ff-reel-pulse 0.5s ease-in-out infinite;
}

.ff-dock .cast-button[data-cast-state="boss"] {
    border-color: #fca5a5;
    background: linear-gradient(180deg, #ef4444, #7f1d1d);
}

.ff-dock .cast-button .no-bait-warning {
    font-family: var(--font-body);
    font-size: 0.72rem;
}

@keyframes ff-reel-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0.55), 0 12px 30px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(255, 122, 89, 0), 0 12px 30px rgba(0, 0, 0, 0.3); }
}


/* Social column */

.ff-social {
    grid-area: social;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.ff-social > section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.ff-social .phone-call-panel {
    padding: 10px;
}

.ff-feed {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 0 0 10px;
    overflow: hidden;
}

.ff-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 8px 0;
    border-bottom: 1px solid var(--line);
}

.ff-tabs button {
    position: relative;
    flex: 1;
    min-height: 38px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--ff-r-md, 10px) var(--ff-r-md, 10px) 0 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    box-shadow: none;
}

.ff-tabs button[aria-selected="true"] {
    border-bottom-color: var(--accent);
    background: rgba(94, 234, 212, 0.08);
    color: var(--text);
}

.ff-feed-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 10px 10px 0;
}

.ff-feed-panel[hidden] {
    display: none;
}

.ff-feed .chat-log,
.ff-feed .activity-log {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: var(--ff-r-lg, 12px);
}

.ff-feed .pond-log-heading h2 {
    display: none;
}

.ff-feed .pond-log-heading {
    justify-content: flex-end;
}


/* Toasts */

.ff-toasts {
    position: fixed;
    top: calc(var(--topbar-height) + 22px);
    right: 22px;
    z-index: 70;
    display: grid;
    gap: 8px;
    width: min(340px, calc(100vw - 32px));
    pointer-events: none;
}

.ff-toast {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--ff-r-lg, 14px);
    background: rgba(8, 22, 34, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    animation: ff-toast-in 0.35s cubic-bezier(.2, .9, .3, 1.2), ff-toast-out 0.4s ease-in forwards;
    animation-delay: 0s, var(--toast-life, 4.2s);
    pointer-events: auto;
}

.ff-toast::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: var(--ff-r-md, 10px);
    background: var(--toast-color, var(--accent));
    -webkit-mask: var(--icon, var(--icon-star)) center / 24px no-repeat;
    mask: var(--icon, var(--icon-star)) center / 24px no-repeat;
}

.ff-toast strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.98rem;
}

.ff-toast span {
    color: var(--muted);
    font-size: 0.8rem;
}

.ff-toast-bounty { --toast-color: var(--lantern); --icon: var(--icon-scroll); border-color: rgba(255, 181, 71, 0.45); }
.ff-toast-level { --toast-color: #c084fc; --icon: var(--icon-star); border-color: rgba(192, 132, 252, 0.5); }
.ff-toast-mutation { --icon: var(--icon-dna); }
.ff-toast-weather { --icon: var(--icon-storm); --toast-color: var(--accent-2); }
.ff-toast-coins { --icon: var(--icon-coin); --toast-color: var(--gold); }
.ff-toast-error { --icon: var(--icon-help); --toast-color: var(--bad); border-color: rgba(251, 113, 133, 0.45); }

@keyframes ff-toast-in {
    from { opacity: 0; transform: translateX(30px); }
}

@keyframes ff-toast-out {
    to { opacity: 0; transform: translateX(30px); }
}


/*==================================================
    Shared modal look
==================================================*/

.modal-backdrop {
    background: rgba(2, 8, 14, 0.66);
    backdrop-filter: blur(6px);
}

.book-modal {
    border: 1px solid var(--line-strong);
    border-radius: var(--ff-r-lg, 20px);
    background:
        radial-gradient(900px 300px at 0% 0%, rgba(56, 189, 248, 0.1), transparent 60%),
        radial-gradient(700px 300px at 100% 100%, rgba(94, 234, 212, 0.07), transparent 60%),
        #0b1f2e;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.book-header h2 {
    font-size: 1.7rem;
    font-weight: 600;
}

.book-header p {
    color: var(--muted);
}

.ff-section-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 18px 0 10px;
    font-size: 1.1rem;
}

.ff-section-title small {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
}

.ff-modal-shell .book-modal {
    animation: ff-modal-in 0.28s cubic-bezier(.2, .9, .3, 1.1);
}

@keyframes ff-modal-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
}


/*==================================================
    Mutation and mastery badges
==================================================*/

.ff-mutation-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px 1px 5px;
    border: 1px solid color-mix(in srgb, var(--mutation-color, #fff) 60%, transparent);
    border-radius: var(--ff-r-pill, 999px);
    background: color-mix(in srgb, var(--mutation-color, #fff) 16%, transparent);
    color: var(--mutation-color, #fff);
    font-size: 0.7em;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.ff-mutation-tag::before {
    content: "";
    width: 11px;
    height: 11px;
    background: currentColor;
    -webkit-mask: var(--icon-dna) center / contain no-repeat;
    mask: var(--icon-dna) center / contain no-repeat;
}

.ff-mutation-tag[data-mutation="prismatic"] {
    border-color: rgba(244, 114, 182, 0.6);
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.2), rgba(250, 204, 21, 0.2), rgba(74, 222, 128, 0.2), rgba(56, 189, 248, 0.2), rgba(167, 139, 250, 0.2));
}

.fish-card.ff-mutated {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--mutation-color, #fff) 55%, transparent), 0 0 16px color-mix(in srgb, var(--mutation-color, #fff) 30%, transparent);
}

.ff-catalog-extras {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.ff-mastery {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px 1px 4px;
    border-radius: var(--ff-r-pill, 999px);
    background: var(--mastery-bg, rgba(255, 255, 255, 0.08));
    color: var(--mastery-color, #fff);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ff-mastery::before {
    content: "";
    width: 11px;
    height: 11px;
    background: currentColor;
    -webkit-mask: var(--icon-medal) center / contain no-repeat;
    mask: var(--icon-medal) center / contain no-repeat;
}

.ff-mastery[data-tier="0"] { --mastery-color: #f0b27a; --mastery-bg: rgba(205, 127, 50, 0.22); }
.ff-mastery[data-tier="1"] { --mastery-color: #e2e8f0; --mastery-bg: rgba(203, 213, 225, 0.18); }
.ff-mastery[data-tier="2"] { --mastery-color: #fde047; --mastery-bg: rgba(250, 204, 21, 0.2); }
.ff-mastery[data-tier="3"] { --mastery-color: #a5f3fc; --mastery-bg: linear-gradient(90deg, rgba(165, 243, 252, 0.25), rgba(196, 181, 253, 0.25)); }

.ff-mutation-pips {
    display: inline-flex;
    gap: 2px;
}

.ff-mutation-pips i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.ff-mutation-pips i.on {
    background: var(--mutation-color);
    box-shadow: 0 0 5px var(--mutation-color);
}


/*==================================================
    Bounty board
==================================================*/

.ff-bounty-modal {
    width: min(1100px, 100%);
}

.ff-bounty-board {
    display: grid;
    gap: 16px;
}

.ff-bounty-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ff-bounty-daily {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ff-bounty-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 10px;
    min-height: 250px;
    padding: 18px 16px 14px;
    border: 1px solid rgba(120, 84, 40, 0.65);
    border-radius: var(--ff-r-md, 6px) var(--ff-r-md, 6px) var(--ff-r-lg, 14px) var(--ff-r-lg, 14px);
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.35), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(120, 72, 20, 0.25), transparent 50%),
        linear-gradient(170deg, #f3e2bd, #e2c48d);
    color: #3b2a14;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(120, 72, 20, 0.25);
    transform: rotate(var(--tilt, 0deg));
}

.ff-bounty-card::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fca5a5, #b91c1c);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
    transform: translateX(-50%);
}

.ff-bounty-card:nth-child(1) { --tilt: -1.2deg; }
.ff-bounty-card:nth-child(2) { --tilt: 0.8deg; }
.ff-bounty-card:nth-child(3) { --tilt: -0.5deg; }

.ff-bounty-tier {
    justify-self: center;
    padding: 2px 12px;
    border: 2px solid currentColor;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ff-bounty-card[data-tier="easy"] .ff-bounty-tier { color: #15803d; }
.ff-bounty-card[data-tier="medium"] .ff-bounty-tier { color: #b45309; }
.ff-bounty-card[data-tier="hard"] .ff-bounty-tier { color: #b91c1c; }

.ff-bounty-card p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.ff-bounty-progress {
    display: grid;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
}

.ff-bounty-bar {
    height: 10px;
    border: 1px solid rgba(80, 50, 20, 0.4);
    border-radius: var(--ff-r-pill, 999px);
    overflow: hidden;
    background: rgba(80, 50, 20, 0.15);
}

.ff-bounty-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #b45309, #f59e0b);
    transition: width 0.4s;
}

.ff-bounty-card.complete .ff-bounty-bar i {
    background: linear-gradient(90deg, #15803d, #4ade80);
}

.ff-bounty-rewards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.ff-reward-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 5px;
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(59, 42, 20, 0.12);
    font-size: 0.78rem;
    font-weight: 800;
}

.ff-reward-chip::before {
    content: "";
    width: 15px;
    height: 15px;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.ff-reward-chip[data-kind="coins"] { --icon: var(--icon-coin); color: #92400e; }
.ff-reward-chip[data-kind="xp"] { --icon: var(--icon-star); color: #6d28d9; }
.ff-reward-chip[data-kind="crates"] { --icon: var(--icon-crate); color: #78350f; }
.ff-reward-chip[data-kind="baskets"] { --icon: var(--icon-egg); color: #be185d; }
.ff-reward-chip[data-kind="ocCrates"] { --icon: var(--icon-cog); color: #0f766e; }
.ff-reward-chip[data-kind="pearls"] { color: #6d28d9; }

/* Pearls are drawn as a little pearl rather than a masked icon. */
.ff-reward-chip[data-kind="pearls"]::before {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0 18%, #f3e8ff 35%, #c4b5fd 75%, #8b5cf6);
    -webkit-mask: none;
    mask: none;
}

.ff-bounty-actions {
    display: flex;
    gap: 8px;
}

.ff-bounty-actions button {
    flex: 1;
    min-height: 36px;
    border-color: rgba(80, 50, 20, 0.5);
    background: rgba(59, 42, 20, 0.85);
    color: #fde68a;
}

.ff-bounty-actions button.ff-claim {
    border-color: #15803d;
    background: linear-gradient(180deg, #22c55e, #15803d);
    color: #fff;
}

.ff-bounty-actions .ff-reroll {
    flex: 0 0 40px;
    padding: 0;
}

.ff-bounty-actions .ff-reroll::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: auto;
    background: currentColor;
    -webkit-mask: var(--icon-reroll) center / contain no-repeat;
    mask: var(--icon-reroll) center / contain no-repeat;
}

.ff-bounty-card.claimed {
    filter: saturate(0.4) brightness(0.85);
}

.ff-bounty-card.claimed::after {
    content: "PAID";
    position: absolute;
    top: 42%;
    left: 50%;
    padding: 4px 18px;
    border: 4px solid rgba(21, 128, 61, 0.85);
    border-radius: var(--ff-r-md, 8px);
    color: rgba(21, 128, 61, 0.9);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    transform: translate(-50%, -50%) rotate(-14deg);
}

.ff-bounty-bonus {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1px dashed rgba(255, 181, 71, 0.5);
    border-radius: var(--ff-r-lg, 14px);
    background: rgba(255, 181, 71, 0.06);
}

.ff-bounty-bonus > div {
    flex: 1;
}

.ff-bounty-bonus strong {
    color: var(--lantern);
    font-family: var(--font-display);
}

.ff-bounty-bonus small {
    display: block;
    color: var(--muted);
}

/* Odd Jobs: endless work orders, drawn as dark tickets so they read
   apart from the parchment dailies. */
.ff-odd-jobs {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(94, 234, 212, 0.3);
    border-radius: var(--ff-r-lg, 18px);
    background:
        radial-gradient(500px 160px at 100% 0%, rgba(94, 234, 212, 0.1), transparent 60%),
        rgba(4, 14, 22, 0.55);
}

.ff-odd-jobs header h3 {
    margin: 0;
    color: #5eead4;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.ff-odd-jobs header small {
    color: var(--muted);
    font-size: 0.85rem;
}

.ff-odd-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ff-odd-job {
    --tag: #5eead4;
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto auto auto;
    gap: 10px;
    padding: 16px 14px 14px;
    border: 1px solid color-mix(in srgb, var(--tag) 40%, transparent);
    border-radius: var(--ff-r-lg, 12px);
    background:
        repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, 0.025) 22px 23px),
        linear-gradient(170deg, #12283a, #0b1a27);
    color: var(--text);
}

/* Ticket punch notches. */
.ff-odd-job::before,
.ff-odd-job::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0a1620;
    transform: translateY(-50%);
}

.ff-odd-job::before {
    left: -8px;
    box-shadow: inset -1px 0 0 color-mix(in srgb, var(--tag) 40%, transparent);
}

.ff-odd-job::after {
    right: -8px;
    box-shadow: inset 1px 0 0 color-mix(in srgb, var(--tag) 40%, transparent);
}

.ff-odd-job[data-difficulty="2"] { --tag: #fbbf24; }
.ff-odd-job[data-difficulty="3"] { --tag: #fb7185; }

.ff-odd-tag {
    justify-self: start;
    padding: 1px 10px;
    border-radius: var(--ff-r-pill, 999px);
    background: color-mix(in srgb, var(--tag) 18%, transparent);
    color: var(--tag);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ff-odd-job p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
}

.ff-odd-job .ff-bounty-bar {
    border-color: rgba(94, 234, 212, 0.25);
    background: rgba(94, 234, 212, 0.08);
}

.ff-odd-job .ff-bounty-bar i {
    background: linear-gradient(90deg, #0d9488, #5eead4);
}

.ff-odd-job.complete {
    border-color: #4ade80;
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35), 0 0 22px rgba(74, 222, 128, 0.15);
}

.ff-odd-job.complete .ff-bounty-bar i {
    background: linear-gradient(90deg, #15803d, #4ade80);
}

.ff-odd-job .ff-bounty-rewards {
    justify-content: flex-start;
}

.ff-odd-job .ff-reward-chip {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.ff-odd-job .ff-bounty-actions button {
    border-color: rgba(94, 234, 212, 0.35);
    background: rgba(13, 148, 136, 0.18);
    color: #ccfbf1;
}

.ff-odd-job .ff-bounty-actions button.ff-claim {
    border-color: #15803d;
    background: linear-gradient(180deg, #22c55e, #15803d);
    color: #fff;
}

@media (max-width: 760px) {
    .ff-odd-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ff-bounty-weekly {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(252, 211, 77, 0.5);
    border-radius: var(--ff-r-lg, 18px);
    background:
        radial-gradient(600px 200px at 0% 0%, rgba(252, 211, 77, 0.18), transparent 60%),
        linear-gradient(135deg, #1d2a3a, #0f1d2a);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.ff-bounty-weekly small {
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ff-bounty-weekly p {
    margin: 4px 0 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
}

.ff-bounty-weekly .ff-bounty-bar {
    border-color: rgba(252, 211, 77, 0.3);
    background: rgba(252, 211, 77, 0.1);
}

.ff-bounty-weekly .ff-bounty-bar i {
    background: linear-gradient(90deg, #f59e0b, #fde047);
}

.ff-bounty-weekly .ff-reward-chip {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.ff-bounty-weekly .ff-bounty-rewards {
    justify-content: flex-start;
}

.ff-bounty-weekly .ff-bounty-actions button {
    border-color: var(--line-strong);
    background: var(--panel-2);
    color: var(--text);
}

.ff-bounty-weekly .ff-bounty-actions button.ff-claim {
    border-color: #fde047;
    background: linear-gradient(180deg, #fde047, #ca8a04);
    color: #1c1003;
}


/*==================================================
    Talents
==================================================*/

.ff-talents-modal {
    width: min(1280px, 100%);
}

.ff-talents-modal .book-header {
    align-items: center;
}

.ff-talent-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

#talentPointsLabel {
    border-color: rgba(192, 132, 252, 0.6);
    color: #e9d5ff;
}

.ff-talent-trees {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ff-talent-tree {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 12px;
    border: 1px solid color-mix(in srgb, var(--tree-color) 40%, transparent);
    border-radius: var(--ff-r-lg, 18px);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--tree-color) 14%, transparent), transparent 140px),
        rgba(4, 14, 22, 0.45);
}

.ff-talent-tree.locked {
    opacity: 0.55;
}

.ff-talent-tree header {
    display: grid;
    gap: 2px;
    margin-bottom: 4px;
    text-align: center;
}

.ff-talent-tree header strong {
    color: var(--tree-color);
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.ff-talent-tree header small {
    color: var(--muted);
    font-size: 0.78rem;
}

.ff-talent-tree header em {
    color: var(--text);
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 800;
}

.ff-talent {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 6px 8px;
    align-items: center;
    padding: 10px 10px 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--ff-r-lg, 12px);
    background: rgba(13, 34, 50, 0.85);
}

.ff-talent + .ff-talent::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 2px;
    height: 8px;
    background: color-mix(in srgb, var(--tree-color) 45%, transparent);
}

.ff-talent.has-ranks {
    border-color: color-mix(in srgb, var(--tree-color) 55%, transparent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--tree-color) 18%, transparent);
}

.ff-talent.maxed {
    background: color-mix(in srgb, var(--tree-color) 16%, rgba(13, 34, 50, 0.9));
}

.ff-talent.capstone {
    border-style: dashed;
}

.ff-talent.capstone.has-ranks {
    border-style: solid;
    background:
        radial-gradient(circle at 50% 0, color-mix(in srgb, var(--tree-color) 30%, transparent), transparent 70%),
        rgba(13, 34, 50, 0.9);
}

.ff-talent-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ff-talent-copy strong {
    font-size: 0.9rem;
}

.ff-talent-copy small {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.3;
}

.ff-talent-copy em {
    color: color-mix(in srgb, var(--tree-color) 80%, white);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.ff-talent-pips {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.ff-talent-pips i {
    width: 10px;
    height: 10px;
    border: 1px solid color-mix(in srgb, var(--tree-color) 60%, transparent);
    border-radius: 3px;
    transform: rotate(45deg) scale(0.8);
}

.ff-talent-pips i.on {
    background: var(--tree-color);
    box-shadow: 0 0 6px var(--tree-color);
}

.ff-talent-pips.ff-pips-count {
    color: var(--tree-color);
    font-size: 0.75rem;
    font-weight: 800;
}

.ff-talent button {
    width: 36px;
    min-height: 36px;
    padding: 0;
    border-color: color-mix(in srgb, var(--tree-color) 60%, transparent);
    border-radius: var(--ff-r-md, 10px);
    background: color-mix(in srgb, var(--tree-color) 22%, rgba(13, 34, 50, 0.9));
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
}

.ff-talent .ff-talent-lock {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}


/*==================================================
    Lodge
==================================================*/

.ff-lodge-modal {
    width: min(1180px, 100%);
}

.ff-lodge-modal .book-header {
    align-items: center;
}

.ff-lodge-modal #lodgeCoins {
    margin-left: auto;
}

.ff-lodge-scene {
    position: relative;
    height: 170px;
    margin: 0 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--ff-r-lg, 16px);
    overflow: hidden;
    background: linear-gradient(180deg, #1e3a5f 0%, #3b5f86 52%, #1b4d5f 52%, #0f3443 100%);
}

.ff-lodge-scene svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ff-lodge-locked {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 140px;
    padding: 20px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--ff-r-lg, 16px);
    color: var(--muted);
    text-align: center;
}

.ff-lodge-locked strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.ff-lodge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ff-building {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--ff-r-lg, 16px);
    background: rgba(13, 34, 50, 0.75);
}

.ff-building.maxed {
    border-color: rgba(252, 211, 77, 0.5);
    background:
        radial-gradient(circle at 0 0, rgba(252, 211, 77, 0.14), transparent 60%),
        rgba(13, 34, 50, 0.85);
}

.ff-building-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: var(--ff-r-lg, 14px);
    background: linear-gradient(160deg, var(--building-color, #38bdf8), color-mix(in srgb, var(--building-color, #38bdf8) 40%, #000));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ff-building-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.ff-building-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ff-building-copy strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.ff-building-copy small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.ff-building-levels {
    display: flex;
    gap: 3px;
    margin-top: 2px;
}

.ff-building-levels i {
    flex: 1;
    height: 6px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.ff-building-levels i.on {
    background: var(--building-color, var(--accent));
    box-shadow: 0 0 6px var(--building-color, var(--accent));
}

.ff-building-effects {
    grid-column: 1 / -1;
    display: grid;
    gap: 2px;
    font-size: 0.78rem;
}

.ff-building-effects span {
    color: var(--muted);
}

.ff-building-effects b {
    color: var(--text);
}

.ff-building-effects .ff-next {
    color: var(--good);
}

.ff-building-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
}

.ff-building-actions button {
    flex: 1;
    min-height: 38px;
}

.ff-building-actions .ff-upgrade {
    border-color: rgba(252, 211, 77, 0.6);
    background: linear-gradient(180deg, rgba(252, 211, 77, 0.28), rgba(180, 83, 9, 0.35));
    color: #fef3c7;
}

.ff-farm-stock {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 700;
}

.ff-farm-stock .ff-mini-bar i {
    background: linear-gradient(90deg, #65a30d, #a3e635);
}


/*==================================================
    Weather modal
==================================================*/

.ff-weather-modal {
    width: min(980px, 100%);
}

.ff-weather-now {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--ff-r-lg, 18px);
    overflow: hidden;
    background: linear-gradient(135deg, var(--sky-a, #1e3a5f), var(--sky-b, #0b1f2e));
}

.ff-weather-now .ff-weather-icon {
    width: 84px;
    height: 84px;
    filter: drop-shadow(0 0 16px currentColor);
}

.ff-weather-now h3 {
    margin: 0 0 4px;
    font-size: 1.7rem;
}

.ff-weather-now p {
    margin: 0 0 8px;
    color: rgba(238, 247, 255, 0.85);
}

.ff-effect-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ff-effect-list span {
    padding: 3px 10px;
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(0, 0, 0, 0.28);
    font-size: 0.78rem;
    font-weight: 800;
}

.ff-weather-timer {
    display: grid;
    justify-items: end;
    font-variant-numeric: tabular-nums;
}

.ff-weather-timer small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ff-weather-timer strong {
    font-family: var(--font-display);
    font-size: 1.8rem;
}

.ff-weather-now[data-weather="clear"] { --sky-a: #1d4f7a; --sky-b: #0b2a40; }
.ff-weather-now[data-weather="rain"] { --sky-a: #2b4256; --sky-b: #121f2b; }
.ff-weather-now[data-weather="fog"] { --sky-a: #55636f; --sky-b: #1f2a33; }
.ff-weather-now[data-weather="storm"] { --sky-a: #2a2f45; --sky-b: #0d0f1c; }
.ff-weather-now[data-weather="rainbow"] { --sky-a: #2c6a8f; --sky-b: #3a2f6b; }
.ff-weather-now[data-weather="aurora"] { --sky-a: #0d3b46; --sky-b: #1e1b4b; }
.ff-weather-now[data-weather="meteor"] { --sky-a: #1e1b4b; --sky-b: #050816; }
.ff-weather-now[data-weather="bloodmoon"] { --sky-a: #5f0f1f; --sky-b: #12040a; }
.ff-weather-now[data-weather="heatwave"] { --sky-a: #9a3412; --sky-b: #3b1406; }
.ff-weather-now[data-weather="gale"] { --sky-a: #335b5f; --sky-b: #0f2a2e; }
.ff-weather-now[data-weather="blizzard"] { --sky-a: #64748b; --sky-b: #1e293b; }
.ff-weather-now[data-weather="bioluminescence"] { --sky-a: #0e4a5c; --sky-b: #020617; }
.ff-weather-now[data-weather="sunshower"] { --sky-a: #a16207; --sky-b: #1e3a5f; }
.ff-weather-now[data-weather="eclipse"] { --sky-a: #1e1b4b; --sky-b: #020617; }

.ff-forecast {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ff-forecast-slot {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 1px solid var(--line);
    border-radius: var(--ff-r-lg, 14px);
    background: rgba(13, 34, 50, 0.7);
    text-align: center;
}

.ff-forecast-slot .ff-weather-icon {
    width: 34px;
    height: 34px;
}

.ff-forecast-slot strong {
    font-size: 0.9rem;
}

.ff-forecast-slot small {
    color: var(--muted);
    font-size: 0.74rem;
}

.ff-forecast-slot.locked {
    border-style: dashed;
    color: var(--muted);
}

.ff-forecast-slot.locked .ff-weather-icon {
    -webkit-mask-image: var(--icon-lock);
    mask-image: var(--icon-lock);
    color: var(--muted);
}

.ff-mutation-codex {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ff-codex-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--mutation-color) 40%, transparent);
    border-radius: var(--ff-r-lg, 14px);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--mutation-color) 14%, transparent), transparent),
        rgba(13, 34, 50, 0.6);
}

.ff-codex-entry.unknown {
    filter: grayscale(1);
    opacity: 0.55;
}

.ff-codex-entry i {
    width: 28px;
    height: 28px;
    background: var(--mutation-color);
    -webkit-mask: var(--icon-dna) center / contain no-repeat;
    mask: var(--icon-dna) center / contain no-repeat;
}

.ff-codex-entry strong {
    display: block;
    color: var(--mutation-color);
    font-family: var(--font-display);
}

.ff-codex-entry small {
    color: var(--muted);
    font-size: 0.74rem;
}

.ff-codex-entry b {
    font-family: var(--font-display);
    font-size: 1.15rem;
}


/*==================================================
    What's New
==================================================*/

.ff-whats-new {
    width: min(920px, 100%);
    padding: 0;
    overflow: auto;
}

.ff-whats-new-hero {
    position: relative;
    padding: 34px 32px 26px;
    overflow: hidden;
    background:
        radial-gradient(500px 220px at 85% 0%, rgba(94, 234, 212, 0.35), transparent 60%),
        radial-gradient(400px 200px at 0% 100%, rgba(139, 92, 246, 0.3), transparent 60%),
        linear-gradient(135deg, #0f3b54, #0b1f2e);
}

.ff-whats-new-hero small {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.ff-whats-new-hero h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.ff-whats-new-hero p {
    max-width: 560px;
    margin: 0;
    color: rgba(238, 247, 255, 0.85);
}

.ff-whats-new-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 22px 24px 8px;
}

.ff-whats-new-grid article {
    position: relative;
    display: grid;
    align-content: start;
    gap: 3px;
    min-height: 84px;
    padding: 14px 14px 14px 72px;
    border: 1px solid var(--line);
    border-radius: var(--ff-r-lg, 14px);
    background: rgba(13, 34, 50, 0.6);
}

.ff-whats-new-grid article::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    border-radius: var(--ff-r-lg, 12px);
    background:
        linear-gradient(160deg, rgba(94, 234, 212, 0.3), rgba(56, 189, 248, 0.15));
    -webkit-mask: none;
    mask: none;
}

.ff-whats-new-grid article::after {
    content: "";
    position: absolute;
    top: 23px;
    left: 23px;
    width: 26px;
    height: 26px;
    background: var(--accent);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.ff-whats-new-grid strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.ff-whats-new-grid span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.ff-whats-new-actions {
    display: flex;
    justify-content: center;
    padding: 14px 24px 26px;
}

.ff-whats-new-actions button {
    min-width: 220px;
    min-height: 48px;
    font-size: 1.1rem;
}


/*==================================================
    Responsive
==================================================*/

/* Narrow desktops: the social column becomes a drawer. */
@media (min-width: 761px) and (max-width: 1279px) {
    .game.ff-shell {
        grid-template-columns: var(--rail-width) minmax(0, 1fr);
        grid-template-areas:
            "top top"
            "rail stage";
    }

    .ff-social {
        position: fixed;
        top: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 60;
        width: min(var(--social-width), calc(100vw - 24px));
        padding: 10px;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius);
        background: rgba(8, 22, 34, 0.96);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow);
        transform: translateX(calc(100% + 24px));
        transition: transform 0.28s cubic-bezier(.2, .9, .3, 1);
    }

    .ff-shell[data-social-open="true"] .ff-social {
        transform: none;
    }

    .ff-social-toggle {
        display: block;
    }

    .ff-toasts {
        right: 22px;
    }

    .ff-room,
    .ff-angler-xp small {
        display: none;
    }

    .ff-angler-xp {
        width: 70px;
    }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .ff-brand .sidebar-brand {
        display: none;
    }

    .ff-dock {
        grid-template-columns: minmax(0, 1fr);
    }

    .ff-weather-chip span {
        display: none;
    }

    .ff-talent-trees {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ff-bounty-daily,
    .ff-lodge-grid,
    .ff-mutation-codex {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 761px) and (max-height: 760px) {
    :root {
        --topbar-height: 58px;
    }

    .ff-rail button {
        min-height: 48px;
        font-size: 0.6rem;
    }

    .ff-rail button::before {
        width: 20px;
        height: 20px;
    }

    .ff-dock .cast-button,
    .ff-dock .storage-access-button {
        min-height: 60px;
    }
}

/* Phones */
@media (max-width: 760px) {
    :root {
        --topbar-height: auto;
    }

    .fish-room-active .game.ff-shell {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: 100dvh;
        padding: 8px 8px calc(64px + env(safe-area-inset-bottom));
        overflow: hidden;
        background: transparent;
    }

    .ff-shell .mobile-game-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line-strong);
        background: rgba(6, 18, 28, 0.96);
        backdrop-filter: blur(10px);
    }

    .ff-shell .mobile-game-nav [data-mobile-view="top"] {
        display: none;
    }

    .ff-shell .mobile-game-nav button {
        min-height: 46px;
        border: none;
        background: transparent;
        color: var(--muted);
        font-family: var(--font-display);
        font-size: 0.95rem;
        box-shadow: none;
    }

    .ff-shell .mobile-game-nav button.active {
        color: var(--accent);
        background: rgba(94, 234, 212, 0.1);
    }

    .ff-topbar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px;
    }

    .ff-brand,
    .ff-room,
    .ff-topbar-spacer,
    .ff-social-toggle,
    .ff-angler-xp {
        display: none;
    }

    .ff-topbar .zone-bar {
        order: 5;
        flex: 1 1 100%;
        height: 40px;
    }

    .ff-weather-chip {
        flex: 1 1 auto;
        min-height: 42px;
    }

    .ff-angler-badge,
    .ff-wallet.wallet {
        min-height: 42px;
    }

    .ff-wallet span {
        font-size: 0;
    }

    .ff-wallet strong {
        font-size: 1.1rem;
    }

    .ff-rail,
    .ff-social {
        display: none;
    }

    .ff-stage.pond-column {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    .ff-shell .pond-scene {
        flex: 0 0 auto;
        height: 46vh;
        min-height: 240px;
    }

    .ff-dock {
        grid-template-columns: minmax(0, 1fr);
    }

    .ff-dock .cast-control-row {
        order: -1;
    }

    .ff-dock .cast-button,
    .ff-dock .storage-access-button {
        min-height: 62px;
    }

    .ff-shell .pond-scene .minigame {
        bottom: 8%;
        width: 94%;
        padding: 8px 10px 10px;
    }

    .ff-pond-hud-left .streak-display small {
        display: none;
    }

    .ff-pond-trackers {
        display: none;
    }

    /* Menu view: the rail becomes a full-screen grid. */
    .ff-shell[data-mobile-view="left"] .ff-rail {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-content: start;
        flex: 1 1 auto;
        gap: 8px;
        overflow-y: auto;
    }

    .ff-shell[data-mobile-view="left"] .ff-rail-group {
        display: contents;
    }

    .ff-shell[data-mobile-view="left"] .ff-rail button {
        min-height: 82px;
        border: 1px solid var(--line);
        background: var(--panel-2);
        color: var(--text);
        font-size: 0.82rem;
    }

    .ff-shell[data-mobile-view="left"] .ff-rail button::before {
        width: 30px;
        height: 30px;
    }

    .ff-shell[data-mobile-view="left"] .ff-stage,
    .ff-shell[data-mobile-view="right"] .ff-stage {
        display: none;
    }

    .ff-shell[data-mobile-view="right"] .ff-social {
        display: flex;
        flex: 1 1 auto;
    }

    .ff-toasts {
        top: auto;
        bottom: 76px;
        right: 12px;
    }

    .ff-bounty-daily,
    .ff-lodge-grid,
    .ff-talent-trees,
    .ff-mutation-codex,
    .ff-whats-new-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ff-forecast {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ff-bounty-weekly,
    .ff-weather-now {
        grid-template-columns: minmax(0, 1fr);
    }

    .ff-weather-now .ff-weather-icon {
        width: 56px;
        height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-logo,
    .ff-points-dot,
    .ff-dock .cast-button {
        animation: none !important;
    }

    .ff-mutation-splash,
    .ff-level-banner,
    .ff-xp-float {
        animation-duration: 0.01s !important;
    }
}


/* Late fixes */

.ff-primary:disabled {
    border-color: var(--line);
    background: rgba(125, 196, 235, 0.08);
    color: var(--muted);
    box-shadow: none;
}

.ff-bounty-bonus .ff-reward-chip,
.ff-bounty-weekly .ff-reward-chip {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.ff-bounty-bonus .ff-reward-chip[data-kind="xp"],
.ff-bounty-weekly .ff-reward-chip[data-kind="xp"] { color: #d8b4fe; }
.ff-bounty-bonus .ff-reward-chip[data-kind="coins"],
.ff-bounty-weekly .ff-reward-chip[data-kind="coins"] { color: var(--gold); }
.ff-bounty-bonus .ff-reward-chip[data-kind="baskets"],
.ff-bounty-weekly .ff-reward-chip[data-kind="baskets"] { color: #f9a8d4; }
.ff-bounty-bonus .ff-reward-chip[data-kind="crates"],
.ff-bounty-weekly .ff-reward-chip[data-kind="crates"] { color: #fdba74; }
.ff-bounty-bonus .ff-reward-chip[data-kind="ocCrates"],
.ff-bounty-weekly .ff-reward-chip[data-kind="ocCrates"] { color: #5eead4; }

.ff-bounty-tracker {
    transition: opacity 0.2s;
}

/* Catalog cards in the Tides palette; evolved is a gold edge, not a gold slab. */
.catalog-card {
    border-color: var(--line);
    border-radius: var(--ff-r-lg, 12px);
    background:
        linear-gradient(160deg, rgba(30, 72, 102, 0.32), rgba(8, 22, 34, 0.92));
}

.catalog-card.evolved-fish {
    border-color: rgba(252, 211, 77, 0.45);
    background:
        radial-gradient(circle at 92% 8%, rgba(252, 211, 77, 0.2), transparent 40%),
        linear-gradient(160deg, rgba(60, 52, 24, 0.45), rgba(8, 22, 34, 0.94));
    box-shadow: inset 0 0 0 1px rgba(252, 211, 77, 0.08);
}

.catalog-card.shiny-cataloged {
    background:
        linear-gradient(160deg, #10283a, #0a1b28) padding-box,
        linear-gradient(90deg, #ff5f6d, #ffc371, #7bed9f, #70a1ff, #c56cf0, #ff5f6d) border-box;
    background-size: 100% 100%, 240% 100%;
}

.catalog-card.evolved-fish.shiny-cataloged {
    background:
        linear-gradient(160deg, #2b2914, #0a1b28) padding-box,
        linear-gradient(90deg, #ff5f6d, #ffc371, #7bed9f, #70a1ff, #c56cf0, #ff5f6d) border-box;
    background-size: 100% 100%, 240% 100%;
}

.catalog-card .evolved-label {
    color: var(--gold);
}

.stat-tile {
    border-radius: var(--ff-r-lg, 12px);
    border-color: var(--line);
    background: rgba(13, 34, 50, 0.7);
}

/* Undo the old fixed-position phone layout from style.css; the Tides
   phone layout is a normal scrolling column. */
@media (max-width: 760px) {
    .fish-room-active .ff-shell .pond-scene,
    .fish-room-active .ff-shell .center-view-panel,
    .fish-room-active .ff-shell .cast-control-row {
        position: relative;
        inset: auto;
        z-index: auto;
        margin: 0;
    }

    .fish-room-active .ff-shell .pond-scene {
        width: 100%;
        border-inline: 1px solid var(--line-strong);
    }

    .fish-room-active .ff-shell .center-view-panel {
        height: auto;
        min-height: 60vh;
    }

    .fish-room-active .ff-shell .cast-control-row {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
        gap: 6px;
    }

    .fish-room-active .ff-shell .pond-scene .minigame {
        position: absolute;
        right: auto;
        left: 50%;
        bottom: 8%;
    }

    .fish-room-active .ff-shell .pond-scene .result-banner,
    .fish-room-active .ff-shell .pond-scene .bait-notice {
        position: absolute;
        right: auto;
        left: 50%;
        max-width: 92%;
        font-size: 0.82rem;
    }

    .fish-room-active .ff-shell .pond-scene .result-banner {
        top: 10px;
        bottom: auto;
    }

    .fish-room-active .ff-shell .pond-scene .bait-notice {
        top: auto;
        bottom: 10px;
    }

    .fish-room-active .ff-shell .ff-dock-tackle {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .ff-pond-hud-left .pond-clock {
        font-size: 0.82rem;
        padding: 5px 9px;
    }

    .ff-shell .pond-streak-display {
        top: 10px;
        right: 10px;
    }
}

.ff-fisher-level {
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(139, 92, 246, 0.25);
    color: #e9d5ff;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 800;
    vertical-align: middle;
}

@media (min-width: 761px) and (max-height: 820px) {
    .ff-rail button {
        min-height: 46px;
        font-size: 0.6rem;
    }

    .ff-rail button::before {
        width: 20px;
        height: 20px;
    }
}

.aquarium-fish.ff-mutated .fish-icon-image {
    filter: drop-shadow(0 0 6px var(--mutation-color)) drop-shadow(0 0 2px var(--mutation-color));
}



/*==================================================
    Push Past Your Limits
    Past Level 100, XP keeps earning Limit points.
    Once every talent is maxed they push talents
    further, 5% of max each.
==================================================*/

.ff-limit-panel {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    padding: 12px 16px;
    border: 1px dashed rgba(251, 113, 133, 0.45);
    border-radius: var(--ff-r-lg, 16px);
    background: rgba(4, 14, 22, 0.45);
}

.ff-limit-panel.open {
    border-style: solid;
    border-color: rgba(251, 113, 133, 0.7);
    background:
        linear-gradient(100deg, rgba(244, 63, 94, 0.22), rgba(192, 132, 252, 0.16) 55%, rgba(4, 14, 22, 0.4)),
        rgba(4, 14, 22, 0.5);
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.18), inset 0 0 18px rgba(251, 113, 133, 0.08);
}

.ff-limit-copy {
    display: grid;
    gap: 3px;
    flex: 1 1 320px;
    min-width: 0;
}

.ff-limit-copy strong {
    color: #fda4af;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    text-shadow: 0 0 12px rgba(244, 63, 94, 0.45);
}

.ff-limit-copy small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.ff-limit-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ff-limit-stats > span {
    padding: 4px 10px;
    border: 1px solid rgba(251, 113, 133, 0.4);
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(244, 63, 94, 0.12);
    color: #fecdd3;
    font-size: 0.76rem;
    font-weight: 700;
}

.ff-limit-stats b {
    color: #fff;
}

.ff-limit-stats .ff-limit-next {
    position: relative;
    overflow: hidden;
    min-width: 190px;
    text-align: center;
}

.ff-limit-next i {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.45), rgba(192, 132, 252, 0.45));
}

.ff-limit-next em {
    position: relative;
    font-style: normal;
}

#talentPointsLabel.ff-limit-pill {
    border-color: rgba(251, 113, 133, 0.7);
    background: rgba(244, 63, 94, 0.16);
    color: #fecdd3;
}

.ff-talent.pushed {
    border-color: rgba(251, 113, 133, 0.75);
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.25), inset 0 0 12px rgba(244, 63, 94, 0.1);
}

.ff-limit-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 0 7px;
    border-radius: var(--ff-r-pill, 999px);
    background: linear-gradient(90deg, #f43f5e, #c084fc);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    vertical-align: 1px;
}

.ff-talent-copy .ff-limit-next-step {
    color: #fda4af;
    font-size: 0.68rem;
    font-weight: 700;
}
