/* Quest library: calm choices, clear next steps, and fully styled editors. */
.quests-win { --quest-glass: linear-gradient(125deg,rgba(var(--ph-bright-rgb),.12),rgba(var(--ph-rgb),.055) 48%,rgba(var(--ph-rgb),.02)); }
.quests-win .quests-content { padding: 22px; }
.quests-win .gx-quests { padding: 0; }
.quests-win .q-journal-header { margin: 0 0 18px; padding: 0; border: 0; }
.quests-win .q-journal-eyebrow { font-size: 12px; letter-spacing: .8px; color: var(--ph-dim); }
.quests-win .q-journal-header h2 { font-size: 26px; line-height: 1.3; margin: 5px 0 0; letter-spacing: .2px; }
.quests-win .q-journal-count { border-radius: 10px; padding: 10px 14px; background: var(--quest-glass); border-color: rgba(var(--ph-rgb),.18); box-shadow: none; }
.quests-win .q-journal-count strong { color: var(--ph-bright); font-size: 30px; }
.quests-win .q-journal-count span { font-size: 13px; color: var(--ph-dim); }
.quests-win .q-view-tabs { display: flex; gap: 5px; padding: 4px; border: 1px solid rgba(var(--ph-rgb),.15); border-radius: 9px; background: rgba(0,0,0,.13); container-type: inline-size; container-name: qtabs; }
.quests-win .q-view-tabs button { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: inherit; font-size: 16px; color: var(--ph-dim); padding: 10px 12px; border: 1px solid transparent; border-radius: 6px; background: none; cursor: pointer; }
/* five tabs since PASS joined (10-19): a narrow WINDOW on a wide screen gets the compact tabs too, not only a narrow viewport (sweep 10-20) */
@container qtabs (max-width: 460px) { .quests-win .q-view-tabs button { padding: 8px 2px; font-size: 14px; letter-spacing: 0; } }
.quests-win .q-view-tabs button[aria-selected="true"] { color: var(--ph-bright); border-color: rgba(var(--ph-rgb),.3); background: var(--quest-glass); box-shadow: inset 0 1px 0 rgba(var(--ph-bright-rgb),.1); }
.quests-win .q-view-tabs button:hover { color: var(--ph-bright); background-color: rgba(var(--ph-rgb),.06); }
.quests-win .q-view-tabs button span { margin-left: 6px; font-size: 12px; color: var(--ph-dim); }
.quests-win .q-view-description { font-size: 15px; line-height: 1.5; color: var(--ph-dim); margin: 14px 0 20px; }
.quests-win .q-view-panel[hidden] { display: none; }
.quests-win .q-filters { padding: 0; margin: 0 0 12px; gap: 6px; border: 0; background: none; box-shadow: none; }
.quests-win .q-filter { padding: 8px 12px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; color: var(--ph-dim); }
.quests-win .q-filter span { margin-left: 6px; font-size: 12px; color: var(--ph-dim); }
.quests-win .q-filter[aria-pressed="true"] { border-color: rgba(var(--ph-rgb),.3); background: var(--quest-glass); color: var(--ph-bright); }
.quests-win .q-journal { grid-template-columns: minmax(220px,.8fr) minmax(0,1.6fr); gap: 16px; border: 0; background: none; box-shadow: none; align-items: start; }
.quests-win .q-mission-list { gap: 7px; padding: 0 5px 0 0; max-height: 460px; border: 0; background: none; }
.quests-win .q-mission { gap: 8px; min-height: 70px; padding: 12px; border: 1px solid rgba(var(--ph-rgb),.12); border-radius: 10px; background: rgba(var(--ph-rgb),.02); box-shadow: none; }
.quests-win .q-mission.selected,.quests-win .q-mission:hover { border-color: rgba(var(--ph-rgb),.35); background: var(--quest-glass); box-shadow: inset 0 1px 0 rgba(var(--ph-bright-rgb),.09); }
.quests-win .q-mission-number { display: none; }
.quests-win .q-mission-kind { font-size: 11px; letter-spacing: .5px; color: var(--ph-dim); }
.quests-win .q-mission-title { font-size: 16px; line-height: 1.35; }
.quests-win .gx-quests .q-briefing .q-card { min-height: 320px; height: auto; padding: 20px; border: 1px solid rgba(var(--ph-rgb),.2); border-radius: 12px; background: var(--quest-glass); box-shadow: inset 0 1px 0 rgba(var(--ph-bright-rgb),.08); }
.quests-win .q-card-meta { gap: 8px; margin-bottom: 14px; }
.quests-win .q-card-meta .q-kind { border: 0; padding: 0; font-size: 12px; color: var(--ph-dim); }
.quests-win .q-card-state { font-size: 11px; letter-spacing: .3px; color: var(--ph-dim); }
.quests-win .gx-quests .q-briefing .q-hd .gl { display: none; }
.quests-win .gx-quests .q-briefing .q-hd .nm { font-size: 23px; line-height: 1.3; margin: 0 0 12px; letter-spacing: .2px; }
.quests-win .q-card h3::after,.quests-win .q-card h3::before { display: none; }
.quests-win .gx-quests .q-card .sub { font-size: 15px; line-height: 1.55; letter-spacing: .1px; opacity: 1; }
.quests-win .gx-quests .q-grid .q-card .q-cw { font-size: 14px; line-height: 1.5; margin-top: 16px; padding-top: 14px; border-color: rgba(var(--ph-rgb),.15); }
.quests-win .q-field-label { letter-spacing: .5px; font-size: 11px; color: var(--ph-dim); }
.quests-win .q-objective-mark { display: none; }
.quests-win .gx-quests .q-grid .q-card .q-reward { border: 0; background: rgba(var(--ph-rgb),.04); border-radius: 8px; color: var(--ph); padding: 12px; margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.quests-win .q-reward .q-field-label { color: var(--ph-dim); }
.quests-win :is(.consent-btn,.q-go,.q-queue,.q-dismiss) { border: 1px solid rgba(var(--ph-rgb),.24); border-radius: 7px; background: rgba(var(--ph-rgb),.035); box-shadow: none; color: var(--ph); padding: 9px 12px; font: inherit; font-size: 14px; line-height: 1.35; text-shadow: none; letter-spacing: .1px; cursor: pointer; }
.quests-win .gx-quests .q-actions .q-go { font-size: 15px; min-height: 42px; padding: 11px 14px; border-radius: 8px; box-shadow: none; letter-spacing: .2px; background: var(--quest-glass); }
.quests-win :is(.consent-btn,.q-go,.q-queue,.q-dismiss):hover { border-color: var(--ph); background-color: rgba(var(--ph-rgb),.09); }
.quests-win .consent-btn.deny { color: var(--bad); }
.quests-win .q-card-meta .q-dismiss { min-width: 30px; min-height: 30px; padding: 5px 8px; color: var(--ph-dim); }
.quests-win :is(button,input,textarea,summary):focus-visible { outline: 2px solid var(--ph); outline-offset: 3px; }
.quests-win .gx-quests :is(input,textarea,select) { box-sizing: border-box; width: 100%; padding: 11px 13px; margin: 7px 0 0; min-height: 42px; border: 1px solid rgba(var(--ph-rgb),.25); border-radius: 8px; background: rgba(0,0,0,.2); color: var(--ph-bright); font: inherit; font-size: 16px; line-height: 1.5; box-shadow: inset 0 1px 0 rgba(var(--ph-bright-rgb),.05); }
.quests-win .gx-quests textarea { min-height: 90px; resize: vertical; }
.quests-win .gx-quests :is(input,textarea)::placeholder { color: var(--ph-dim); opacity: .75; }
.quests-win .gx-quests label { display: block; font-size: 14px; line-height: 1.4; color: var(--ph); margin: 14px 0; }
.quests-win .gx-quests :is(.q-track,.q-life-manage,.q-refresh-options,.q-progress-section,.q-deferred,.q-other-goals,.q-metric-editor) { padding: 18px; margin: 0 0 14px; border: 1px solid rgba(var(--ph-rgb),.18); border-radius: 12px; background: var(--quest-glass); box-shadow: inset 0 1px 0 rgba(var(--ph-bright-rgb),.07); }
.quests-win .gx-quests summary { font-size: 16px; line-height: 1.4; color: var(--ph-bright); letter-spacing: .1px; }
.quests-win .gx-quests .q-progress-section > summary { padding: 0; min-height: 24px; }
.quests-win .q-progress-section > .q-section-body { padding: 16px 0 0; }
.quests-win .q-section-note { font-size: 12px; color: var(--ph-dim); }
/* Station milestones (org pass 10-14, P28 polish): the count sits beside the name and the TROPHY CASE door at the row end — the
   fold chevron stays the row's one arrow */
.quests-win .q-milestones > summary .q-section-count { margin-left: 0; }
.quests-win .q-milestones > summary .q-trophy-door { margin-left: auto; }
.quests-win .q-refresh-options > summary { display: flex; align-items: center; gap: 10px; }
.quests-win .q-refresh-options .q-refresh-card { border: 0; padding: 0; background: none; box-shadow: none; }
.quests-win .q-refresh-options .q-refresh-sec { margin-top: 20px; }
.quests-win .q-refresh-card .sub,.quests-win .q-journey-card .sub { font-size: 15px; line-height: 1.5; }
.quests-win .q-progress-overview { grid-template-columns: 1.5fr 1fr; gap: 14px; }
.quests-win .gx-quests .q-progress-overview > div { padding: 20px; border-color: rgba(var(--ph-rgb),.2); border-radius: 12px; background: var(--quest-glass); box-shadow: none; }
.quests-win .gx-quests .q-progress-overview .q-journey-title { font-size: 22px; letter-spacing: .4px; }
.quests-win .q-progress-goal { padding: 18px 2px; }
.quests-win .q-metric-editor { background: rgba(0,0,0,.12); box-shadow: none; margin: 16px 0 0; }
.quests-win .q-metric-create { gap: 12px; }
.quests-win .q-metric-create label { margin: 12px 0 0; }
.quests-win .q-metric-create .q-metric-add { margin-top: 14px; justify-self: start; }
.quests-win :is(.q-metric,.q-receipt,.q-mastery-row,.q-achievement) { border-color: rgba(var(--ph-rgb),.18); border-radius: 8px; padding: 14px; margin-top: 12px; background: rgba(0,0,0,.1); }
.quests-win .q-metric-actions { gap: 8px; flex-wrap: wrap; }
.quests-win .q-metric-actions input { margin: 0; flex: 1 1 150px; min-width: 0; }
.quests-win .q-life-quest details,.quests-win .q-life-report { padding: 14px; border: 1px solid rgba(var(--ph-rgb),.16); border-radius: 8px; background: rgba(0,0,0,.1); margin-top: 14px; }
.quests-win .consent-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.quests-win .q-done .q-card,.quests-win .q-milestone-grid .gx-tro { padding: 18px; border: 1px solid rgba(var(--ph-rgb),.18); border-radius: 10px; background: var(--quest-glass); box-shadow: none; }
.quests-win .q-journal-empty { padding: 30px 20px; border: 1px solid rgba(var(--ph-rgb),.16); border-radius: 12px; background: var(--quest-glass); }
@media(max-width: 680px) {
 .quests-win .quests-content { padding: 14px; }
 .quests-win .q-journal { grid-template-columns: minmax(0,1fr); }
 .quests-win .q-mission-list { max-height: 185px; }
 .quests-win .q-view-tabs button { padding: 9px 6px; font-size: 14px; }
 .quests-win .q-progress-overview { grid-template-columns: 1fr; }
 .quests-win .q-journal-header h2 { font-size: 22px; }
 .quests-win .q-metric-create { grid-template-columns: 1fr; }
}

.quests-win .q-view-tabs { position: sticky; top: 0; z-index: 5; background: var(--panel); backdrop-filter: blur(16px); }
/* a sticky box stops at the scroller's CONTENT edge, so top:0 left the body's 22px padding band open above the strip and the
   tab description scrolled through it, cut mid-sentence (org P10 polish). Pinning at minus that padding seats the strip flush
   on the window's top edge: nothing scrolls above it. */
.quests-win .q-view-tabs { top: -22px; }
@media(max-width: 680px) { .quests-win .q-view-tabs { top: -14px; } }
/* org P10 polish: flush, the strip's border met the title bar's rule and scrolled content showed past its rounded top corners.
   It now stops 8px under the window's top edge on an opaque band (::before) that fills that gap and the corners behind the
   tray; the tray's own border is redrawn above the band (::after), so its rounded outline stays whole. */
.quests-win .q-view-tabs { top: -14px; border-color: transparent; }
@media(max-width: 680px) { .quests-win .q-view-tabs { top: -6px; } }
.quests-win .q-view-tabs::before { content: ''; position: absolute; z-index: -1; left: -1px; right: -1px; top: -9px; height: 19px; background: var(--panel); pointer-events: none; }
.quests-win .q-view-tabs::after { content: ''; position: absolute; z-index: -1; inset: -1px; border: 1px solid rgba(var(--ph-rgb),.15); border-radius: 9px; pointer-events: none; }
.quests-win .q-mission-list { max-height: 380px; }
.quests-win .q-done .q-card::before { display: none; }
@media(max-width: 680px) { .quests-win .q-mission-list { max-height: 185px; } }

.quests-win .q-journal:has(.q-mission-list:empty) { grid-template-columns: minmax(0,1fr); }
.quests-win .q-mission-list:empty,.quests-win .q-journal-empty > span { display: none; }
.quests-win .q-journal-empty h3 { display: block; padding: 0; border: 0; background: none; letter-spacing: .2px; font-size: 22px; box-shadow: none; }
.quests-win .q-journal-empty h3::before,.quests-win .q-journal-empty h3::after { display: none; }
.quests-win .q-journal-empty p { font-size: 15px; color: var(--ph-dim); }
.quests-win .q-return-card { margin: 0 0 16px; padding: 12px; border: 1px solid rgba(var(--ph-rgb),.35); background: var(--quest-glass); border-radius: 10px; }
.quests-win .q-return-card h3 { margin: 4px 0; font-size: 19px; line-height: 1.2; font-weight: normal; overflow-wrap: anywhere; }
.quests-win .q-return-card p { margin: 6px 0; line-height: 1.3; overflow-wrap: anywhere; }
.quests-win .q-return-proof { margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid rgba(var(--ph-rgb),.18); }
.quests-win .q-return-proof summary { cursor: pointer; overflow-wrap: anywhere; }
.quests-win .q-return-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.quests-win .q-return-actions button { white-space: normal; padding: 7px 10px; font-size: 12px; }
/* The docked panel is short: the next action takes the space otherwise used by
   the repeated heading/description. Other tabs keep their existing overview. */
.quests-win .quests-content[data-quest-view="available"] .q-journal-header,
.quests-win .quests-content[data-quest-view="available"] .q-view-description { display: none; }
.quests-win .q-next-choice { margin: 14px 0; }
.quests-win .q-next-choice button { display: block; margin: 8px 0; white-space: normal; text-align: left; }

/* A journey is a collection of real chapters, with room for unfinished possibilities. */
.quests-win :is(.q-possibilities,.q-goal-collection,.q-chapters,.q-constellation) { margin: 18px 0; scroll-margin-top: 80px; }
.quests-win :is(.q-chapter,.q-life-manage) { scroll-margin-top: 80px; }
.quests-win .q-growth-history { margin-top: 12px; }
.quests-win :is(.q-direction,.q-idea,.q-idea-new,.q-chapter) { padding: 14px; margin: 10px 0; border: 1px solid rgba(var(--ph-rgb),.2); border-radius: 10px; background: var(--quest-glass); }
.quests-win :is(.q-direction,.q-idea,.q-chapter) > summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; overflow-wrap: anywhere; }
.quests-win :is(.q-direction,.q-idea,.q-chapter) > summary::before { content: '+'; color: var(--ph-dim); }
.quests-win :is(.q-direction,.q-idea,.q-chapter)[open] > summary::before { content: '−'; }
.quests-win :is(.q-direction,.q-idea,.q-chapter) > summary .q-section-note { flex: 0 0 auto; max-width: 35%; text-align: right; }
.quests-win .q-journey-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.quests-win .q-journey-actions button { white-space: normal; }
.quests-win .q-revise-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(var(--ph-rgb),.12); }
.quests-win .q-revise-row input { flex: 1 1 180px; min-width: 0; }
.quests-win .q-plan-editor { margin: 18px 0; }
.quests-win .q-history-line { list-style: none; padding: 0 0 0 18px; margin: 18px 0; border-left: 1px solid rgba(var(--ph-rgb),.3); }
.quests-win .q-history-line li { position: relative; margin: 0 0 22px; }
.quests-win .q-history-line li::before { content: '◆'; position: absolute; left: -24px; color: var(--ph); font-size: 11px; background: var(--panel); }
.quests-win .q-history-line time { display: block; font-size: 12px; color: var(--ph-dim); }
.quests-win .q-history-line p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; margin: 6px 0; }
.quests-win .q-star-map { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 16px; padding: 20px; border: 1px solid rgba(var(--ph-rgb),.2); border-radius: 12px; background: radial-gradient(ellipse at 50% 40%,rgba(var(--ph-rgb),.1),transparent 70%), var(--quest-glass); }
.quests-win .q-star { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px; color: var(--ph); background: rgba(0,0,0,.18); border: 1px solid rgba(var(--ph-rgb),.18); border-radius: 8px; font: inherit; cursor: pointer; overflow-wrap: anywhere; text-align: center; }
.quests-win .q-star:hover { border-color: var(--ph); }
.quests-win .q-star-glyph { font-size: 32px; line-height: 1; }
.quests-win .q-star small { color: var(--ph-dim); font-size: 11px; letter-spacing: .5px; }
.quests-win .q-star-reached { border-color: var(--gold); }
.quests-win .q-star-reached .q-star-glyph { color: var(--gold); text-shadow: 0 0 16px var(--gold); }
/* STATION SYSTEMS (systems.js) — the constellation's star tile, wearing each system's dock icon. Offline = dim and
   dashed (it still opens: clicking brings it online); NEW = gold edge until the Commander opens it. */
