/* ==========================================================================
   Feature-module UI kit (Homestead, Spells, Recycle, Garden, Spire, Bounties...)
   ========================================================================== */

/* Progressive dock */
.dock-btn.feature-hidden {
    display: none;
}

.dock-btn.feature-locked {
    opacity: 0.55;
    filter: grayscale(0.8);
    border-style: dashed;
}

.dock-btn.feature-locked::after {
    content: '🔒';
    position: absolute;
    top: -7px;
    right: -6px;
    font-size: 11px;
}

.dock-btn.feature-new {
    animation: dockPulse 0.9s ease-in-out infinite alternate;
    border-color: var(--accent-gold);
}

@keyframes dockPulse {
    from { box-shadow: 0 0 0 rgba(250, 204, 21, 0); }
    to { box-shadow: 0 0 16px rgba(250, 204, 21, 0.85); transform: translateY(-2px); }
}

/* Feature unlock fanfare */
.fanfare-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.72);
    animation: fadeIn 0.25s ease;
}

.fanfare-card {
    position: relative;
    overflow: hidden;
    width: min(420px, 90vw);
    text-align: center;
    padding: 26px 24px 20px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.25), rgba(30, 41, 59, 0.98) 60%);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 40px rgba(250, 204, 21, 0.35), 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: fanfarePop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.fanfare-rays {
    position: absolute;
    inset: -50%;
    background: repeating-conic-gradient(rgba(250, 204, 21, 0.08) 0deg 10deg, transparent 10deg 20deg);
    animation: spin 18s linear infinite;
    pointer-events: none;
}

.fanfare-kicker {
    position: relative;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fde68a;
}

.fanfare-icon {
    position: relative;
    font-size: 64px;
    margin: 8px 0 4px;
    filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.6));
    animation: bob 1.6s ease-in-out infinite;
}

.fanfare-title {
    position: relative;
    font-size: 22px;
    color: #fff;
    margin-bottom: 6px;
}

.fanfare-desc {
    position: relative;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 16px;
}

.fanfare-ok {
    position: relative;
}

