/* BLOODLINE v7 — two complete visual moods + five-step editorial journey.
   The old portal and the server-side content remain unchanged. */

body:not(.page-portal) {
  --ui-bg: #eef4f9;
  --ui-bg-alt: #e5eef6;
  --ui-panel: #ffffff;
  --ui-border: rgba(35, 73, 115, .14);
  --ui-ink: #142b43;
  --ui-muted: #536980;
  --ui-accent: #2175c9;
  --ui-accent-soft: rgba(42, 126, 203, .11);
  --ui-line: rgba(48, 96, 146, .24);
  --ui-glow: rgba(69, 139, 213, .11);
  color: var(--ui-ink);
  background: var(--ui-bg);
  transition: background-color .3s ease, color .3s ease;
}
body[data-theme="night"]:not(.page-portal) {
  --ui-bg: #0b1220;
  --ui-bg-alt: #111c2c;
  --ui-panel: #172337;
  --ui-border: rgba(166, 183, 216, .14);
  --ui-ink: #eff3fa;
  --ui-muted: #a4b1c8;
  --ui-accent: #a4b5ff;
  --ui-accent-soft: rgba(151, 168, 242, .12);
  --ui-line: rgba(153, 169, 206, .23);
  --ui-glow: rgba(138, 158, 226, .07);
}
body[data-theme="day"]:not(.page-portal) {
  --text: #142b43;
  --text-soft: #425a73;
  --text-muted: #647b92;
  --line: rgba(45, 83, 126, .16);
  --line-strong: rgba(45, 83, 126, .24);
  --blood-bright: #2175c9;
  --theme-primary: #2175c9;
}
body[data-theme="night"]:not(.page-portal) {
  --text: #eff3fa;
  --text-soft: #b9c5d8;
  --text-muted: #97a8c0;
  --line: rgba(168, 185, 216, .13);
  --line-strong: rgba(168, 185, 216, .23);
  --blood-bright: #a4b5ff;
  --theme-primary: #a4b5ff;
}
body:not(.page-portal) .noise,
body:not(.page-portal) .blood-canvas { display: none !important; }
body:not(.page-portal)::before { display: none; }
body:not(.page-portal) .eyebrow { color: var(--ui-accent) !important; }
body:not(.page-portal) .section-heading > p { border-left-color: var(--ui-line); }
body:not(.page-portal) .text-link,
body:not(.page-portal) .step-link { color: var(--ui-accent); }
body:not(.page-portal) .button-outline { border-color: var(--ui-border); }
body:not(.page-portal) .button-primary { background: var(--ui-accent) !important; box-shadow: 0 10px 26px var(--ui-glow) !important; color: #fff; }
body[data-theme="night"] .button-primary { color: #0c1422; }
body:not(.page-portal) .button-discord { background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.22); box-shadow: none; }
body:not(.page-portal) .button-discord:hover { background: rgba(255,255,255,.16); }

/* Navigation stays legible over both hero photographs. */
body[data-theme="day"] .site-header,
body[data-theme="day"] .site-header.scrolled { background: rgba(11, 30, 52, .92) !important; border-bottom-color: rgba(212,230,250,.12); }
body[data-theme="night"] .site-header,
body[data-theme="night"] .site-header.scrolled { background: rgba(9, 15, 26, .92) !important; border-bottom-color: rgba(185,198,221,.13); }
body:not(.page-portal) .site-header { backdrop-filter: blur(16px); }
body:not(.page-portal) .main-nav > a:not(.button),
body:not(.page-portal) .main-nav summary,
body:not(.page-portal) .brand { color: #eff5ff; }
body:not(.page-portal) .main-nav > a:not(.button)::after { background: var(--ui-accent); }
body:not(.page-portal) .nav-more-menu { background: #111f32; border-color: rgba(255,255,255,.13); }
body:not(.page-portal) .nav-more-menu a { color: #e9f1fc; }
body:not(.page-portal) .nav-more-menu a:hover { background: rgba(255,255,255,.09); }
.nav-theme-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; flex-shrink: 0; }
.nav-theme-switch__option { padding: 7px 9px; display: inline-flex; gap: 5px; align-items: center; justify-content: center; background: transparent; color: #aebbd0; border: 0; border-radius: 999px; font-size: .7rem; line-height: 1.1; font-weight: 800; cursor: pointer; transition: background .2s ease,color .2s ease; }
.nav-theme-switch__option > span:first-child { font-size: 1rem; line-height: 1; }
.nav-theme-switch__option:hover { color: white; }
.nav-theme-switch__option[aria-pressed="true"] { background: rgba(196,222,255,.19); color: #fff; box-shadow: 0 1px 9px rgba(0,0,0,.09); }
.nav-theme-switch__option:focus-visible { outline: 2px solid #a4d3ff; outline-offset: 3px; }
@media (max-width: 1190px) and (min-width: 1041px) {
  .nav-theme-switch__option { padding: 7px; }
  .nav-theme-switch__option > span:last-child { display: none; }
  .main-nav { gap: 11px !important; }
}
@media (max-width: 1040px) {
  .nav-theme-switch { width: max-content; margin-top: 16px; }
  .nav-theme-switch__option { padding: 10px 16px; }
  body:not(.page-portal) .nav-more-menu { background: transparent; }
  body:not(.page-portal) .main-nav { background: #0d1b2d; }
}

/* Home: two visibly different palettes, not just two different photographs. */
body[data-theme="day"] .about,
body[data-theme="day"] .features,
body[data-theme="day"] .journey,
body[data-theme="day"] .faq,
body[data-theme="day"] .rules-teaser { background: var(--ui-bg) !important; color: var(--ui-ink); }
body[data-theme="day"] .features,
body[data-theme="day"] .journey { background: var(--ui-bg-alt) !important; }
body[data-theme="night"] .about,
body[data-theme="night"] .features,
body[data-theme="night"] .journey,
body[data-theme="night"] .faq,
body[data-theme="night"] .rules-teaser { background: var(--ui-bg) !important; color: var(--ui-ink); }
body[data-theme="night"] .features,
body[data-theme="night"] .journey { background: var(--ui-bg-alt) !important; }
body:not(.page-portal) .about::after { display:none; }
body:not(.page-portal) .about-copy p,
body:not(.page-portal) .about-copy .lead-copy,
body:not(.page-portal) .section-heading > p,
body:not(.page-portal) .timeline-step p,
body:not(.page-portal) .rules-copy p,
body:not(.page-portal) .faq-answer p { color: var(--ui-muted); }
body:not(.page-portal) .about-copy .lead-copy { color: var(--ui-ink); }
body:not(.page-portal) .about-pillars { gap: 0; margin-top: 26px; }
body:not(.page-portal) .about-pillars article { box-shadow: none !important; background: transparent !important; border: 0 !important; border-top: 1px solid var(--ui-border) !important; border-radius: 0; padding: 17px 0; }
body:not(.page-portal) .about-pillars article:last-child { border-bottom: 1px solid var(--ui-border) !important; }
body:not(.page-portal) .about-pillars h3 { color: var(--ui-ink); }
body:not(.page-portal) .about-pillars p { color: var(--ui-muted); }
body:not(.page-portal) .about-pillars .mini-icon { border-color: var(--ui-border); background: var(--ui-accent-soft); color: var(--ui-accent); }
body:not(.page-portal) .feature-card { border: 1px solid var(--ui-border); }
body:not(.page-portal) .feature-card h3 { color: #fff; }
body:not(.page-portal) .feature-card p { color: #e7edf6; }
body:not(.page-portal) .feature-card::after { background: linear-gradient(to top,rgba(6,13,26,.94),rgba(6,13,26,.66) 59%,transparent 92%); }
body:not(.page-portal) .faq-item { background: var(--ui-panel) !important; border: 1px solid var(--ui-border) !important; border-radius: 14px; box-shadow: none; }
body:not(.page-portal) .faq-item button { color: var(--ui-ink); }
body:not(.page-portal) .faq-item button span { color: var(--ui-accent); }
body:not(.page-portal) .faq-answer p { color: var(--ui-muted); }
body:not(.page-portal) .faq-item.open { box-shadow: 0 9px 30px var(--ui-glow) !important; }
body:not(.page-portal) .rules-copy h2,
body:not(.page-portal) .about-copy h2,
body:not(.page-portal) .section-heading h2 { color: var(--ui-ink); }
body:not(.page-portal) .rules-art,
body:not(.page-portal) .about-art { border-color: var(--ui-border); }
body:not(.page-portal) .quote-banner p,
body:not(.page-portal) .final-cta h2,
body:not(.page-portal) .final-cta p:not(.eyebrow),
body:not(.page-portal) .hero h1,
body:not(.page-portal) .hero-lead { color: #fff !important; }
body:not(.page-portal) .hero .eyebrow,
body:not(.page-portal) .quote-banner .eyebrow,
body:not(.page-portal) .final-cta .eyebrow { color: #dceaff !important; }
body[data-theme="day"] .hero h1::after { background: linear-gradient(90deg,#b9dcfa,transparent); }
body[data-theme="night"] .hero h1::after { background: linear-gradient(90deg,#a4b5ff,transparent); }

/* Five-step journey: no cards, one continuous rail, clear links. */
body:not(.page-portal) .journey-v7 { padding: clamp(76px, 8vw, 128px) 0 clamp(88px, 9vw, 140px); border-top: 1px solid var(--ui-border); border-bottom: 1px solid var(--ui-border); }
.journey-v7 .section-heading { margin-bottom: 72px; grid-template-columns: 1.15fr .85fr; gap: 42px; }
.journey-v7 .section-heading h2 { font-size: clamp(2.65rem,4.3vw,4.45rem); line-height: 1.03; letter-spacing: -.042em; }
.journey-v7 .section-heading > p { padding-left: 24px; border-left: 2px solid var(--ui-accent); font-size: .96rem; }
.journey-path { position: relative; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(15px, 2.3vw, 40px); list-style: none; }
.journey-path::before { content: ''; position: absolute; top: 29px; left: 29px; right: 29px; height: 1px; background: linear-gradient(90deg,var(--ui-line),var(--ui-accent),var(--ui-line)); pointer-events: none; }
.journey-path__step { position: relative; min-width: 0; padding: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.journey-path__step:hover { background: transparent !important; box-shadow: none !important; transform: none !important; }
.journey-path__marker { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; background: var(--ui-bg-alt); color: var(--ui-accent); border: 1px solid var(--ui-line); border-radius: 50%; font-size: .84rem; letter-spacing: .03em; font-family: var(--sans); font-weight: 800; box-shadow: 0 0 0 7px var(--ui-bg-alt); transition: transform .25s ease, background-color .25s ease; }
.journey-path__step:hover .journey-path__marker { transform: scale(1.08); }
.journey-path__step--lore .journey-path__marker { background: var(--ui-accent); border-color: var(--ui-accent); color: #fff; }
body[data-theme="night"] .journey-path__step--lore .journey-path__marker { color: #101a2b; }
.journey-path__copy { padding: 28px 0 0; }
.journey-path__copy h3 { font: 800 clamp(1rem,1.25vw,1.34rem)/1.3 var(--sans); letter-spacing: -.025em; margin: 0 0 14px; color: var(--ui-ink); }
.journey-path__copy p { color: var(--ui-muted) !important; margin: 0 0 18px; line-height: 1.73; font-size: clamp(.79rem,.9vw,.9rem); max-width: 235px; }
.journey-path__link,.journey-path__final { display: inline-flex; align-items: center; gap: 10px; font-size: .77rem; font-weight: 800; letter-spacing: .02em; text-decoration: none; color: var(--ui-accent); padding: 4px 0 6px; border-bottom: 1px solid var(--ui-line); transition: border-color .2s ease, gap .2s ease; }
.journey-path__link:hover { gap: 16px; border-bottom-color: var(--ui-accent); }
.journey-path__link:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 5px; border-radius: 2px; }
.journey-path__final { color: var(--ui-muted); border-bottom-color: transparent; cursor: default; }
.journey-path__step--lore .journey-path__link { font-weight: 900; }
@media (max-width: 1030px) {
  .journey-path { gap: 24px 16px; }
  .journey-path__copy h3 { font-size: 1.06rem; }
  .journey-path__copy { padding-top: 23px; }
}
@media (max-width: 860px) {
  .journey-v7 .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 48px; }
  .journey-v7 .section-heading > p { border: none; padding: 0; }
  .journey-path { grid-template-columns: 1fr; gap: 0; max-width: 680px; }
  .journey-path::before { top: 20px; bottom: 24px; left: 27px; right: auto; width: 1px; height: auto; background: linear-gradient(to bottom,var(--ui-line),var(--ui-accent),var(--ui-line)); }
  .journey-path__step { display: grid; grid-template-columns: 58px 1fr; gap: 26px; padding-bottom: 34px; }
  .journey-path__step:last-child { padding-bottom: 0; }
  .journey-path__copy { padding-top: 7px; }
  .journey-path__copy h3 { font-size: 1.15rem; margin-bottom: 7px; }
  .journey-path__copy p { max-width: 440px; margin-bottom: 10px; }
  .journey-path__marker { width: 55px; height: 55px; }
}
@media (max-width: 500px) {
  .journey-v7 .section-heading h2 { font-size: clamp(2.15rem, 10vw, 3.2rem); }
  .journey-path__step { grid-template-columns: 51px 1fr; gap: 17px; padding-bottom: 27px; }
  .journey-path__marker { height: 48px; width: 48px; box-shadow: 0 0 0 5px var(--ui-bg-alt); }
  .journey-path::before { left: 24px; }
  .journey-path__copy { padding-top: 3px; }
}

/* Subpages: keep the same content, but honor the chosen visual mode. */
body:not(.page-portal) .lore-intro-section,
body:not(.page-portal) .lore-pillars-section,
body:not(.page-portal) .lore-layers-section,
body:not(.page-portal) .lore-timeline-section,
body:not(.page-portal) .rules-main-section,
body:not(.page-portal) .rules-tools-section,
body:not(.page-portal) .team-section,
body:not(.page-portal) .support-section,
body:not(.page-portal) .guide-section,
body:not(.page-portal) .application-section,
body:not(.page-portal) .status-section,
body:not(.page-portal) .news-section,
body:not(.page-portal) .result-shell { background: var(--ui-bg) !important; }
body:not(.page-portal) .lore-layers-section,
body:not(.page-portal) .lore-timeline-section { background: var(--ui-bg-alt) !important; }
body:not(.page-portal) .lore-intro-grid h2,
body:not(.page-portal) .lore-heading h2,
body:not(.page-portal) .lore-layers-copy h2,
body:not(.page-portal) .lore-lead p,
body:not(.page-portal) .lore-timeline h3,
body:not(.page-portal) .application-info h2,
body:not(.page-portal) .team-heading h2,
body:not(.page-portal) .support-intro h2,
body:not(.page-portal) .guide-block h2 { color: var(--ui-ink); }
body:not(.page-portal) .lore-lead p,
body:not(.page-portal) .lore-layers-copy p,
body:not(.page-portal) .lore-timeline p { color: var(--ui-muted) !important; }
body:not(.page-portal) .lore-pillar,
body:not(.page-portal) .lore-layers article,
body:not(.page-portal) .lore-timeline article,
body:not(.page-portal) .lore-role-cards article,
body:not(.page-portal) .rule-block,
body:not(.page-portal) .rules-index,
body:not(.page-portal) .guide-block,
body:not(.page-portal) .news-card,
body:not(.page-portal) .support-category,
body:not(.page-portal) .support-steps article,
body:not(.page-portal) .form-panel,
body:not(.page-portal) .team-role-card,
body:not(.page-portal) .status-card,
body:not(.page-portal) .result-card,
body:not(.page-portal) .status-help,
body:not(.page-portal) .privacy-note { background: var(--ui-panel) !important; border-color: var(--ui-border) !important; color: var(--ui-ink); box-shadow: 0 8px 20px var(--ui-glow); }
body:not(.page-portal) .lore-pillar h3,
body:not(.page-portal) .lore-layers h3,
body:not(.page-portal) .news-card h3,
body:not(.page-portal) .guide-block h3,
body:not(.page-portal) .support-steps h3,
body:not(.page-portal) .support-category h3,
body:not(.page-portal) .form-panel h2,
body:not(.page-portal) .rule-block h2 { color: var(--ui-ink); }
body:not(.page-portal) .lore-pillar p,
body:not(.page-portal) .lore-layers p,
body:not(.page-portal) .guide-card-grid p,
body:not(.page-portal) .support-category p,
body:not(.page-portal) .guide-block li,
body:not(.page-portal) .news-card p,
body:not(.page-portal) .rule-block li { color: var(--ui-muted) !important; }
body:not(.page-portal) .lore-pillar span,
body:not(.page-portal) .lore-timeline span,
body:not(.page-portal) .lore-layers small { color: var(--ui-accent); border-color: var(--ui-line); }
body:not(.page-portal) .rules-index a,
body:not(.page-portal) .guide-index a { color: var(--ui-muted); }
body:not(.page-portal) .field > span,
body:not(.page-portal) .field label,
body:not(.page-portal) .form-panel label { color: var(--ui-ink); }
body:not(.page-portal) .field input,
body:not(.page-portal) .field select,
body:not(.page-portal) .field textarea,
body:not(.page-portal) .status-search input,
body:not(.page-portal) .rules-search input { color: var(--ui-ink); background: var(--ui-bg); border-color: var(--ui-border); }
body:not(.page-portal) .field input::placeholder,
body:not(.page-portal) .field textarea::placeholder { color: var(--ui-muted); }
body:not(.page-portal) .lore-hero h1,
body:not(.page-portal) .lore-hero-inner > p:not(.eyebrow),
body:not(.page-portal) .subpage-hero h1,
body:not(.page-portal) .subpage-hero-inner > p:not(.eyebrow),
body:not(.page-portal) .rules-hero h1,
body:not(.page-portal) .rules-hero p,
body:not(.page-portal) .lore-cinematic-break blockquote,
body:not(.page-portal) .lore-cta h2,
body:not(.page-portal) .lore-cta p:not(.eyebrow) { color: #f6f8ff !important; }
body:not(.page-portal) .lore-hero .eyebrow,
body:not(.page-portal) .subpage-hero .eyebrow,
body:not(.page-portal) .rules-hero .eyebrow,
body:not(.page-portal) .lore-cta .eyebrow { color: #bfd9ff !important; }
body:not(.page-portal) .lore-lead p:first-child::first-letter { color: var(--ui-accent); }
body:not(.page-portal) .site-footer { background: var(--ui-bg-alt) !important; border-color: var(--ui-border); }
body:not(.page-portal) .footer-nav a,
body:not(.page-portal) .footer-bottom p,
body:not(.page-portal) .socials a { color: var(--ui-muted); }
body:not(.page-portal) .footer-brand { color: var(--ui-ink) !important; }
body:not(.page-portal) .socials a { border-color: var(--ui-border); background: var(--ui-panel); }
body:not(.page-portal) .footer-main,
body:not(.page-portal) .footer-bottom { border-color: var(--ui-border); }
@media (prefers-reduced-motion: reduce) {
  body:not(.page-portal),.journey-path__marker,.journey-path__link,.nav-theme-switch__option { transition:none !important; }
}

/* Anchored sections should not hide behind the fixed navigation. */
.journey-v7 { scroll-margin-top: calc(var(--header-h) + 24px); }
