.bosses-page main {
    background:
        radial-gradient(circle at 12% 8%, rgba(249, 212, 35, .14), transparent 28%),
        radial-gradient(circle at 82% 0%, rgba(168, 85, 247, .13), transparent 30%),
        var(--surface-subtle);
}

.bosses-hero,
.bosses-panel,
.boss-section,
.boss-empty {
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--card-bg) 92%, transparent);
    color: var(--card-color);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.bosses-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: clamp(22px, 4vw, 38px);
    border-radius: 24px;
    margin-bottom: 18px;
}

.bosses-eyebrow,
.boss-section-kicker {
    margin: 0 0 6px;
    color: #d99904;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .76rem;
}

.bosses-hero h1,
.boss-section h2 {
    margin: 0;
    font-weight: 900;
}

.bosses-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--text-secondary);
}

.bosses-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 10px;
}

.bosses-hero-stats span {
    display: grid;
    gap: 2px;
    min-width: 110px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--surface-subtle);
    color: var(--text-muted);
    text-align: center;
}

.bosses-hero-stats strong {
    color: var(--card-color);
    font-size: 1.6rem;
}
.bosses-hero-stats small {
    font-size: .82rem;
    font-weight: 800;
}

.bosses-tools {
    position: sticky;
    top: 76px;
    z-index: 8;
    transition: transform .22s ease, opacity .22s ease;
    will-change: transform;
}

.bosses-tools.is-hidden {
    transform: translateY(calc(-100% - 84px));
    opacity: 0;
    pointer-events: none;
}

.bosses-tools.is-floating .bosses-panel {
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.bosses-panel {
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 16px;
    backdrop-filter: blur(12px);
}

.bosses-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(160px, 1fr));
    gap: 12px;
}

.bosses-filter-grid label {
    display: grid;
    gap: 5px;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.bosses-filter-grid .form-control,
.bosses-filter-grid .form-select {
    min-height: 42px;
    background: var(--input-bg);
    color: var(--input-color);
    border-color: var(--border-color);
    font-weight: 700;
}

.bosses-filter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    color: var(--text-muted);
    font-weight: 800;
}

.bosses-index {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 14px;
    margin-bottom: 8px;
}

.bosses-index a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--card-color);
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}
.boss-index-avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249, 212, 35, .34), rgba(168, 85, 247, .28));
    border: 1px solid rgba(249, 212, 35, .28);
}
.boss-index-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.boss-index-avatar em {
    position: absolute;
    font-style: normal;
    font-size: .68rem;
    font-weight: 900;
    color: var(--card-color);
}
.boss-index-avatar img:not([hidden]) + em {
    display: none;
}

.bosses-index strong {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(249, 212, 35, .18);
    color: #a16207;
    font-size: .75rem;
}

.bosses-list {
    display: grid;
    gap: 18px;
}

.boss-section {
    border-radius: 22px;
    padding: clamp(16px, 2.5vw, 24px);
}

.boss-section-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}
.boss-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.boss-portrait {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px solid rgba(249, 212, 35, .28);
    border-radius: 20px;
    background:
        radial-gradient(circle at 30% 20%, rgba(249, 212, 35, .30), transparent 38%),
        linear-gradient(135deg, rgba(15, 23, 42, .08), rgba(168, 85, 247, .22));
}
.boss-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.boss-portrait span {
    position: absolute;
    display: inline-grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--card-color);
    font-size: 1.25rem;
    font-weight: 950;
}
.boss-portrait img:not([hidden]) + span {
    display: none;
}

.boss-section-count {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(59, 130, 246, .12);
    color: #2563eb;
    font-weight: 900;
}

.boss-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.boss-item-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--card-bg);
    color: var(--card-color);
}

.boss-item-card::before {
    content: '';
    position: absolute;
    inset: -55px -45px auto auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(249, 115, 22, .13);
    filter: blur(10px);
}

