/* Page-scoped progression guide. Uses the shared CK colors and typography. */
#rbPage, #bossModal { --rb-muted: #aaa6a0; --rb-line: #35312c; --rb-surface: #1b1916; }
.rb-section--path, #rbPage [data-section="path"], #bossModal [data-section="path"] { --rb-c: #ff9a45; --rb-tint: rgba(255,154,69,.09); }
.rb-section--pool, #rbPage [data-section="pool"], #bossModal [data-section="pool"] { --rb-c: #e9c85d; --rb-tint: rgba(233,200,93,.09); }
.rb-section--trial, #rbPage [data-section="trial"], #bossModal [data-section="trial"] { --rb-c: #8ab6e5; --rb-tint: rgba(138,182,229,.09); }
#rbPage main { max-width: 1328px; margin: 0 auto; padding: 44px 32px 52px; width: 100%; overflow: visible; }
#rbPage [hidden], #bossModal [hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#rbPage main :focus-visible, #bossModal :focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; }
.rb-hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.rb-eyebrow { font-size: .69rem; text-transform: uppercase; letter-spacing: 1.8px; font-weight: 700; color: #b9b0a4; margin: 0 0 14px; }
.rb-eyebrow span { color: var(--accent); padding: 0 9px; }
#rbPage h1 { border: 0; padding: 0; margin: 0 0 12px; font-size: clamp(2.2rem, 3.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.4px; }
#rbPage h1 span { color: var(--accent-hover); }
.rb-intro { color: #bcb6ae; max-width: 660px; font-size: .93rem; line-height: 1.75; margin: 0; }
.rb-hero-index { display: flex; flex-shrink: 0; gap: 24px; padding-left: 28px; border-left: 1px solid var(--rb-line); }
.rb-hero-index span { display: flex; flex-direction: column; color: var(--rb-muted); font-size: .7rem; white-space: nowrap; }
.rb-hero-index strong { font: 600 2.7rem/1.2 var(--font-display); color: #ece2d2; }
.rb-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--rb-line); border-radius: 12px; overflow: hidden; background: var(--rb-line); }
#rbPage .rb-tile { position: relative; display: block; padding: 22px 26px; color: var(--text); text-decoration: none; background: linear-gradient(120deg, var(--rb-tint), transparent), #191816; transition: background-color .18s; }
#rbPage .rb-tile:hover { background-color: #29251f; }
#rbPage .rb-tile:focus-visible { outline-offset: -4px; }
.rb-tile::after { content: '↗'; position: absolute; top: 22px; right: 24px; color: var(--rb-c); font-size: 1.2rem; }
.rb-tile-step { display: flex; gap: 12px; align-items: center; font: 700 1rem var(--font-display); color: var(--rb-c); }
.rb-tile-step span { font: 600 .64rem var(--font-body); text-transform: uppercase; letter-spacing: 1.4px; color: #b6aea2; }
.rb-tile-name { display: block; font: 700 1.45rem var(--font-display); margin: 12px 0 5px; }
.rb-tile-text { display: block; color: #b4aea5; font-size: .79rem; line-height: 1.65; max-width: 340px; }
.rb-notice { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; color: #b9aea1; font-size: .77rem; line-height: 1.6; margin: 16px 0 36px; }
.rb-notice > span { display: inline-flex; justify-content: center; align-items: center; width: 16px; height: 16px; border: 1px solid #85653e; color: #e8b57a; border-radius: 50%; font-size: .66rem; }
.rb-notice strong { color: #e8c5a0; font-weight: 600; }
.rb-directory-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.rb-directory-head h2 { margin: 0; font-size: 1.3rem; }
.rb-directory-head p { color: var(--rb-muted); font-size: .73rem; margin: 0; }
.rb-tools { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid var(--rb-line); background: #191816; border-radius: 10px; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rb-chip { min-height: 44px; padding: 9px 14px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #b9b3aa; font: 600 .76rem var(--font-body); cursor: pointer; }
.rb-chip:hover { color: #fff; background: #28241f; }
.rb-chip[aria-pressed="true"] { color: #ffc188; border-color: #78512f; background: #392719; }
.rb-count { margin: 8px 0; font-size: .72rem; color: var(--rb-muted); }
.rb-section { margin: 24px 0 42px; scroll-margin-top: 80px; }
.rb-section-head { margin-bottom: 18px; }
.rb-section-head h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; color: #f2e9df; font-size: 1.8rem; }
.rb-section-number { color: var(--rb-c); font: 600 .82rem var(--font-body); padding: 6px 8px; border: 1px solid var(--rb-line); border-radius: 5px; }
.rb-section-head p { margin: 0; max-width: 980px; color: #b7b0a6; font-size: .82rem; line-height: 1.75; }
.rb-sec-count { white-space: nowrap; color: #c9bdae; }
#rbPage .boss-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; }
.rb-card { position: relative; min-width: 0; border: 1px solid var(--rb-line); border-radius: 9px; background: linear-gradient(125deg, #201c17, #191817); transition: border-color .18s, background-color .18s; }
.rb-card:hover, .rb-card:focus-within { border-color: #776045; background: #262018; }
.rb-card-open { appearance: none; text-align: left; display: flex; flex-direction: column; gap: 12px; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent; padding: 20px 20px 17px; font: inherit; color: inherit; cursor: pointer; }
#rbPage .rb-card-open:focus-visible { outline-offset: -3px; }
.rb-card-top { min-height: 26px; padding-right: 82px; display: flex; align-items: center; }
.rb-step { color: var(--rb-c); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.rb-card-identity, .rb-card-route { display: block; min-width: 0; }
.rb-card .bc-name { display: block; font: 700 1.4rem/1.15 var(--font-display); color: #f3e9de; }
.rb-loc { display: block; margin-top: 7px; font-size: .72rem; line-height: 1.5; color: #b5aa9b; }
.rb-card-route { flex: 1; }
.rb-chain { display: block; font-size: .76rem; color: #c2bbb1; line-height: 1.6; overflow-wrap: anywhere; }
.rb-chain:empty { display: none; }
.rb-flags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.rb-flags:empty { display: none; }
.rb-flag { color: #b6aea2; border: 1px solid #403931; border-radius: 4px; padding: 3px 6px; font-size: .58rem; line-height: 1.4; }
.rb-flag--orig { color: #e9c85d; border-color: #63542f; }
.rb-flag--warn { color: #d7ae83; }
.rb-card .bc-more { display: flex; justify-content: space-between; width: 100%; border-top: 1px solid #322c25; padding-top: 11px; font-size: .72rem; color: var(--rb-c); }
.rb-comp-ico { position: absolute; right: 14px; top: 12px; display: inline-flex; justify-content: center; align-items: center; min-width: 40px; min-height: 40px; padding: 0 8px; border: 1px solid #494033; border-radius: 6px; color: #c5b499 !important; background: #211d17; text-decoration: none; cursor: pointer; font: 600 .62rem var(--font-body); }
.rb-comp-ico:hover { color: #ffe0ae !important; border-color: #a78657; }
.rb-comp-ico--search { border-style: dashed; }
#rbPage .rb-section--path .boss-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--rb-line); border-radius: 10px; overflow: hidden; }
.rb-section--path .rb-card { border: 0; border-bottom: 1px solid var(--rb-line); border-radius: 0; background: #1b1916; }
.rb-section--path .rb-card:last-child { border-bottom: 0; }
.rb-section--path .rb-card:hover, .rb-section--path .rb-card:focus-within { background: #252018; }
.rb-section--path .rb-card-open { display: grid; grid-template-columns: 44px minmax(200px, .95fr) minmax(180px, 1.3fr) 100px; gap: 20px; align-items: center; padding: 19px 78px 19px 22px; }
.rb-section--path .rb-card-top { padding: 0; }
.rb-section--path .rb-step { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: var(--rb-tint); border: 1px solid #58402a; border-radius: 8px; letter-spacing: .5px; }
.rb-section--path .bc-name { font-size: 1.22rem; }
.rb-section--path .bc-more { border: 0; padding: 0; gap: 8px; }
.rb-section--path .rb-comp-ico { top: 50%; transform: translateY(-50%); }
.rb-rules, .rb-rewards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rb-line); border-radius: 9px; background: #191816; }
.rb-rules > div, .rb-rewards > div { padding: 20px; border-right: 1px solid var(--rb-line); }
.rb-rules > div:last-child, .rb-rewards > div:last-child { border-right: 0; }
.rb-rule-label { font-size: .63rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--rb-c); }
.rb-rules h3 { font: 600 1.25rem var(--font-display); margin: 8px 0 5px; }
.rb-rules p { margin: 0; color: #b4aea5; font-size: .77rem; line-height: 1.7; }
.rb-rewards > div { padding: 15px 20px; }
.rb-rewards span { display: block; color: #abaeaf; font-size: .72rem; margin-bottom: 5px; }
.rb-rewards strong { color: #bfd4eb; font: 600 1.5rem var(--font-display); }
.rb-rewards small { color: #9ca7b4; font: 400 .65rem var(--font-body); }
.rb-back-row { display: flex; flex-wrap: wrap; gap: 22px; border-top: 1px solid var(--rb-line); padding-top: 24px; }
.rb-back { color: #c7b69f !important; font-size: .8rem; text-decoration: none; padding: 10px 0; }
.rb-back:hover { color: var(--accent-hover) !important; }
/* Details retain every field from the roster, with a numbered spawn timeline. */
#bossModal .ck-modal-box { max-width: 820px; background: #1b1916; border: 1px solid #5c4831; box-shadow: 0 24px 90px #0009; max-height: calc(var(--app-height, 100vh) - 48px); }
#bossModal .ck-modal-close { width: 40px; height: 40px; border-radius: 8px; background: #29241c; }
#bossModal .boss-modal-body { padding: 30px; }
.rb-modal-head { padding-right: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--rb-line); margin-bottom: 22px; }
.rb-badge { display: inline-block; color: var(--rb-c); text-transform: uppercase; letter-spacing: 1.1px; font-size: .66rem; font-weight: 700; }
.rb-step-long { display: block; color: var(--rb-muted); font-size: .76rem; margin-top: 8px; }
.boss-modal-name { font: 700 2.3rem/1.1 var(--font-display); color: #fff0de; margin: 14px 0; }
.rb-comp { display: inline-block; font-size: .77rem; color: var(--rb-c); text-decoration: none; padding: 8px 0; }
.rb-comp--search { text-decoration: underline dashed; text-underline-offset: 4px; }
.rb-meta { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; font-size: .83rem; line-height: 1.6; margin: 0 0 28px; }
.rb-meta dt { color: var(--rb-muted); }
.rb-meta dd { margin: 0; color: #e1d7ca; }
.rb-meta a, .rb-desc a { color: var(--accent-hover); }
.rb-block { margin: 0 0 24px; }
.rb-block h3 { font: 600 1.3rem var(--font-display); color: #f5e6d2; margin: 0 0 12px; }
.rb-block ul { padding-left: 20px; margin: 0; }
.rb-block li { color: #d1c9be; line-height: 1.8; font-size: .85rem; margin: 8px 0; }
.rb-sub { color: var(--rb-muted); }
.rb-chain-steps { list-style: none; padding: 0; margin: 0; counter-reset: spawn; }
.rb-chain-steps li { counter-increment: spawn; position: relative; padding: 0 0 20px 44px; margin: 0; }
.rb-chain-steps li::before { content: counter(spawn, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--rb-tint); color: var(--rb-c); font-size: .68rem; font-weight: 700; }
.rb-chain-steps li:not(:last-child)::after { content: ''; position: absolute; width: 1px; background: #4a3e2f; left: 14px; top: 34px; bottom: 6px; }
.rb-chain-steps li:last-child { padding-bottom: 0; }
.rb-pct { display: inline-block; background: var(--rb-tint); color: var(--rb-c); border: 1px solid #594b36; padding: 1px 7px; border-radius: 5px; font-size: .67rem; margin: 0 4px; white-space: nowrap; }
.rb-comp-link { color: #edcf9c; text-decoration: underline dotted; text-underline-offset: 4px; }
.rb-comp-link:hover { color: #ffe4b6; }
.rb-comp-link--search { text-decoration-style: dashed; }
.rb-desc { color: #d1c9be; font-size: .86rem; line-height: 1.8; }
.rb-desc p { margin: 0 0 16px; }
.rb-note { border-left: 2px solid #ba8754; background: #30261a; padding: 12px 16px; color: #ddc8ae; font-size: .81rem; line-height: 1.7; border-radius: 0 6px 6px 0; }
.rb-modal-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rb-line); padding-top: 22px; margin-top: 28px; }
.rb-nav-btn { background: #252018; border: 1px solid #524432; color: #e5c99f; border-radius: 6px; padding: 12px; max-width: 49%; min-height: 44px; font: 400 .78rem var(--font-body); cursor: pointer; overflow-wrap: anywhere; }
.rb-nav-btn:hover { border-color: var(--rb-c); }
.rb-nav-btn:disabled { opacity: .4; cursor: default; }
@media (max-width: 1100px) {
    .rb-hero-index { gap: 18px; padding-left: 20px; }
    .rb-hero { gap: 24px; }
    .rb-tools { flex-wrap: wrap; }
    .rb-section--path .rb-card-open { grid-template-columns: 42px minmax(150px, 1fr) minmax(150px, 1fr); gap: 16px; }
    .rb-section--path .bc-more { display: none; }
}
@media (max-width: 800px) {
    #rbPage main { padding: 28px 20px 36px; }
    .rb-hero { display: block; }
    .rb-hero-index { margin-top: 22px; border-left: 0; padding: 0; gap: 30px; }
    .rb-hero-index span { flex-direction: row; align-items: baseline; gap: 7px; }
    .rb-hero-index strong { font-size: 1.6rem; }
    .rb-tile-name { font-size: 1.2rem; }
    #rbPage .rb-tile { padding: 18px; }
    .rb-tile::after { right: 16px; top: 16px; }
    .rb-directory-head { display: block; }
    .rb-directory-head p { margin-top: 7px; line-height: 1.6; }
    #rbPage .boss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-rules > div { padding: 16px; }
    .rb-section--path .rb-card-open { grid-template-columns: 40px minmax(0, 1fr); padding: 17px 90px 17px 16px; gap: 8px 14px; }
    .rb-section--path .rb-card-top { grid-row: span 2; align-self: start; }
    .rb-section--path .rb-card-route { grid-column: 2; }
}
@media (max-width: 560px) {
    #rbPage main { padding: 24px 14px 32px; }
    .rb-eyebrow { font-size: .59rem; letter-spacing: 1.1px; }
    #rbPage h1 { font-size: 2.4rem; }
    #rbPage h1 span { display: block; }
    .rb-intro { font-size: .83rem; }
    .rb-hero-index { justify-content: space-between; gap: 10px; }
    .rb-hero-index span { font-size: .62rem; flex-direction: column; gap: 0; }
    .rb-hero { margin-bottom: 22px; }
    .rb-progress { grid-template-columns: 1fr; }
    #rbPage .rb-tile { padding: 16px 42px 16px 52px; }
    .rb-tile-step { position: absolute; left: 17px; top: 20px; }
    .rb-tile-step span { display: none; }
    .rb-tile-name { margin: 0 0 3px; font-size: 1.25rem; }
    .rb-tile-text { font-size: .74rem; max-width: none; }
    .rb-notice { display: block; margin-bottom: 28px; line-height: 1.8; }
    .rb-notice > span { margin-right: 5px; }
    .rb-tools { padding: 10px; gap: 10px; }
    .rb-chips { display: grid; grid-template-columns: auto auto; width: 100%; }
    .rb-chip { padding: 8px; font-size: .7rem; }
    .rb-section-head h2 { font-size: 1.5rem; }
    .rb-section-head p { font-size: .78rem; }
    #rbPage .boss-grid { grid-template-columns: 1fr; }
    .rb-card-open { padding: 18px; gap: 11px; }
    .rb-section--path .rb-card-open { padding-right: 68px; grid-template-columns: 32px minmax(0, 1fr); gap: 8px 11px; }
    .rb-section--path .rb-step { width: 32px; height: 34px; font-size: .6rem; }
    .rb-section--path .rb-comp-ico { right: 8px; }
    .rb-comp-ico--multi { font-size: .55rem; padding: 0 4px; }
    .rb-rules { grid-template-columns: 1fr; }
    .rb-rules > div { border-right: 0; border-bottom: 1px solid var(--rb-line); }
    .rb-rules > div:last-child { border-bottom: 0; }
    .rb-rewards > div { padding: 12px 9px; }
    .rb-rewards span { font-size: .6rem; line-height: 1.5; }
    .rb-rewards strong { font-size: 1.2rem; }
    .rb-rewards small { display: block; margin-top: 4px; }
    #bossModal { padding: 12px; align-items: center; }
    #bossModal .ck-modal-box { max-height: calc(var(--app-height, 100vh) - 24px); }
    #bossModal .boss-modal-body { padding: 24px 18px; }
    .boss-modal-name { font-size: 1.9rem; }
    .rb-meta { grid-template-columns: 1fr; gap: 3px; }
    .rb-meta dd { margin-bottom: 11px; }
    .rb-chain-steps li { padding-left: 39px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #rbPage main, #bossModal, #bossModal .ck-modal-box, .rb-tile, .rb-card { animation: none; transition: none; }
}
/* The legacy mobile sidebar selector also targets semantic nav elements. */
#rbPage .rb-progress { display: grid; position: static; max-height: none; z-index: auto; animation: none; background: var(--rb-line); border: 1px solid var(--rb-line); overflow: hidden; }
#rbPage main { animation: none; }
@media (max-width: 380px) {
    #rbPage .cktopnav__brandtext { max-width: 70px; white-space: normal; font-size: .75rem; line-height: 1.25; }
    #rbPage .cktopnav__inner { padding-left: 12px; padding-right: 12px; gap: 8px; }
    #rbPage .cktopnav__right { gap: 6px; }
}
@media (min-width: 1000px) and (max-width: 1179px) {
    #rbPage .cktopnav__links { display: none; }
    #rbPage .cktopnav__burgertext { display: inline; }
    #rbPage .cktopnav__burger { padding: 0 14px; }
}