@keyframes fanfarePop {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Generic system drawer */
/* System drawers use the shared fixed-height dw-drawer frame (size set there) */

.sys-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.sys-tab {
    background: rgba(51, 65, 85, 0.7);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.sys-tab.active {
    background: #2563eb;
    border-color: #60a5fa;
}

.sys-tab:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sys-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.sys-kpi {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 8px 11px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sys-kpi span {
    font-size: 11px;
    color: var(--text-muted);
}

.sys-kpi strong {
    font-size: 16px;
    color: var(--accent-gold);
}

.sys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}

.sys-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sys-card.highlight {
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.2);
}

.sys-card.done {
    border-color: rgba(74, 222, 128, 0.6);
}

.sys-card.locked {
    opacity: 0.5;
}

.sys-card h4 {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sys-card h4 .sys-lvl {
    margin-left: auto;
    font-size: 11px;
    color: var(--accent-blue);
}

.sys-desc {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

.sys-effect {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 700;
}

.sys-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.sys-cost {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.8);
}

.sys-cost.ok {
    color: #bbf7d0;
}

.sys-cost.short {
    color: #fca5a5;
}

.sys-btn {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.sys-btn.gold {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #0f172a;
}

.sys-btn.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.sys-btn.ghost {
    background: rgba(51, 65, 85, 0.85);
}

.sys-btn:disabled {
    background: #334155;
    color: #64748b;
    cursor: not-allowed;
}

.sys-bar {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.sys-bar > div {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, #22c55e, #a3e635);
}

.sys-bar.gold > div {
    background: linear-gradient(90deg, #eab308, #fde047);
}

.sys-bar.blue > div {
    background: linear-gradient(90deg, #0ea5e9, #67e8f9);
}

.sys-bar > span {
    position: relative;
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    line-height: 13px;
    text-shadow: 0 1px 2px #000;
}

.sys-note {
    font-size: 11px;
    color: var(--text-muted);
    margin: 8px 0;
    line-height: 1.4;
}

.sys-section-title {
    font-size: 13px;
    font-weight: 900;
    color: #e2e8f0;
    margin: 14px 0 8px;
}

/* Spell hotbar HUD (sits just above the bottom dock) */
#spell-hotbar {
    position: fixed;
    left: 50%;
    bottom: calc(var(--dock-h, 150px) + 10px);
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.hotbar-slot {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 2px solid var(--slot-color, #475569);
    background: rgba(15, 23, 42, 0.88);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.hotbar-slot.ready {
    box-shadow: 0 0 14px var(--slot-color), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.hotbar-slot.locked {
    opacity: 0.45;
    border-style: dashed;
}

.hb-icon {
    position: relative;
    z-index: 1;
    font-size: 26px;
}

.hb-key {
    position: absolute;
    z-index: 3;
    left: 4px;
    top: 2px;
    font-size: 10px;
    font-weight: 900;
    color: #e2e8f0;
}

.hb-cd {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px #000;
    background: conic-gradient(rgba(2, 6, 23, 0.72) var(--cd, 0deg), transparent var(--cd, 0deg));
}

/* Elite & Golden nameplates */
.monster-plate.elite-plate .m-name {
    color: #fdba74;
    text-shadow: 0 0 6px rgba(249, 115, 22, 0.8);
}

.monster-plate.golden-plate .m-name {
    color: #fde047;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.95);
    animation: goldenFlash 0.6s ease-in-out infinite alternate;
}

.monster-plate.golden-plate .m-hp-fill {
    background: linear-gradient(90deg, #eab308, #fef08a) !important;
}

.m-escape {
    color: #fca5a5;
    font-weight: 900;
}

@keyframes goldenFlash {
    from { filter: brightness(1); }
    to { filter: brightness(1.5); }
}

/* Greenhouse plot grid */
/* Sized so a full 3x3 / 4x4 garden fits the fixed drawer frame without scrolling */
.gh-grid {
    display: grid;
    gap: 6px;
    max-width: 300px;
    margin: 6px auto 0;
}

.gh-plot {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 2px solid #78350f;
    background: radial-gradient(circle at 50% 60%, #57361b, #2b1a0c);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gh-plot small {
    font-size: 10px;
    font-weight: 800;
    color: #e2e8f0;
    margin-top: 2px;
}

.gh-plot.empty small {
    color: #a8a29e;
}

.gh-plot.can-plant {
    border-color: #4ade80;
    border-style: dashed;
}

.gh-plot.growing i {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background: #4ade80;
}

.gh-plot.bloom {
    border-color: #f9a8d4;
    box-shadow: 0 0 16px rgba(249, 168, 212, 0.75) inset, 0 0 12px rgba(249, 168, 212, 0.6);
    animation: dockPulse 0.9s ease-in-out infinite alternate;
}

.gh-plot.mature {
    border-color: #facc15;
}

.gh-sprout {
    display: inline-block;
    transition: transform 0.3s;
}

/* Compact dock: as features unlock the dock stays two tidy rows */
#bottom-dock .dock-buttons {
    flex-wrap: wrap;
    max-width: min(940px, 70vw);
    gap: 6px;
}

/* Phones: the vitals wrap above the buttons, so the buttons can use the full width */
@media (max-width: 720px) {
    #bottom-dock .dock-buttons {
        max-width: none;
    }
}

#bottom-dock .dock-btn {
    padding: 7px 10px;
    font-size: 12px;
}

/* Unspent talent points nudge */
.dock-btn.talent-nudge {
    border-color: var(--accent-gold);
    animation: dockPulse 1.1s ease-in-out infinite alternate;
}

/* Extra features bundled into one fanfare card */
.fanfare-extra {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.fanfare-extra > span {
    font-size: 28px;
}

.fanfare-extra b {
    font-size: 13px;
    color: #fff;
}

.fanfare-extra p {
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.35;
}

/* Boot helpers (js/boot.js): version stamp, update notice, crash report panel */
.version-stamp {
    position: fixed;
    right: 6px;
    bottom: 2px;
    z-index: 41;
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.55;
    pointer-events: none;
}

.boot-notice {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    width: min(520px, calc(100vw - 24px));
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-panel);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
    color: var(--text-main);
    font-size: 13px;
}

.update-notice {
    top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border: 1px solid var(--accent-blue);
}

.update-notice span {
    flex: 1 1 200px;
}

.crash-panel {
    top: 30%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--accent-red);
}

.crash-panel strong {
    color: var(--accent-red);
    font-size: 15px;
}

.crash-panel p {
    color: #cbd5e1;
    line-height: 1.4;
}

.crash-count:empty {
    display: none;
}

.boot-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.boot-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.boot-btn.primary {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.boot-report-text {
    width: 100%;
    height: 140px;
    font: 11px monospace;
    background: rgba(2, 6, 23, 0.9);
    color: #cbd5e1;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px;
    user-select: text;
}

/* ⚙️ Settings drawer (js/ui/settings.js) */
.set-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.set-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.set-opt {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: rgba(51, 65, 85, 0.6);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.set-opt:hover {
    filter: brightness(1.2);
}

.set-opt.active {
    border-color: var(--accent-blue);
    background: rgba(2, 132, 199, 0.35);
}

.set-subhead {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.set-paste {
    width: 100%;
    height: 54px;
    resize: none;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: rgba(2, 6, 23, 0.7);
    color: #cbd5e1;
    font: 11px monospace;
    user-select: text;
}

/* Reduce motion (js/settings.js toggles body.reduce-motion from the OS setting or the player's choice).
   Flashes and camera shake are skipped in JS; this stops pulsing/bouncing CSS animations and slides. */
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Phones (portrait, or landscape with little height): the dock buttons become one row that scrolls sideways,
   and the skill tickers one row too, so the HUD leaves room to see the fight. */
@media (max-width: 720px), (max-height: 500px) {
    #bottom-dock {
        left: 6px;
        right: 6px;
        bottom: 6px;
        width: auto;
        padding: 6px 8px;
        gap: 8px;
    }

    #bottom-dock .dock-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: none;
        padding-top: 8px; /* room for the nav badges, which sit above each button */
        scrollbar-width: none;
    }

    #bottom-dock .dock-buttons::-webkit-scrollbar {
        display: none;
    }

    #bottom-dock .dock-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* The right stack may only take the room beside the zone panel; its rows scroll or wrap inside it */
    .hud-right-stack {
        flex: 1 1 0;
        min-width: 0;
    }

    .resource-bar {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px;
        padding: 6px 8px;
    }

    .passive-tickers-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        max-width: 100%;
        scrollbar-width: none;
    }

    body #dev-panel-btn {
        bottom: calc(var(--dock-h, 70px) + 6px); /* the base rule further down would win otherwise */
    }

    .passive-tickers-row::-webkit-scrollbar {
        display: none;
    }

    .mini-skill-pill {
        flex: 0 0 auto;
    }
}

/* Landscape phones: vitals and buttons share one row */
@media (max-height: 500px) {
    #bottom-dock {
        flex-wrap: nowrap;
    }

    #bottom-dock .level-badge {
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* Dev Commands panel */
#dev-panel-btn {
    position: fixed;
    left: 12px;
    bottom: 14px;
    z-index: 40;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.85);
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
}

#dev-panel-btn:hover {
    opacity: 1;
}

#dev-panel {
    position: fixed;
    left: 12px;
    bottom: 60px;
    z-index: 45;
    width: min(440px, calc(100vw - 24px));
    max-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    font-size: 12px;
}

#dev-panel * {
    user-select: text;
}