.boss-item-head {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.boss-item-head > div:last-child {
    min-width: 0;
}

.boss-item-image {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface-subtle);
    border: 1px solid var(--border-color);
}

.boss-item-image img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(15, 23, 42, .24));
}

.boss-item-image span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 950;
}

.boss-item-image img:not([hidden]) + span {
    display: none;
}

.boss-item-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.boss-item-meta,
.boss-item-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.boss-item-meta span,
.boss-item-chips span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--surface-subtle);
    color: var(--text-secondary);
    font-size: .75rem;
    font-weight: 800;
}

.boss-item-chips small {
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 900;
}

.boss-item-chips .boss-chip-source {
    background: rgba(168, 85, 247, .12);
    color: #7c3aed;
}

.boss-item-stats {
    position: relative;
    display: grid;
    gap: 7px;
}

.boss-item-stats div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 11px;
    background: var(--surface-subtle);
    min-width: 0;
}

.boss-item-stats span {
    color: var(--text-muted);
    min-width: 0;
    overflow-wrap: anywhere;
}

.boss-item-stats strong {
    min-width: 0;
    max-width: 100%;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
    color: var(--card-color);
}

.boss-item-bonus {
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid rgba(34, 197, 94, .35);
    border-radius: 14px;
    background: rgba(34, 197, 94, .09);
}

.boss-item-bonus strong {
    color: #15803d;
}

.boss-recommend {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 2px;
}
.boss-recommend small {
    color: var(--text-muted);
    font-weight: 900;
}
.boss-recommend span {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .12);
    color: #2563eb;
    font-size: .72rem;
    font-weight: 900;
}

.boss-empty {
    margin-top: 18px;
    padding: 28px;
    border-style: dashed;
    border-radius: 18px;
    color: var(--text-muted);
    text-align: center;
}

[data-theme="dark"] .bosses-page main {
    background:
        radial-gradient(circle at 12% 8%, rgba(249, 212, 35, .08), transparent 28%),
        radial-gradient(circle at 82% 0%, rgba(168, 85, 247, .10), transparent 30%),
        #111827;
}

[data-theme="dark"] .bosses-index strong { color: #facc15; }
[data-theme="dark"] .boss-section-count { color: #93c5fd; }
[data-theme="dark"] .boss-item-chips .boss-chip-source { color: #c4b5fd; }
[data-theme="dark"] .boss-item-bonus strong { color: #86efac; }

@media (max-width: 960px) {
    .bosses-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .bosses-hero,
    .boss-section-header,
    .bosses-filter-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .bosses-hero-stats,
    .bosses-filter-grid {
        grid-template-columns: 1fr;
    }
    .bosses-panel {
        position: static;
    }
    .bosses-tools {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .boss-items-grid {
        grid-template-columns: 1fr;
    }
    .boss-title-wrap {
        align-items: flex-start;
    }
    .boss-portrait {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }
    .boss-item-head {
        align-items: flex-start;
    }
    .boss-item-image {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    .boss-item-image img {
        width: 54px;
        height: 54px;
    }
    .boss-item-stats div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .boss-item-stats strong {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .bosses-page main {
        padding-left: 10px;
        padding-right: 10px;
    }
    .bosses-hero h1 {
        font-size: clamp(1.8rem, 11vw, 2.55rem);
        line-height: 1.05;
    }
    .bosses-panel,
    .boss-card,
    .boss-item-card {
        border-radius: 16px;
    }
    .bosses-panel,
    .boss-card {
        padding: 12px;
    }
    .bosses-index {
        grid-template-columns: 1fr;
    }
    .boss-title-wrap,
    .boss-item-head {
        gap: 10px;
    }
    .boss-portrait {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }
    .boss-item-card {
        padding: 12px;
    }
    .boss-item-image {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }
    .boss-item-image img {
        width: 48px;
        height: 48px;
    }
    .boss-card h2,
    .boss-item-card h3,
    .boss-item-meta span,
    .boss-item-chips span {
        overflow-wrap: anywhere;
    }
}