.quests-win .q-sys .q-star-glyph svg { width: 26px; height: 26px; display: block; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: square; stroke-linejoin: miter; }
.quests-win .q-sys-off { color: var(--ph-dim); border-style: dashed; background: transparent; }
.quests-win .q-sys-off:hover { color: var(--ph); }
.quests-win .q-sys.q-star-reached .q-star-glyph { color: var(--ph); text-shadow: none; }
.quests-win .q-sys.q-star-reached { border-color: rgba(var(--ph-rgb),.35); }
.quests-win .q-sys.q-sys-fresh { border-color: var(--gold); }
.quests-win .q-sys.q-sys-fresh .q-star-glyph { color: var(--gold); }
.quests-win .q-star-empty { grid-column: 1/-1; text-align: center; color: var(--ph-dim); padding: 15px; }
.quests-win :is(.q-context-editor,.q-reflection-editor,.q-plan-editor) { border-top: 1px solid rgba(var(--ph-rgb),.16); padding: 12px 0 0; margin: 14px 0; }
.quests-win .q-direction > summary > span:first-of-type,.quests-win .q-chapter > summary > span:first-of-type { flex: 1; min-width: 0; }
.quests-win .q-archive-count { min-height: 1.5em; }
.quests-win .q-archive-search-label { margin-bottom: 6px; }
.quests-win button[aria-busy="true"] { opacity: .65; cursor: progress; }
.quests-win .q-goal-draft-undo { color: var(--ph-dim); }
.quests-win .q-goal-draft-undo[hidden],.quests-win .q-chapter[hidden] { display: none; }
.quests-win :is(.q-goal-starters,.q-goal-plan-editor,.q-goal-optional) { margin: 16px 0; }
.quests-win .q-plan-feedback { min-height: 1.4em; color: var(--ph-dim); line-height: 1.4; }
.quests-win :is(.q-plan-proposal,.q-chapter-plan) li { margin: 8px 0; line-height: 1.4; overflow-wrap: anywhere; }
.quests-win .q-plan-proposal .q-return-card { border-color: var(--gold); }

