.strategy-page { overflow: hidden; }
.strategy-page #content { height: calc(100dvh - 120px); min-height: 0; padding: 14px 26px 10px; display: flex; flex-direction: column; gap: 10px; }
.strategy-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.strategy-page .ui-page-intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; min-width: 0; margin: 0; }
.strategy-page .ui-page-intro h1 { font-size: 26px; }
.strategy-page .ui-page-intro p:not(.ui-eyebrow) { margin: 0; font-size: 12px; }
.strategy-updated { flex-shrink: 0; padding: 4px 9px; border: 1px solid #4b3932; border-radius: 6px; background: #282120; color: #c8a993; font-size: 10px; white-space: nowrap; }

.strategy-tools { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; align-items: center; gap: 8px 14px; flex-shrink: 0; min-width: 0; padding: 9px 14px; border: 1px solid var(--ui-border); border-radius: 10px; background: var(--ui-panel); }
.strategy-tools label { font-size: 11px; color: #d6cac2; white-space: nowrap; }
#boss-search, #boss-sort { min-width: 0; border: 1px solid #4b3e38; border-radius: 6px; color: var(--ui-text); background: var(--ui-inset); }
#boss-search { width: 100%; padding: 6px 9px; font-size: 12px; line-height: 1.5; }
#boss-search::placeholder { color: #938984; }
#boss-totals { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 12px; color: #a89b92; font-size: 11px; font-variant-numeric: tabular-nums; }
#boss-totals strong { color: #f3bc9b; font-weight: 600; }

#boss-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex-shrink: 0; min-width: 0; }
.boss-category { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 9px 12px; border: 1px solid #403734; border-radius: 10px; background: #211e20; color: #c4b0a5; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.boss-category > img, .boss-category > svg { display: block; width: 34px; height: 34px; object-fit: contain; opacity: .85; }
.boss-category > span { min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.5; }
.boss-category small { font-size: 10px; color: #9b8a81; white-space: nowrap; }
.boss-category:hover { background: #30251f; border-color: #895941; color: #f3b894; }
.boss-category[aria-pressed="true"] { border-color: #c17b52; background: linear-gradient(135deg, #513324, #30221e); color: #ffc3a0; box-shadow: inset 0 -2px #dc946b; }
.boss-category[aria-pressed="true"] > img, .boss-category:hover > img { opacity: 1; }
.boss-category[aria-pressed="true"] small { color: #e1ad8d; }

.boss-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: stretch; gap: 20px; flex: 1; min-width: 0; min-height: 0; }
.boss-results { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; padding: 12px; border: 1px solid var(--ui-border); border-radius: 14px; background: var(--ui-panel); }
.boss-list-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px; flex-shrink: 0; margin-bottom: 10px; }
#boss-category-title { min-width: 0; margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#boss-count { grid-column: 1; color: #aa9b91; font-size: 10px; }
#boss-sort { grid-column: 2; grid-row: 1 / 3; max-width: 90px; padding: 5px 6px; font-size: 10px; }
#boss-list { display: grid; align-content: start; gap: 7px; flex: 1; min-width: 0; min-height: 0; padding-right: 5px; overflow-y: scroll; }
.boss-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #403633; border-radius: 9px; color: #f1e9e5; background: #242123; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.boss-name { min-width: 0; font-size: 14px; font-weight: 650; }
.boss-card-note { grid-column: 1 / -1; color: #ae9f96; font-size: 10px; line-height: 1.6; }
.boss-card-count { grid-column: 2; grid-row: 1; align-self: center; color: #bd9b83; font-size: 10px; white-space: nowrap; }
.boss-card:hover { border-color: #845344; background: #302623; }
.boss-card[aria-pressed="true"], .boss-card[aria-selected="true"], .boss-card.active { border-color: #a76646; background: #3a2721; }
#boss-empty, .boss-detail-empty { display: grid; place-content: center; min-height: 120px; padding: 24px 16px; color: #ae9d94; font-size: 13px; text-align: center; }
#boss-empty { flex: 1; min-height: 0; border: 1px dashed #4b3933; border-radius: 9px; }
.strategy-page [hidden] { display: none !important; }

#boss-detail { min-width: 0; min-height: 0; overflow-y: scroll; border: 1px solid var(--ui-border); border-radius: 14px; background: var(--ui-panel); }
#boss-detail-content { min-width: 0; padding: 20px; }
#boss-list, #boss-detail { overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #89604c #1b1819; }
:is(#boss-list, #boss-detail)::-webkit-scrollbar { width: 8px; }
:is(#boss-list, #boss-detail)::-webkit-scrollbar-track { background: #1b1819; }
:is(#boss-list, #boss-detail)::-webkit-scrollbar-thumb { border: 2px solid #1b1819; border-radius: 8px; background: #89604c; }
.boss-hero { padding: 20px 23px; border: 1px solid #514038; border-radius: 12px; background: radial-gradient(ellipse at top right, #68463170, transparent 70%), linear-gradient(135deg, #312522, #211f24); }
.boss-badge { display: inline-block; padding: 2px 7px; border: 1px solid #765241; border-radius: 5px; background: #4d3428; color: #f2bc99; font-size: 10px; }
#boss-detail-title { margin: 7px 0 6px; color: #fff3e9; font-size: 28px; line-height: 1.3; letter-spacing: -.04em; }
.boss-summary { margin: 0; color: #c2afa3; font-size: 13px; line-height: 1.7; }
.boss-difficulty-tabs { position: sticky; z-index: 2; top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-bottom: 12px; padding: 4px; border: 1px solid #544035; border-radius: 10px; background: #211d1e; box-shadow: 0 5px 12px #0003; }
.boss-difficulty-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 9px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #b9a69a; cursor: pointer; }
.boss-difficulty-tab strong { font-size: 13px; font-weight: 600; white-space: nowrap; }
.boss-difficulty-tab span { font-size: 10px; color: #998a80; font-variant-numeric: tabular-nums; }
.boss-difficulty-tab:hover { color: #ffd0af; background: #35271f; }
.boss-difficulty-tab[aria-selected="true"] { border-color: #a86b47; background: linear-gradient(135deg, #563727, #3c2922); color: #ffd0af; }
.boss-difficulty-tab[aria-selected="true"] span { color: #d4ab8f; }
.boss-difficulty-tab:focus-visible { outline: 2px solid #edb18a; outline-offset: 2px; }
#boss-difficulty-content:focus-visible { outline: 1px solid #ad7857; outline-offset: 4px; border-radius: 10px; }
.boss-difficulty-note { margin: 12px 0 0; padding: 8px 11px; border-left: 2px solid #ad7650; color: #b5a297; background: #29211d; font-size: 11px; line-height: 1.7; }
.boss-tier-empty { margin-top: 12px; padding: 12px 14px; border: 1px dashed #74513d; border-radius: 9px; background: #2c231f; color: #cfa78b; font-size: 12px; }
.boss-tier-empty p { margin: 6px 0 0; color: #af9b8c; font-size: 11px; line-height: 1.7; }
.boss-prep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 20px; }
.boss-note-card { min-width: 0; padding: 14px 16px; border: 1px solid #443730; border-radius: 10px; background: #191719; }
.boss-note-card h3 { margin: 0 0 7px; color: #ebbc9b; font-size: 12px; font-weight: 600; }
.boss-note-card summary { color: #ebbc9b; font-size: 12px; font-weight: 600; cursor: pointer; }
.boss-note-card[open] summary { margin-bottom: 9px; }
.boss-checklist { margin: 0; padding-left: 15px; color: #b4a69e; font-size: 11px; line-height: 1.8; }
.boss-checklist li + li { margin-top: 5px; }
.boss-checklist li::marker { color: #b9825a; }

.boss-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 20px; }
.boss-section-heading h3 { margin: 0; font-size: 17px; font-weight: 600; }
.boss-section-heading > a { color: #dba989; font-size: 11px; text-decoration: none; }
.boss-section-heading > a:hover { text-decoration: underline; }
.boss-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.boss-guide { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; padding: 14px; border: 1px solid #48392f; border-radius: 10px; background: #282120; color: #ead8ca; text-decoration: none; transition: background .15s, border-color .15s; }
.boss-guide:hover { border-color: #a06746; background: #34261f; }
.boss-guide-kind { padding: 2px 6px; border-radius: 4px; background: #4b3225; color: #e4ac86; font-size: 10px; }
.boss-guide-title { font-size: 12px; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; }
.boss-guide-source { margin-top: auto; color: #ac9788; font-size: 10px; }

.boss-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.boss-video { min-width: 0; overflow: hidden; border: 1px solid #413633; border-radius: 10px; background: #282326; }
.boss-thumb { display: block; position: relative; width: 100%; min-width: 0; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; border: 0; border-radius: 0; color: #fff; background: radial-gradient(ellipse at center, #4e3024, #181517 80%); cursor: pointer; }
.boss-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.boss-thumb .play { display: grid; position: absolute; inset: 0; place-items: center; background: #0002; font-size: 25px; text-shadow: 0 2px 8px #000; transition: background .15s; }
.boss-thumb:hover .play { background: #0005; }
.boss-video-info { padding: 11px 12px; }
.boss-video-tier { display: inline-block; margin-bottom: 6px; padding: 2px 6px; border: 1px solid #75503b; border-radius: 4px; background: #463126; color: #e9b895; font-size: 9px; line-height: 1.4; }
.boss-video-title { display: block; color: #eadbd2; font-size: 12px; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
.boss-video-title:hover { color: #ffc3a0; text-decoration: underline; }
.boss-video-info p { margin: 6px 0 0; color: #a3948b; font-size: 10px; }
#boss-player { position: relative; margin: 16px 0; }
#boss-player:empty { display: none; }
#boss-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #111; }
.boss-player-close { position: absolute; z-index: 1; top: 8px; right: 8px; padding: 5px 9px; border: 1px solid #856047; border-radius: 6px; background: #2b211eed; color: #ffd1af; font-size: 11px; cursor: pointer; }
.boss-player-link { display: inline-block; margin-top: 8px; color: #e8b795; font-size: 12px; }
.boss-official { margin-top: 20px; padding-top: 12px; border-top: 1px solid #403530; color: #b5a499; font-size: 11px; }
.boss-official summary { width: fit-content; color: #c9aa95; cursor: pointer; }
.boss-unclassified { margin-top: 20px; padding: 12px; border: 1px dashed #514139; border-radius: 9px; color: #bda18e; font-size: 11px; }
.boss-unclassified summary { cursor: pointer; }
.boss-sources { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; }
.boss-sources a { color: #c9a38d; overflow-wrap: anywhere; }
.boss-detail-note { margin: 9px 0 0; color: #9f9188; font-size: 10px; line-height: 1.7; }

.strategy-footnote { position: relative; flex-shrink: 0; color: #96867c; font-size: 10px; }
.strategy-footnote summary { width: fit-content; color: #b3a59e; cursor: pointer; }
.strategy-footnote > p { position: absolute; z-index: 5; bottom: calc(100% + 8px); left: 0; width: min(650px, calc(100vw - 40px)); max-height: 35dvh; margin: 0; padding: 12px 16px; overflow: auto; border: 1px solid #56443b; border-radius: 10px; background: #252123; box-shadow: 0 8px 24px #0008; color: #b9a79b; font-size: 12px; line-height: 1.7; }

@media (max-width: 1100px) {
  .boss-layout { grid-template-columns: 285px minmax(0, 1fr); gap: 14px; }
  .boss-category { grid-template-columns: 34px minmax(0, 1fr); gap: 5px 8px; padding: 8px 10px; }
  .boss-category > img, .boss-category > svg { grid-row: 1 / 3; }
  .boss-category > span { font-size: 11px; }
  .boss-category small { grid-column: 2; font-size: 9px; }
  .boss-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .strategy-page #content { height: calc(100dvh - 108px); }
}
@media (max-width: 800px) {
  .strategy-page #content { padding: 10px 14px 8px; gap: 7px; }
  .strategy-page .ui-page-intro h1 { font-size: 21px; }
  .strategy-page .ui-page-intro p:not(.ui-eyebrow) { font-size: 11px; }
  .strategy-updated { padding: 3px 6px; font-size: 9px; }
  .strategy-tools { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 8px; padding: 7px 10px; }
  #boss-totals { gap: 3px 7px; font-size: 10px; }
  #boss-categories { gap: 5px; }
  .boss-category { grid-template-columns: 28px minmax(0, 1fr); padding: 6px 8px; gap: 2px 6px; }
  .boss-category > img, .boss-category > svg { width: 28px; height: 28px; }
  .boss-category > span { font-size: 10px; }
  .boss-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, .36fr) minmax(0, .64fr); gap: 8px; }
  .boss-results { padding: 7px 9px; }
  .boss-list-heading { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 5px; }
  #boss-category-title { font-size: 12px; }
  #boss-count { margin-left: auto; }
  #boss-sort { padding: 3px 5px; font-size: 10px; }
  .boss-card { padding: 8px 10px; gap: 3px 8px; }
  .boss-name { font-size: 12px; }
  #boss-detail-content { padding: 14px; }
  .boss-hero { padding: 15px 17px; }
  #boss-detail-title { font-size: 24px; }
  .boss-summary { font-size: 12px; }
  .boss-difficulty-tabs { margin-bottom: 10px; }
  .boss-difficulty-tab { gap: 3px; padding: 7px 6px; }
  .boss-difficulty-tab strong { font-size: 12px; }
  .boss-difficulty-tab span { font-size: 9px; }
  .boss-difficulty-note { padding: 7px 9px; font-size: 10px; }
  .boss-prep { gap: 9px; margin: 11px 0 16px; }
  .boss-note-card { padding: 11px 12px; }
  .boss-section-heading h3 { font-size: 15px; }
  .boss-guides, .boss-videos { gap: 8px; margin-top: 9px; }
}
@media (max-width: 600px) {
  .boss-category-divider { display: none; }
  .boss-category-mode { display: block; }
  .strategy-updated, .strategy-page .ui-page-intro p:not(.ui-eyebrow) { display: none; }
  .strategy-tools { grid-template-columns: auto minmax(0, 1fr); }
  #boss-totals { display: none; }
  #boss-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boss-category { min-height: 43px; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 5px; }
  .boss-category > img, .boss-category > svg { grid-row: auto; }
  .boss-category small { grid-column: auto; font-size: 8px; }
  .boss-prep, .boss-guides, .boss-videos { grid-template-columns: minmax(0, 1fr); }
  .boss-video { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
  .boss-thumb { align-self: start; }
  .boss-video-info { padding: 8px 10px; }
  .boss-video-title { font-size: 11px; }
  .boss-video-info p { font-size: 9px; }
}
@media (max-width: 360px) {
  .strategy-page #content { padding-right: 10px; padding-left: 10px; }
  .boss-category { padding: 5px 6px; }
  .boss-category > span { font-size: 9px; }
  .boss-category small { display: none; }
  .boss-list-heading { gap: 3px 5px; }
  #boss-category-title { font-size: 11px; }
  .boss-card-count { font-size: 9px; }
  .boss-video { grid-template-columns: 100px minmax(0, 1fr); }
}
@media (max-height: 550px) {
  .strategy-page #content { padding-top: 8px; padding-bottom: 6px; gap: 6px; }
  .strategy-page .ui-page-intro p:not(.ui-eyebrow), .strategy-updated { display: none; }
  .strategy-page .ui-page-intro h1 { font-size: 21px; }
  .strategy-tools, .boss-category { padding-top: 5px; padding-bottom: 5px; }
  .boss-results { padding-top: 7px; padding-bottom: 7px; }
  .boss-list-heading { margin-bottom: 5px; }
}
@media (max-width: 600px) and (max-height: 550px) {
  .boss-category { min-height: 36px; }
  .boss-category > img, .boss-category > svg { width: 24px; height: 24px; }
  .boss-layout { grid-template-rows: minmax(0, .4fr) minmax(0, .6fr); }
}
