:root {
  color-scheme: dark;
  --bg: #131720;
  --panel: #1b202b;
  --soft: #212733;
  --ink: #f4f0e7;
  --muted: #b1b7c4;
  --faint: #929aaa;
  --line: #343a47;
  --accent: #efd09b;
  --active: #34302c;
  --link: #dfc499;
  --display: Georgia, 'Times New Roman', serif;
  font:
    15px/1.55 'DM Sans',
    'Segoe UI',
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a,
button,
select,
input {
  scroll-margin-block: 5rem;
}
[hidden] {
  display: none !important;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 15px;
  z-index: 10;
}
.mast {
  border-bottom: 1px solid var(--line);
  background: #1a1e28;
  position: relative;
  z-index: 5;
}
.mast-inner {
  margin: auto;
  max-width: 1536px;
  min-height: 66px;
  padding: 0 clamp(18px, 3vw, 48px);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  letter-spacing: -0.055em;
  font-weight: 760;
  color: var(--ink);
  white-space: nowrap;
}
.brand b {
  font-weight: 440;
  color: var(--accent);
}
.brand-emblem {
  font-family: var(--display);
  color: var(--accent);
  font-size: 42px;
  line-height: 1;
}
.library-link,
.crumbs {
  color: var(--muted);
  font-size: 13px;
}
.library-link {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.header-search {
  position: relative;
  width: min(360px, 50%);
  margin-left: auto;
}
input[type='search'],
select {
  background: #141821;
  border: 1px solid #424957;
  border-radius: 5px;
  color: var(--ink);
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
}
input::placeholder {
  color: #aeb4c0;
}
.header-search input {
  padding-left: 40px;
  padding-right: 32px;
}
.glass {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1.7px solid var(--muted);
  border-radius: 50%;
  left: 15px;
  top: 13px;
  pointer-events: none;
}
.glass:after {
  content: '';
  display: block;
  width: 7px;
  height: 1.6px;
  background: var(--muted);
  transform: translate(8px, 10px) rotate(43deg);
}
kbd {
  position: absolute;
  right: 11px;
  top: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0 6px;
  border-radius: 3px;
}
#search-results {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  width: min(500px, calc(100vw - 28px));
  max-height: 65vh;
  overflow: auto;
  padding: 6px;
  border: 1px solid #4a5261;
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 8px 24px #0b0e1380;
}
#search-results a {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 4px;
}
#search-results a:hover,
#search-results a:focus {
  background: var(--soft);
}
#search-results small,
#search-results p {
  color: var(--muted);
}
#search-results p {
  padding: 10px;
}
.shell {
  max-width: 1536px;
  margin: auto;
  min-height: 80vh;
}
.with-nav {
  display: grid;
  grid-template-columns: clamp(198px, 17vw, 242px) minmax(0, 1fr);
}
.rail {
  border-right: 1px solid var(--line);
  background: #171b24;
  padding: 22px 15px 32px 18px;
}
.rail-head {
  margin: 0 7px 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.game-name {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.25;
}
.rail nav section + section {
  margin-top: 17px;
}
.rail nav h2,
.eyebrow {
  font:
    650 10px/1.4 system-ui,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
}
.rail nav h2 {
  padding: 0 10px 6px;
  color: var(--faint);
  font-size: 10px;
}
.rail nav a {
  display: block;
  border-left: 2px solid transparent;
  padding: 4px 9px;
  font-size: 13px;
  color: #c6c9d0;
  border-radius: 0 4px 4px 0;
}
.rail nav a:hover {
  background: var(--soft);
  color: var(--ink);
}
.rail nav a[aria-current='page'] {
  background: var(--active);
  color: var(--accent);
  border-left-color: var(--accent);
}
main {
  min-width: 0;
  padding: 28px clamp(20px, 3.6vw, 60px) 64px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 12px;
  margin: 0 0 18px;
}
.crumbs span {
  color: #737c8b;
}
h1 {
  font: 500 clamp(36px, 4.7vw, 70px)/1.02 var(--display);
  letter-spacing: -0.052em;
}
h2 {
  font-size: clamp(20px, 2.1vw, 29px);
  letter-spacing: -0.036em;
  line-height: 1.2;
}
h3 {
  font-size: 17px;
  line-height: 1.25;
}
.page-title p,
.entry-heading p {
  max-width: 76ch;
  color: #c1c6d0;
  margin-top: 12px;
}
.page-title,
.entry-heading {
  margin-bottom: 24px;
}
.entry-heading .eyebrow {
  display: block;
  margin-bottom: 9px;
}
.page-title h1,
.entry-heading h1 {
  font-size: clamp(36px, 4vw, 56px);
}
.entry-heading p {
  font-size: 17px;
}
.module {
  margin-top: 30px;
}
.module h2,
.library h2 {
  margin-bottom: 13px;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.section-title > a,
.neighbors a,
.callout a,
.module > a,
.sources a,
.inline-links a {
  color: var(--accent);
}
.section-title > a {
  font-size: 13px;
}
.cover {
  min-height: 245px;
  display: flex;
  align-items: end;
  padding: clamp(24px, 3.5vw, 55px);
  background: var(--panel);
  border: 1px solid #47515d;
  border-radius: 8px;
  overflow: hidden;
}
.resonance-cover {
  background-image:
    linear-gradient(90deg, #0a121df2 0%, #101822b0 32%, #131c2c12 75%),
    linear-gradient(0deg, #0f182580, transparent 60%), url(/assets/resonance/capital.webp);
  background-size: cover;
  background-position: center 53%;
}
.cover h1 {
  margin: 12px 0 18px;
  max-width: 10.5em;
  font-size: clamp(42px, 5vw, 78px);
  text-shadow: 0 2px 18px #121723;
}
.cover .eyebrow {
  color: #ffe2a7;
}
.primary {
  display: inline-block;
  padding: 8px 15px;
  background: var(--accent);
  color: #232027;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}
.primary:hover {
  background: #f8deac;
  color: #1a1920;
}
.shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
}
.folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  padding: 16px 20px;
}
.folder strong,
.folder small,
.guide-row small,
.chapter-row small,
.person small,
.slot small {
  display: block;
}
.folder strong {
  font-size: 16px;
}
.folder small,
.guide-row small,
.chapter-row small,
.person small,
.slot small,
.table-meta,
.filterbar label,
.sources small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.folder b,
.guide-row > span,
.chapter-row b {
  color: var(--accent);
  font-weight: 450;
}
.folder:hover,
.person:hover,
.guide-row:hover,
.chapter-row:hover {
  background-color: var(--soft);
}
.shortcuts .folder:nth-child(2n) {
  border-left: 1px solid var(--line);
}
.shortcuts .folder:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.person {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  transition: border-color 0.15s;
}
.person:hover {
  border-color: #8b7c69;
}
.person img {
  display: block;
  width: 100%;
  height: 65px;
  object-fit: cover;
  object-position: 12% center;
  background: #282b34;
}
.person div {
  padding: 8px 12px 10px;
}
.person strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 23px;
}
.person small {
  font-size: 11px;
}
.directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  gap: 16px;
  padding-top: 16px;
}
.directory h3 {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 6px;
}
.directory a {
  color: var(--muted);
  font-size: 13px;
  display: block;
  padding: 3px 0;
}
.directory a:hover {
  color: var(--ink);
}
.library {
  margin-top: 36px;
}
.library .folder {
  border: 1px solid var(--line);
  border-radius: 5px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin: 0 0 20px;
}
.tabs a,
.jump a,
.inline-links a,
.track {
  padding: 6px 12px;
  font-size: 13px;
  white-space: normal;
  border-radius: 4px;
}
.tabs a {
  color: #c9cbd2;
}
.tabs a:hover,
.jump a:hover {
  background: var(--soft);
}
.tabs a[aria-current='page'],
.track[aria-pressed='true'] {
  background: var(--accent);
  color: #252027;
  font-weight: 700;
}
.small {
  margin-bottom: 16px;
}
.jump,
.inline-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.jump {
  margin: 13px 0;
}
.jump a,
.inline-links a,
.track {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--link);
}
.track {
  margin-bottom: 10px;
}
.track[aria-pressed='true'] {
  border-color: var(--accent);
}
.catalog {
  min-width: 0;
}
.filterbar {
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 14px 15px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 5px;
}
.filterbar label {
  flex: 0 1 auto;
  font-size: 11px;
  font-weight: 630;
  color: var(--muted);
}
.filterbar .filter-name {
  flex: 1;
  min-width: 120px;
}
.filterbar select,
.filterbar input {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}
.table-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 12px;
}
.table-meta label {
  margin-left: auto;
}
.table-meta input {
  vertical-align: middle;
  accent-color: var(--accent);
}
.table-meta button {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 12px;
}
.table-section {
  scroll-margin: 16px;
}
.table-section h2 {
  font: 500 23px var(--display);
  color: var(--ink);
  margin: 18px 0 12px;
}
.table-section + .table-section {
  margin-top: 24px;
}
.scroll-table {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 11px;
  letter-spacing: 0.035em;
  color: #d2c6ae;
  background: #232832;
  font-weight: 650;
}
th,
td {
  padding: 11px 14px;
  vertical-align: top;
}
td {
  border-top: 1px solid var(--line);
  color: #c4c9d3;
  line-height: 1.48;
}
td:first-child {
  color: var(--ink);
}
td > a,
.xref {
  color: var(--link);
}
.catalog-table td a {
  font-weight: 640;
  color: var(--ink);
}
td a:hover,
.xref:hover,
.sources a:hover,
.inline-links a:hover,
.guide-row:hover strong,
.chapter-row:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.catalog-table tr:nth-child(even) {
  background: #191d26;
}
.catalog-table tbody tr:hover {
  background: var(--soft);
}
.spoiler-flag {
  font-size: 10px;
  color: var(--muted);
}
.empty,
.warn {
  padding: 12px 16px;
  background: var(--panel);
  border-left: 2px solid var(--accent);
  font-size: 13px;
}
.guide-row,
.chapter-row,
.slot {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 14px 8px;
}
.guide-row,
.chapter-row {
  justify-content: space-between;
}
.guide-row strong,
.chapter-row strong {
  font-size: 17px;
}
.guide-row small {
  max-width: 90ch;
  margin-top: 3px;
}
.chapter-row > span,
.slot-number {
  color: var(--accent);
  font-size: 13px;
  min-width: 76px;
}
.chapter-row > div {
  flex: 1;
}
.char-heading {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.char-heading > div {
  flex: 1;
  min-width: 0;
}
.char-heading img {
  height: 110px;
  width: 34%;
  object-fit: cover;
  object-position: left center;
  border-radius: 4px;
}
.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(120px, 22%) minmax(0, 1fr);
  gap: 16px;
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
}
.facts dt,
.loadout-strip small {
  font-size: 13px;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  max-width: 88ch;
}
.steps {
  padding-left: 23px;
  margin: 0;
}
.steps li {
  padding: 0 0 11px 6px;
  max-width: 94ch;
}
.steps li::marker {
  color: var(--accent);
  font-weight: bold;
}
.xref {
  text-decoration: underline;
  text-decoration-color: #776b57;
  text-underline-offset: 2px;
}
.loadout-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 34px;
  background: var(--panel);
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  margin-bottom: 12px;
}
.loadout-strip small {
  display: block;
}
.loadout-strip a,
.slot a {
  color: var(--link);
}
.slot-number {
  min-width: 20px;
}
.slot p {
  margin-top: 3px;
}
.sources {
  margin-top: 35px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.sources summary {
  font-weight: 650;
}
.sources summary span {
  margin-left: 12px;
  font-weight: 400;
  color: var(--muted);
}
.sources li {
  padding: 3px 0;
}
.sources li small {
  margin-left: 6px;
}
.neighbors {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 16px;
}
.callout {
  border-left: 2px solid var(--accent);
  padding: 10px 15px;
  background: var(--panel);
  margin-bottom: 15px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px clamp(16px, 4vw, 64px);
  color: var(--muted);
  font-size: 12px;
}
footer .brand {
  font-size: 17px;
}
footer .brand-emblem {
  font-size: 26px;
}
footer > span:last-child {
  margin-left: auto;
}
@media (max-width: 1040px) {
  .roster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rail {
    padding-left: 9px;
  }
  .filterbar {
    flex-wrap: wrap;
  }
  .filterbar label {
    flex: 1;
  }
  .filterbar .filter-name {
    flex: 2;
  }
}
@media (max-width: 760px) {
  .mast-inner {
    min-height: 56px;
    padding: 0 14px;
    gap: 12px;
  }
  .brand {
    gap: 5px;
    font-size: 19px;
  }
  .brand-emblem {
    font-size: 32px;
  }
  .library-link,
  kbd {
    display: none;
  }
  .header-search {
    width: min(65%, 360px);
  }
  .header-search input {
    font-size: 13px;
    padding-right: 8px;
  }
  .with-nav {
    display: block;
  }
  .rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 16px;
  }
  .rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    padding: 9px 0;
    margin: 0;
  }
  .game-name {
    font-size: 16px;
  }
  .rail-head button {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-size: 12px;
    padding: 7px 10px;
  }
  .rail-head button span {
    margin-left: 4px;
  }
  .rail nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 0 18px;
  }
  .rail nav section + section {
    margin: 0;
  }
  .rail nav a {
    padding: 7px 9px;
  }
  .js .rail nav:not(.open) {
    display: none;
  }
  main {
    padding: 18px 15px 44px;
  }
  .cover {
    min-height: 211px;
    padding: 22px;
  }
  .cover h1 {
    max-width: 9em;
  }
  .folder {
    padding: 12px;
  }
  .folder small {
    font-size: 11px;
  }
  .roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-title,
  .entry-heading {
    margin-bottom: 18px;
  }
  .page-title p,
  .entry-heading p {
    font-size: 15px;
  }
  .crumbs {
    margin-bottom: 14px;
  }
  .tabs {
    gap: 3px;
    padding-bottom: 8px;
  }
  .tabs a {
    font-size: 12px;
    padding: 6px 9px;
  }
  .module {
    margin-top: 24px;
  }
  .section-title > a {
    font-size: 12px;
  }
  .filterbar {
    gap: 8px;
    padding: 10px;
  }
  .filterbar .filter-name {
    flex: 1 0 100%;
  }
  .filterbar select {
    min-width: 0;
  }
  .filterbar label {
    min-width: 0;
  }
  .facts > div {
    grid-template-columns: minmax(85px, 27%) minmax(0, 1fr);
    gap: 10px;
    padding: 9px 3px;
  }
  .char-heading {
    padding: 15px;
  }
  .char-heading img {
    width: 30%;
    height: 78px;
  }
  .scroll-table table {
    font-size: 12px;
  }
  th,
  td {
    padding: 9px 8px;
  }
  .catalog-table th {
    font-size: 10px;
  }
  .catalog-table td:first-child {
    min-width: 76px;
  }
  .data-table th,
  .data-table td {
    min-width: 60px;
  }
  .table-meta {
    min-height: 40px;
  }
  .jump a,
  .inline-links a {
    font-size: 12px;
  }
  .sources {
    margin-top: 24px;
  }
  .cover .primary {
    padding: 7px 10px;
  }
  footer > span:last-child {
    margin-left: 0;
  }
}
@media (max-width: 440px) {
  .shortcuts .folder {
    align-items: start;
    gap: 3px;
  }
  .folder strong {
    font-size: 14px;
  }
  .folder small {
    line-height: 1.35;
    margin-top: 3px;
  }
  .rail nav {
    column-gap: 4px;
  }
  .page-title h1,
  .entry-heading h1 {
    font-size: 36px;
  }
  .filterbar .filter-name {
    min-width: 100%;
  }
  .char-heading img {
    width: 24%;
  }
  .directory {
    column-gap: 8px;
  }
  .catalog-table td {
    overflow-wrap: anywhere;
  }
  .catalog-table td[data-label='Where to get it'] {
    min-width: 92px;
  }
  .catalog-table td[data-label='Stats or effect'] {
    min-width: 70px;
  }
}

.track-col {
  width: 3rem;
}
.pickup-check {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}
.data-table tr:has(.pickup-check:checked) {
  background: #272a29;
}

.subcell {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--faint);
}
@media (max-width: 600px) {
  .catalog-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .catalog-table,
  .catalog-table tbody,
  .catalog-table tr {
    display: block;
  }
  .catalog-table tr {
    padding: 10px 12px;
    border-top: 1px solid var(--line);
  }
  .catalog-table tbody tr:first-child {
    border-top: 0;
  }
  .catalog-table td {
    display: grid;
    grid-template-columns: 6.3rem minmax(0, 1fr);
    gap: 1px 8px;
    padding: 3px 0;
    border: 0;
    min-width: 0;
    overflow-wrap: break-word;
  }
  .catalog-table td:before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--faint);
  }
  .catalog-table td:has(a) {
    display: block;
    font-size: 15px;
    padding: 1px 0 5px;
  }
  .catalog-table td:has(a):before {
    display: none;
  }
  .catalog-table td .subcell {
    grid-column: 2;
    margin: 0;
  }
}