/* ============== THE PASS (2026-10-19) — the quest log as an ASCII battle pass ==============
   Plain-ASCII art (VT323 owns every glyph) on the station's phosphor + gold tokens. Rules are text runs clipped by
   the panel width, so the frame stays ASCII at any window size; the tier track scrolls sideways like a pass. */
.quests-win .bp { font-size: 16px; color: var(--ph); container-type: inline-size; container-name: bpass; }
.quests-win .bp pre { margin: 0; font: inherit; line-height: 1.05; white-space: pre; }
.quests-win .bp-rule { display: flex; white-space: nowrap; overflow: hidden; color: rgba(var(--ph-rgb),.55); margin: 14px 0 10px; line-height: 1; letter-spacing: 1px; }
.quests-win .bp-rule:first-child { margin-top: 0; }
.quests-win .bp-rule-label { color: var(--gold); letter-spacing: 1.5px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.quests-win .bp-rule-run { flex: 1 1 0; min-width: 0; overflow: hidden; }
.quests-win .bp-frame-hull .bp-rule, .quests-win .bp-frame-starline .bp-rule, .quests-win .bp-frame-deep-field .bp-rule { color: rgba(var(--gold-rgb),.7); text-shadow: 0 0 6px rgba(var(--gold-rgb),.35); }

.quests-win .bp-hero { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 6px 2px; }
.quests-win .bp-tier { color: var(--ph-bright); font-size: 20px; text-shadow: 0 0 10px var(--ph-glow); }
.quests-win .bp-eyebrow { display: block; font-size: 12px; letter-spacing: 1.5px; color: var(--ph-dim); }
.quests-win .bp-rank { display: block; font-weight: normal; font-size: 34px; line-height: 1.05; letter-spacing: 3px; color: var(--gold); text-shadow: 0 0 12px rgba(var(--gold-rgb),.45); }
.quests-win .bp-xp { margin: 6px 0 2px; font-size: 18px; white-space: nowrap; }
.quests-win .bp-bar-s { display: none; }
.quests-win .bp-stale { margin: 0 0 8px; }
.quests-win .bp-reset { margin: -4px 0 8px; text-align: right; letter-spacing: .5px; }
.quests-win .bp-xp b { color: var(--ph-bright); font-weight: normal; }
.quests-win .bp-bar { color: var(--ph-bright); text-shadow: 0 0 6px var(--ph-glow); letter-spacing: 0; }
.quests-win .bp .sub { font-size: 14px; line-height: 1.45; color: var(--ph-dim); }

.quests-win .bp-streak { display: grid; grid-template-columns: auto auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid rgba(var(--ph-rgb),.18); border-radius: 10px; background: rgba(0,0,0,.14); }
.quests-win .bp-flame { color: var(--ph-dim); font-size: 15px; }
.quests-win .bp-streak.lit .bp-flame { color: var(--gold); text-shadow: 0 0 8px rgba(var(--gold-rgb),.7); animation: bp-flicker 1.6s steps(3) infinite; }
.quests-win .bp-streak.risk .bp-flame { animation: none; opacity: .75; }
.quests-win .bp-streak-n { font-weight: normal; font-size: 30px; color: var(--ph-bright); }
.quests-win .bp-streak.lit .bp-streak-n { color: var(--gold); }
.quests-win .bp-week { grid-column: 1 / -1; display: flex; gap: 3px; margin-top: 4px; }
.quests-win .bp-day { display: flex; flex-direction: column; align-items: center; font-size: 14px; color: var(--ph-dim); white-space: pre; }
.quests-win .bp-day i { font-style: normal; font-size: 11px; }
.quests-win .bp-day.on { color: var(--gold); }
.quests-win .bp-day.today i { color: var(--ph-bright); text-decoration: underline; text-underline-offset: 2px; }
.quests-win .bp-day.future { opacity: .45; }
@keyframes bp-flicker { 0%,100% { opacity: 1; } 50% { opacity: .78; } }

.quests-win .bp-claimbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid rgba(var(--gold-rgb),.55); border-radius: 8px; color: var(--gold); background: rgba(var(--gold-rgb),.07); animation: bp-pulse 2s steps(9, jump-none) infinite; }
@keyframes bp-pulse { 0%,100% { box-shadow: 0 0 0 rgba(var(--gold-rgb),0); } 50% { box-shadow: 0 0 14px rgba(var(--gold-rgb),.35); } }
.quests-win .bp-track { position: relative; min-width: 0; max-width: 100%; display: flex; align-items: flex-start; gap: 0; list-style: none; margin: 0; padding: 4px 2px 12px; overflow-x: auto; scrollbar-width: thin; }
.quests-win .bp-node { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 96px; text-align: center; }
.quests-win .bp-box { color: rgba(var(--ph-rgb),.45); font-size: 17px; }
.quests-win .bp-node-title { font-size: 13px; letter-spacing: 1px; color: var(--ph-dim); }
.quests-win .bp-node-frame { font-size: 11px; color: rgba(var(--gold-rgb),.75); }
.quests-win .bp-node .bp-need { font-size: 12px; color: var(--ph-dim); }
.quests-win .bp-node .bp-got { font-size: 12px; color: var(--ph-dim); }
.quests-win .bp-done .bp-box { color: var(--ph); }
.quests-win .bp-done .bp-node-title { color: var(--ph); }
.quests-win .bp-now .bp-box { color: var(--gold); text-shadow: 0 0 10px rgba(var(--gold-rgb),.6); }
.quests-win .bp-now .bp-node-title { color: var(--gold); }
.quests-win .bp-here { font-size: 12px; color: var(--ph-bright); letter-spacing: 1px; animation: bp-flicker 1.2s steps(2) infinite; }
.quests-win .bp-ahead { opacity: .7; }
.quests-win .bp-claimable .bp-box { color: var(--gold); }
.quests-win .bp .bp-claim { font: inherit; font-size: 13px; padding: 2px 6px; border: 0; background: none; color: var(--gold); cursor: pointer; letter-spacing: 1px; animation: bp-flicker 1s steps(2) infinite; }
.quests-win .bp .bp-claim:hover { color: var(--ph-bright); background: rgba(var(--gold-rgb),.12); }
.quests-win .bp-link { flex: 0 0 auto; align-self: flex-start; margin-top: 18px; font-size: 17px; color: rgba(var(--ph-rgb),.35); letter-spacing: 0; }
.quests-win .bp-link-done { color: var(--ph); }
.quests-win .bp-link-now { color: var(--gold); }
.quests-win .bp-flash .bp-box { animation: bp-claimed .9s ease-out 2; }
@keyframes bp-claimed { 0% { color: var(--ph-bright); text-shadow: 0 0 18px rgba(var(--gold-rgb),1); } 100% { text-shadow: 0 0 0 rgba(var(--gold-rgb),0); } }