.dev-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.dev-head span {
    flex: 1;
    color: var(--text-muted);
    font-size: 11px;
}

.dev-head kbd,
.dev-head code {
    background: #1e293b;
    border-radius: 4px;
    padding: 0 4px;
}

.dev-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
}

.dev-filter {
    margin: 8px 12px 0;
    padding: 6px 9px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: #0b1220;
    color: var(--text-main);
}

.dev-output {
    margin: 8px 12px 0;
    padding: 8px;
    max-height: 160px;
    overflow: auto;
    background: #020617;
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    color: #a5f3fc;
    font-size: 11px;
    white-space: pre-wrap;
}

.dev-list {
    overflow-y: auto;
    padding: 4px 12px 12px;
}

.dev-group-title {
    font-weight: 900;
    margin: 10px 0 6px;
    color: #e2e8f0;
}

.dev-cmd {
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: 9px;
    padding: 7px 9px;
    margin-bottom: 6px;
}

.dev-cmd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dev-cmd code {
    color: #fde68a;
    font-weight: 700;
}

.dev-desc {
    color: #cbd5e1;
    margin-top: 3px;
}

.dev-args {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.dev-arg {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-muted);
    font-size: 10px;
}

.dev-arg input,
.dev-arg select,
.dev-arg textarea {
    background: #0b1220;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 12px;
    max-width: 220px;
}

