.boss-detail-page {
    width: min(1200px, 100%);
    min-height: 80vh;
    margin: 0 auto;
    padding: 24px;
    background: var(--bg-slate-100-a60);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
}

.boss-detail-page * { box-sizing: border-box; }
.boss-detail-page h1,
.boss-detail-page h2,
.boss-detail-page h3,
.boss-detail-page p,
.boss-detail-page dl,
.boss-detail-page dd { margin: 0; }
.boss-detail-page a { -webkit-tap-highlight-color: transparent; }

.boss-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.boss-detail-page :focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 4px;
}

.boss-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .05);
    transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.boss-detail-back:hover { color: var(--site-accent); border-color: #bfdbfe; transform: translateX(-2px); }
.boss-detail-back svg { width: 19px; height: 19px; }
.boss-detail-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #94a3b8; font-size: 13px; }
.boss-detail-crumbs a { color: #64748b; text-decoration: none; }
.boss-detail-crumbs a:hover { color: var(--site-accent); }
.boss-detail-crumbs [aria-current="page"] { color: #334155; font-weight: 700; }

.boss-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "rewards info";
    gap: 24px;
    align-items: start;
}

.boss-rewards {
    grid-area: rewards;
    min-width: 0;
    padding: 24px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 20px;
}
.boss-rewards__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.boss-rewards__header h2 { color: #1e293b; font-size: 22px; line-height: 1.25; }
.boss-rewards__cost { display: inline-flex; align-items: center; gap: 5px; color: #475569; font-size: 12px; font-weight: 700; white-space: nowrap; }
.boss-rewards__cost img,
.boss-rewards__cost .boss-detail-image-empty { width: 18px; height: 18px; }
.boss-rewards__note { margin-top: 6px !important; color: #94a3b8; font-size: 12px; }
.boss-reward-group { margin-top: 24px; }
.boss-reward-group + .boss-reward-group { padding-top: 20px; border-top: 1px solid #edf2f7; }
.boss-reward-group h3 { margin-bottom: 12px; color: #475569; font-size: 14px; }
.boss-reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.boss-reward-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 66px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-shadow: 0 3px 9px rgba(15, 23, 42, .035);
}
.boss-reward-item__icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; }
.boss-reward-item__icon img { display: block; width: 36px; height: 36px; object-fit: contain; }
.boss-reward-item__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.boss-reward-item__text strong { color: #334155; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.boss-reward-item__text small { margin-top: 3px; color: #94a3b8; font-size: 11px; font-weight: 600; }
.boss-detail-image-empty { display: inline-block; width: 30px; height: 30px; background: #e2e8f0; border-radius: 9px; }

.boss-info-card {
    grid-area: info;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6ecf3;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.boss-detail-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 24px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--boss-accent) 12%, white), #fff 78%);
}
.boss-detail-visual .boss-hex { width: 180px; height: 180px; }
.boss-detail-visual .boss-hex-head { transform: translateY(4%) scale(.82); }
.boss-info-list { padding: 4px 22px 16px; }
.boss-info-list > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 38px; font-size: 13px; }
.boss-info-list dt { color: #94a3b8; }
.boss-info-list dd { color: #334155; font-weight: 700; }
.boss-detail-elements,
.boss-detail-element-value,
.boss-detail-cost { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.boss-detail-elements .boss-dot,
.boss-detail-element-value .boss-dot { width: 22px; height: 22px; }
.boss-detail-elements .boss-dot img,
.boss-detail-element-value .boss-dot img { width: 13px; height: 13px; }
.boss-detail-cost img { width: 18px; height: 18px; object-fit: contain; }
.boss-detail-species { color: var(--site-accent); text-decoration: none; }
.boss-detail-species:hover { text-decoration: underline; }
.boss-detail-species small { margin-left: 4px; color: #94a3b8; font-size: 11px; }
.boss-detail-manual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    margin: 0 22px 22px;
    padding: 10px 16px;
    color: #fff;
    background: #111827;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}
.boss-detail-manual:hover { background: var(--site-accent); transform: translateY(-1px); }
.boss-detail-manual span { font-size: 18px; }

.boss-card[href] { color: inherit; cursor: pointer; }

@media (min-width: 1100px) {
    .boss-info-card { position: sticky; top: 88px; }
}

@media (max-width: 960px) {
    .boss-detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
    .boss-rewards { padding: 20px; }
    .boss-reward-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 768px) {
    .boss-detail-page { padding: 16px 12px; border-radius: 16px; }
    .boss-detail-breadcrumb { gap: 10px; margin-bottom: 16px; }
    .boss-detail-layout { grid-template-columns: 1fr; grid-template-areas: "info" "rewards"; gap: 16px; }
    .boss-info-card { position: static; }
    .boss-detail-visual { min-height: 200px; padding: 18px; }
    .boss-detail-visual .boss-hex { width: 160px; height: 160px; }
    .boss-rewards { padding: 18px 14px; }
}

@media (max-width: 480px) {
    .boss-detail-crumbs { gap: 6px; font-size: 12px; }
    .boss-rewards__header { align-items: flex-start; flex-direction: column; gap: 8px; }
    .boss-reward-grid { grid-template-columns: 1fr; }
    .boss-reward-item { min-height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
    .boss-detail-back,
    .boss-detail-manual { transition: none; }
}