.quests-win .bp-chals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.quests-win .bp-chal { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid rgba(var(--ph-rgb),.14); border-radius: 8px; background: rgba(var(--ph-rgb),.025); }
.quests-win .bp-check { color: var(--ph-bright); font-size: 18px; }
.quests-win .bp-chal-title { display: block; font-size: 16px; line-height: 1.35; color: var(--ph-bright); overflow-wrap: anywhere; }
.quests-win .bp-chal-meter { display: block; font-size: 14px; color: var(--ph-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; }
.quests-win .bp-mini { color: var(--ph); }
.quests-win .bp-pts { margin-left: 6px; color: var(--gold); letter-spacing: .5px; }
.quests-win .bp-chal.done { border-color: rgba(var(--gold-rgb),.45); background: rgba(var(--gold-rgb),.06); }
.quests-win .bp-chal.done .bp-check, .quests-win .bp-chal.done .bp-mini { color: var(--gold); }
.quests-win .bp-done-tag { color: var(--gold); letter-spacing: 1.5px; font-size: 14px; }
.quests-win .bp .bp-go { padding: 6px 14px; }
.quests-win .bp-law { margin: 12px 0 0; }
/* sized by the PASS's own width (a narrow window on a wide screen is just as narrow) — sweep 10-20 */
@container bpass (max-width: 640px) {
  .quests-win .bp-hero { grid-template-columns: auto minmax(0,1fr); }
  .quests-win .bp-streak { grid-column: 1 / -1; }
}
@container bpass (max-width: 420px) {
  .quests-win .bp-bar-l { display: none; }
  .quests-win .bp-bar-s { display: inline; }
  .quests-win .bp-rank { font-size: 28px; letter-spacing: 2px; }
  .quests-win .bp-tier { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .quests-win .bp-streak.lit .bp-flame, .quests-win .bp-here, .quests-win .bp .bp-claim, .quests-win .bp-claimbar, .quests-win .bp-flash .bp-box { animation: none; }
}