.dev-arg input[type='number'] {
    width: 100px;
}

.dev-arg-wide,
.dev-arg-wide textarea {
    width: 100%;
    max-width: none;
}

.dev-run {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 4px 12px;
    font-weight: 900;
    cursor: pointer;
}

.dev-run.danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

/* Zone exhibit tags step back when a monster nameplate is beneath them */
.structure-label.crowded {
    opacity: 0.25;
    transition: opacity 0.2s;
}

/* Stage-progress chest markers on the quota bar */
#quota-chest-markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Thin gold notches behind the quota text (icons sat on top of the label and garbled it) */
.quota-chest {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    font-size: 0;
    background: linear-gradient(180deg, #fde047, #f59e0b);
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.8);
    opacity: 0.85;
}

.quota-chest.opened {
    background: #4ade80;
    box-shadow: none;
    opacity: 0.45;
}

#quota-bar-text {
    z-index: 1;
}

/* Game feel (js/feel.js): HUD number bump, celebration/damage vignette, sound toggle */
.hud-bump {
    animation: hudBump 0.18s ease-out;
}

@keyframes hudBump {
    40% {
        transform: scale(1.12);
    }
}

#screen-flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
}

#screen-flash.flash-gold,
#screen-flash.flash-red,
#screen-flash.flash-white {
    animation: screenFlash 0.55s ease-out;
}

#screen-flash.flash-gold {
    background: radial-gradient(ellipse at center, transparent 45%, rgba(250, 204, 21, 0.38));
}

#screen-flash.flash-red {
    background: radial-gradient(ellipse at center, transparent 40%, rgba(239, 68, 68, 0.5));
}

#screen-flash.flash-white {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.15));
}

@keyframes screenFlash {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.btn-hud-icon {
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

.btn-hud-icon:hover {
    border-color: rgba(148, 163, 184, 0.6);
}

/* AFK Forecast: "also while away" lines under the efficiency breakdown */
.fc-also-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 8px 0;
}

.fc-also {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Locked teaser buttons only show their padlock, not stray counters */
.dock-btn.feature-locked .nav-badge {
    display: none;
}

/* Next-unlock goal tracker under the quota bar */
#next-unlock {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 15px;
    font-size: 11px;
    color: #e2e8f0;
    margin-bottom: 4px;
}

/* Keep the row's space when there's nothing to chase, so the zone panel never changes height */
#next-unlock.hidden {
    visibility: hidden;
}

#next-unlock .nu-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#next-unlock b {
    color: #fde68a;
}

#next-unlock .nu-bar {
    flex: 0 0 36px;
    height: 6px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.8);
    overflow: hidden;
}

#next-unlock .nu-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #eab308, #fde047);
}

/* Scout Expeditions */
/* Destinations are filtered to one world at a time (≤ 8 stages), so no inner scroll box is needed */
.scout-dests {
    gap: 4px;
}

.scout-log {
    font-size: 11px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 5px 8px;
    margin-bottom: 4px;
}

.scout-log.rare {
    border-color: var(--accent-gold);
    background: rgba(250, 204, 21, 0.1);
    color: #fef08a;
}
