@charset "UTF-8";

.faction-page { --faction-demon: #b8a2df; --faction-angel: #a9e5f4; }
.faction-hero { grid-template-columns: 1.5fr .7fr; padding-block: 42px 48px; }
.faction-hero .guide-hero-copy { max-width: 740px; }
.faction-hero h1 { font-size: clamp(36px, 4vw, 52px); }
.faction-hero-mark { display: grid; place-items: center; color: #9ebada; opacity: .7; min-width: 0; }
.faction-hero-mark svg { width: 130px; max-width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1; filter: drop-shadow(0 0 26px #8279bf40); }
.faction-hero-mark svg path:last-child { fill: #a1b9e544; stroke: #c1d8f2; }
.faction-hero-mark span { font-size: 9px; letter-spacing: 2px; margin-top: 18px; color: #8e9bc1; }
.faction-hero-facts { display: flex; flex-wrap: wrap; gap: 20px 34px; margin: 28px 0 0; }
.faction-hero-facts > div + div { padding-left: 28px; border-left: 1px solid #849db438; }
.faction-hero-facts dt { color: #91aabd; font-size: 11px; margin-bottom: 4px; }
.faction-hero-facts dd { color: #d3e3f0; font-size: 15px; margin: 0; }
.faction-choice-section { padding-top: 46px; }
.faction-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.faction-choice { --choice-surface: #101b2a; display: block; min-width: 0; padding: 0; border: 1px solid #8aabc238; background: var(--choice-surface); color: #d2e1eb; text-align: left; overflow: hidden; cursor: pointer; transition: border-color .2s, background .2s; }
.faction-choice-demon { --choice-accent: var(--faction-demon); --choice-glow: #7d548d; }
.faction-choice-angel { --choice-accent: var(--faction-angel); --choice-glow: #5d94a8; }
.faction-choice:hover { border-color: var(--choice-accent); }
.faction-choice[aria-pressed="true"] { --choice-surface: #142438; border-color: var(--choice-accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--choice-accent) 15%, transparent); }
.faction-choice-art { display: block; position: relative; aspect-ratio: 1.65; overflow: hidden; background: var(--choice-surface); }
.faction-choice-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--choice-surface), transparent 58%), linear-gradient(90deg, var(--choice-surface), transparent 12% 88%, var(--choice-surface)), linear-gradient(180deg, var(--choice-surface), transparent 12%); pointer-events: none; }
.faction-choice-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; transition: transform .4s; }
.faction-choice:hover img { transform: scale(1.025); }
.faction-choice-status { position: absolute; top: 17px; left: 18px; z-index: 2; font-size: 11px; letter-spacing: 1px; border: 1px solid var(--choice-accent); background: #101c2be8; color: var(--choice-accent); padding: 3px 12px; opacity: 0; }
.faction-choice[aria-pressed="true"] .faction-choice-status { opacity: 1; }
.faction-choice-sigil { position: absolute; bottom: 5px; right: 26px; z-index: 2; font-family: var(--serif); color: var(--choice-accent); opacity: .5; font-size: 45px; font-weight: 400; line-height: 1.4; }
.faction-choice-copy { display: block; padding: 8px 30px 28px; }
.faction-choice-copy > small { display: block; color: var(--choice-accent); font-size: 10px; letter-spacing: 1.8px; }
.faction-choice-copy > strong { display: block; color: #e0eaf3; font-size: 32px; font-weight: 500; letter-spacing: 1px; margin-block: 10px 13px; }
.faction-choice-description { display: block; color: #a8bdcd; font-size: 15px; max-width: 480px; line-height: 1.9; }
.faction-traits { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 20px; }
.faction-traits > span { color: #b8c5d9; border: 1px solid #92a6c433; background: #0c172866; padding: 3px 11px; font-size: 12px; }
.faction-choice-hunt { display: block; border-top: 1px solid #95abc12e; padding-top: 14px; color: #a2b6cc; font-size: 13px; }
.faction-choice-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 25px; align-items: center; margin-top: 15px; }
.faction-choice-caption p { max-width: 760px; margin: 0; color: #8099af; font-size: 12px; }
.faction-choice-caption .guide-text-link { margin-top: 0; font-size: 13px; }
.faction-direction-note { display: flex; align-items: start; gap: 16px; margin-top: 28px; padding: 22px 24px; background: #10213288; border-top: 1px solid #8cabc43d; }
.faction-direction-note > .icon { color: #a7d3e5; width: 25px; height: 25px; flex-shrink: 0; margin-top: 4px; }
.faction-direction-note p { color: #a7bed0; font-size: 13px; margin: 0; }
.faction-direction-note strong { color: #d1e2ed; display: block; margin-bottom: 5px; font-weight: 500; }
.faction-direction-note > a { color: #badce9; font-size: 12px; white-space: nowrap; margin-top: 6px; margin-left: auto; }
.faction-reset-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 8px; }
.faction-reset-compare > div { padding: 20px 22px; background: #14233480; border-left: 2px solid #8eabc4; }
.faction-reset-compare > div:last-child { border-color: #b6a8d6; }
.faction-reset-compare span { color: #9baacb; display: block; font-size: 11px; margin-bottom: 5px; }
.faction-reset-compare strong { color: #d0e3ee; font-size: 17px; font-weight: 500; }
.faction-reset-compare p { color: #a2b7c8; font-size: 13px; margin: 9px 0 0; }
.faction-rank-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.faction-inline-switch { display: inline-flex; gap: 4px; padding: 4px; background: #0a1420; border: 1px solid #839fb53d; }
.faction-inline-switch button { cursor: pointer; padding: 11px 18px; border: 1px solid transparent; background: transparent; color: #a6b7ca; font: inherit; font-size: 13px; }
.faction-inline-switch button[aria-pressed="true"] { background: #263048; color: #e2d3fa; border-color: #b6a1d85c; }
.faction-inline-switch button[data-faction-type="angel"][aria-pressed="true"] { background: #1d3544; color: #c8f0f5; border-color: #a9e5f45c; }
.faction-rank-toolbar > p { color: #8fa7bb; margin: 0; font-size: 12px; }
.faction-rank-buttons button { cursor: pointer; }
.faction-rank-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.faction-rank-pagination button { cursor: pointer; padding: 10px 15px; min-height: 44px; background: #142435; color: #bbd6e5; border: 1px solid #829eb64d; font: inherit; font-size: 13px; }
.faction-rank-pagination button:disabled { opacity: .35; cursor: default; }
.faction-rank-pagination > span { color: #a5b8ca; font-size: 12px; font-variant-numeric: tabular-nums; }
.faction-rank-table { border-block: 1px solid #8cabc438; margin-top: 28px; }
.faction-rank-table > summary { cursor: pointer; color: #c6deeb; font-size: 14px; padding: 18px 0; }
.faction-expand-icon { float: right; color: #b6a6d3; }
.faction-rank-table[open] .faction-expand-icon { transform: rotate(45deg); }
.faction-table-scroll { overflow: auto; margin: 18px 0 24px; }
.faction-table-scroll table { width: 100%; min-width: 770px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.faction-table-scroll caption { text-align: left; color: #9fb3c6; font-size: 12px; margin-bottom: 14px; }
.faction-table-scroll th, .faction-table-scroll td { padding: 12px 13px; text-align: right; border-bottom: 1px solid #8cabc42d; }
.faction-table-scroll thead th { color: #b8cee0; font-weight: 500; background: #182739; }
.faction-table-scroll tbody th { color: #c6d7e9; text-align: left; position: sticky; left: 0; background: #111f2e; font-weight: 500; }
.faction-table-scroll td { color: #a8c2d4; }
.faction-page button:focus-visible, .faction-page summary:focus-visible, .faction-table-scroll:focus-visible { outline: 2px solid #bddfe9; outline-offset: 4px; }
.faction-menu-guide { margin-top: 26px; padding: 24px; border: 1px solid #8f9fc02b; background: #121d2b; }
.faction-menu-guide > p { font-size: 14px; color: #c7d8e5; margin-bottom: 17px; }
.faction-menu-guide dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; }
.faction-menu-guide dt { color: #a8c4dc; font-size: 14px; margin-bottom: 7px; }
.faction-menu-guide dd { margin: 0; color: #8ea8bd; font-size: 13px; }
.faction-hunt-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-block: 5px 30px; }
.faction-hunt-facts > div { border-left: 1px solid #9aabcc42; padding-left: 15px; min-width: 0; }
.faction-hunt-facts span { color: #8b9fb8; font-size: 12px; }
.faction-hunt-facts strong { display: block; color: #c2e4f3; font-weight: 500; font-size: 21px; margin-block: 5px 9px; }
.faction-hunt-facts p { color: #8ba3b9; font-size: 12px; margin: 0; }
.faction-hunt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.faction-hunt-card { padding: 25px; background: #111d2c; border-top: 1px solid #a6aed35c; }
.faction-hunt-demon { border-color: #a28cc377; }
.faction-hunt-angel { border-color: #8cbfce77; }
.faction-eyebrow { color: #a6a4cf; font-size: 11px; letter-spacing: 1px; margin-bottom: 10px; }
.faction-hunt-card h3 { font-size: 22px; font-weight: 500; margin-bottom: 14px; color: #d5e4f0; }
.faction-hunt-card p:not(.faction-eyebrow) { color: #91aabd; font-size: 14px; }
.faction-hunt-card ul { padding: 0; margin: 0; list-style: none; color: #b4c8d9; font-size: 14px; }
.faction-hunt-card li { border-top: 1px solid #8b9fb529; padding-block: 7px; }
.faction-rank-track { display: flex; align-items: center; gap: 15px; margin-block: 26px 18px; color: #9eb4c9; font-size: 12px; }
.faction-rank-progress { position: relative; flex: 1; height: 3px; background: #28344c; overflow: hidden; }
.faction-rank-progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--rank-progress, 0%); background: linear-gradient(90deg, #8ca5d5, #a6e2ed); transition: width .25s; }
.faction-rank-progress > i { display: none; }
.faction-rank-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.faction-rank-buttons button { display: block; min-width: 0; min-height: 66px; border: 1px solid #839cbd40; padding: 8px 5px; background: #101d2b; color: #9eb5c8; font-size: 14px; }
.faction-rank-buttons button > small { display: block; font-size: 9px; color: #7f95b2; margin-bottom: 2px; }
.faction-rank-buttons button:hover { border-color: #b8d6e388; color: #d6e6f0; }
.faction-rank-buttons button[aria-pressed="true"] { border-color: #a7dce8; color: #c7eff5; background: #1d3548; }
.faction-rank-buttons button[aria-pressed="true"] > small { color: #b8c7db; }
.faction-rank-detail { display: grid; grid-template-columns: .9fr 1.1fr; margin-top: 22px; border: 1px solid #8f9fc24f; background: radial-gradient(ellipse at top right, #483d6d35, transparent 80%), #101b2a; scroll-margin-top: 110px; }
.faction-rank-summary { padding: 28px; border-right: 1px solid #8f9fc22b; min-width: 0; }
.faction-rank-summary h3 { font-size: 34px; font-weight: 500; color: #d5e9f6; line-height: 1.5; margin-bottom: 22px; }
.faction-rank-summary dl { margin: 0; }
.faction-rank-summary dl > div + div { margin-top: 15px; }
.faction-rank-summary dt { font-size: 12px; color: #879db4; }
.faction-rank-summary dd { margin: 4px 0 0; color: #bed5e7; font-size: 15px; }
.faction-rank-power { min-width: 0; padding: 28px; }
.faction-rank-power > p { font-size: 13px; color: #b6c5dc; margin-bottom: 16px; }
[data-rank-bonuses] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 17px; }
[data-rank-bonuses] > div { min-width: 0; padding-bottom: 12px; border-bottom: 1px solid #829db832; }
[data-rank-bonuses] dt { color: #94aac2; font-size: 12px; }
[data-rank-bonuses] dd { margin: 4px 0 0; color: #c3e8f2; font-size: 23px; line-height: 1.5; }
.faction-rank-power > span { display: block; margin-top: 21px; color: #8e9fb7; font-size: 12px; }
.faction-rank-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 24px; margin-top: 8px; }
.faction-rank-bottom .guide-text-link { font-size: 13px; margin-top: 0; }
.faction-rank-bottom p { color: #879db2; font-size: 12px; margin: 0; }
.faction-rules-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.faction-rules-grid article { padding: 25px; border-left: 2px solid #a9a1d580; background: #111c2d; }
.faction-rules-grid article > span { color: #9c9ac3; font-size: 11px; letter-spacing: 1px; }
.faction-rules-grid h3 { font-size: 20px; font-weight: 500; color: #d2dfec; margin: 10px 0; }
.faction-rules-grid p { font-size: 14px; color: #9eafc3; margin: 0; }
@media (max-width: 1050px) {
  .faction-choice-copy { padding-inline: 24px; }
  .faction-choice-copy > strong { font-size: 29px; }
  .faction-hunt-facts { gap: 15px; }
  .faction-hunt-facts strong { font-size: 18px; }
  .faction-menu-guide dl { gap: 17px; }
  .faction-rank-summary, .faction-rank-power { padding: 24px; }
}
@media (max-width: 960px) {
  .faction-hero { grid-template-columns: 1fr .45fr; gap: 20px; }
  .faction-hero-mark svg { width: 95px; }
  .faction-hero-mark span { font-size: 8px; letter-spacing: 1px; text-align: center; }
  .faction-choices { gap: 20px; }
  .faction-choice-art { aspect-ratio: 1.25; }
  .faction-choice-copy { padding-inline: 22px; }
  .faction-choice-description { font-size: 14px; }
}
@media (max-width: 640px) {
  .faction-page { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .faction-hero { display: block; padding-block: 30px 36px; }
  .faction-hero-mark { display: none; }
  .faction-hero h1 { font-size: 34px; }
  .faction-hero-facts { gap: 16px 20px; }
  .faction-hero-facts > div + div { padding-left: 20px; }
  .faction-hero-facts dd { font-size: 13px; }
  .faction-direction-note { flex-wrap: wrap; padding: 20px; gap: 12px; }
  .faction-direction-note p { flex: 1; min-width: 180px; }
  .faction-direction-note > a { margin: 0 0 0 37px; }
  .faction-reset-compare { grid-template-columns: 1fr; gap: 12px; }
  .faction-rank-toolbar { gap: 12px; }
  .faction-inline-switch { width: 100%; }
  .faction-inline-switch button { flex: 1; padding-inline: 10px; }
  .faction-choices { grid-template-columns: 1fr; gap: 24px; }
  .faction-choice-art { aspect-ratio: 1.45; }
  .faction-choice-copy { padding: 6px 23px 24px; }
  .faction-choice-copy > strong { font-size: 28px; }
  .faction-choice-copy > small { font-size: 10px; }
  .faction-traits { margin-block: 17px; }
  .faction-choice-caption { align-items: start; }
  .faction-choice-caption p { font-size: 12px; }
  .faction-menu-guide { padding: 22px; }
  .faction-menu-guide dl { grid-template-columns: 1fr; gap: 17px; }
  .faction-menu-guide dl > div + div { border-top: 1px solid #8f9fc02b; padding-top: 15px; }
  .faction-hunt-facts { grid-template-columns: 1fr; gap: 17px; }
  .faction-hunt-facts strong { font-size: 21px; }
  .faction-hunt-grid { grid-template-columns: 1fr; }
  .faction-hunt-card { padding: 24px; }
  .faction-rank-buttons { gap: 7px; }
  .faction-rank-buttons button { font-size: 13px; min-height: 61px; padding-inline: 2px; }
  .faction-rank-detail { grid-template-columns: 1fr; }
  .faction-rank-summary { border-right: 0; border-bottom: 1px solid #8f9fc22b; padding: 24px; }
  .faction-rank-summary h3 { font-size: 31px; margin-bottom: 20px; }
  .faction-rank-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .faction-rank-summary dl > div + div { margin-top: 0; }
  .faction-rank-summary dl > div:last-child { grid-column: 1 / -1; }
  .faction-rank-summary dd { font-size: 14px; }
  .faction-rank-power { padding: 24px; }
  .faction-rank-bottom { align-items: start; gap: 5px; }
  .faction-rules-grid article { padding: 22px; }
  .faction-rules-grid h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .faction-choice, .faction-choice img, .faction-rank-progress::after { transition: none; }
}
