@charset "UTF-8";

/* Shared styles and responsive adjustments. */

:root {
  --serif: "Gowun Batang","Noto Serif KR","Noto Serif CJK KR","NanumMyeongjo","Batang",serif;
  --sans: "Pretendard","Apple SD Gothic Neo","Malgun Gothic","Apple Gothic Neo",sans-serif;
  color: var(--text);
  font-family: var(--sans);
  font-synthesis: none;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-size: 16px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: break-word;
}

button, input, select {
  font: inherit;
}

button, a, input, select, summary {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  background: none;
  color: inherit;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p, blockquote {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--red-text);
  outline-offset: 5px;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 18px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 20px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: calc(100% - 100px);
  max-width: 1280px;
  margin-inline: auto;
}

.section {
  padding-block: 88px;
}

.dark {
  background: var(--bg);
  color: var(--text);
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  letter-spacing: .13em;
  color: var(--red-text);
  margin-bottom: 42px;
}

.section-label>span:last-child {
  text-align: right;
}

.display-title {
  font-family: var(--serif);
  font-size: clamp(30px,3.3vw,45px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.045em;
}

.eyebrow {
  display: block;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.7;
}

.lead {
  font-size: 20px;
  line-height: 1.95;
  letter-spacing: -.025em;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 45px;
  margin-bottom: 36px;
}

.section-heading>p {
  color: var(--muted);
  line-height: 2;
}

.section-description {
  font-size: 16px;
  line-height: 2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 13px 20px;
  line-height: 1.65;
  border: 1px solid transparent;
  transition: background .2s,border-color .2s,color .2s;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 8px 0;
  border-bottom: 1px solid #363636;
  line-height: 1.8;
}

.text-link span {
  font-size: 18px;
}

.site-header {
  height: 84px;
  padding-inline: 50px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  white-space: nowrap;
}

.main-nav>a {
  position: relative;
  padding: 27px 0;
  transition: color .2s;
}

.main-nav>a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 20px;
  height: 1px;
  transition: right .2s;
}

.main-nav>a:hover {
  color: #dedede;
}

.main-nav>a:hover:after {
  right: 0;
}

.header-note {
  font-family: Georgia,serif;
  font-size: 9px;
  letter-spacing: .11em;
}

.menu-toggle {
  display: none;
}

.hero-edition {
  text-align: center;
  padding-block: 33px 37px;
}

.hero-edition>.eyebrow {
  letter-spacing: .2em;
}

.hero-edition h1 {
  font-family: var(--serif);
  font-weight: 400;
  margin-top: 10px;
}

.hero-edition h1>em {
  font-style: normal;
  font-weight: 400;
}

.cover-row {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  align-items: start;
}

.cover-panel {
  display: block;
  min-width: 0;
  width: 100%;
  text-align: left;
}

.cover-panel-image {
  display: block;
  position: relative;
  aspect-ratio: 832/1216;
  background: #080808;
  border: 1px solid #363636;
  overflow: hidden;
}

.cover-panel-image>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter .3s;
}

.cover-panel:hover .cover-panel-image>img {
  filter: brightness(1.06);
}

.cover-panel-number {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: Georgia,serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  color: #dedede;
  text-shadow: 0 1px 8px #11111199;
}

.cover-panel-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 0 0;
  line-height: 1.6;
}

.cover-panel-caption>strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.04em;
}

.cover-panel-caption>small {
  white-space: nowrap;
}

.intro-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.intro-copy>p+p {
  margin-top: 21px;
  line-height: 2.1;
}

.county-notes {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 40px;
  margin-top: 34px;
}

.county-notes article+article {
  border-left: 1px solid var(--line);
  padding-left: 29px;
}

.county-notes article>span {
  letter-spacing: .15em;
  display: block;
  margin-bottom: 13px;
}

.county-notes h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -.035em;
}

.county-notes p {
  margin-top: 13px;
  line-height: 2.05;
}

.order-layout {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 90px;
  align-items: start;
}

.order-layout .section-description {
  margin-top: 25px;
}

.body-copy {
  line-height: 2.1;
  max-width: 510px;
  margin-top: 21px;
}

.creed {
  align-self: center;
  border-left: 1px solid #808080;
  padding: 13px 0 13px 39px;
}

.creed>span {
  font-family: Georgia,serif;
  letter-spacing: .2em;
}

.creed>p {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 2;
  font-weight: 400;
  letter-spacing: -.05em;
  margin-top: 20px;
}

.creed em {
  font-style: normal;
}

.creed footer {
  line-height: 2;
  margin-top: 23px;
}

.name-covenant {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 35px;
  margin-top: 48px;
}

.covenant-heading h3 {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -.09em;
  margin-top: 9px;
}

.covenant-heading h3>span {
  font-size: 17px;
  letter-spacing: .15em;
  margin-left: 21px;
}

.covenant-copy>p {
  line-height: 2.1;
}

.covenant-copy .fine-copy {
  margin-top: 15px;
}

.name-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 21px;
}

.name-examples>span {
  font-family: var(--serif);
  padding: 3px 13px;
  border: 1px solid #363636;
}

.daily-order {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 36px;
  margin-top: 22px;
}

.daily-order details {
  border-bottom: 1px solid var(--line);
}

.daily-order summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-block: 16px;
}

.daily-order summary>span {
  font-size: 21px;
  line-height: 1;
  font-weight: 300;
}

.daily-order details[open] summary>span {
  transform: rotate(45deg);
}

.daily-order p {
  line-height: 2;
}

.commandments-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}

.commandments-heading .display-title {
  font-size: 47px;
  margin-top: 8px;
}

.commandments-heading>p {
  line-height: 2;
}

.commandments {
  list-style: none;
  margin: 0;
  padding: 0;
}

.commandments>li {
  display: grid;
  grid-template-columns: 100px 1fr 35px;
  align-items: center;
  gap: 30px;
  border-top: 1px solid #363636;
  padding: 30px 0;
}

.commandments>li:last-child {
  border-bottom: 1px solid #363636;
}

.commandment-number {
  font-family: Georgia,serif;
  font-size: 63px;
  line-height: 1.15;
  font-weight: 400;
}

.commandments h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: -.035em;
  margin: 9px 0 3px;
}

.commandments .eyebrow {
  letter-spacing: .1em;
}

.commandment-mark {
  font-size: 22px;
  text-align: right;
}

.commandment-footnote {
  max-width: 680px;
  margin: 28px auto 0;
  font-family: var(--serif);
  line-height: 2.1;
  letter-spacing: -.025em;
  text-align: center;
}

.hierarchy-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 90px;
}

.hierarchy-intro {
  position: sticky;
  top: 115px;
  align-self: start;
}

.hierarchy-intro .section-label {
  border: 0;
  padding: 0;
  margin-bottom: 17px;
}

.hierarchy-intro>p {
  line-height: 2;
  margin-top: 25px;
  max-width: 355px;
}

.rank {
  border-top: 1px solid var(--line);
}

.rank:last-child {
  border-bottom: 1px solid var(--line);
}

.rank summary {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-block: 17px;
}

.rank-index {
  font-family: Georgia,serif;
  font-size: 13px;
  min-width: 26px;
}

.rank summary strong {
  display: block;
  font-size: 17px;
  line-height: 1.6;
}

.rank summary small {
  display: block;
  font-family: Georgia,serif;
  letter-spacing: .1em;
  margin-top: 3px;
}

.rank summary>b {
  font-size: 21px;
  line-height: 1;
  font-weight: 300;
  margin-left: auto;
}

.rank[open] summary>b {
  transform: rotate(45deg);
}

.rank p {
  line-height: 2;
  padding: 0 23px 22px 51px;
}

.parallel-ranks {
  border-top: 1px solid var(--line);
  padding-block: 17px 22px;
}

.parallel-heading {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 15px;
}

.parallel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 11px;
  padding-left: 51px;
}

.parallel-grid details {
  padding: 10px 13px;
}

.parallel-grid summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.parallel-grid summary>span {
  font-size: 19px;
}

.parallel-grid details[open] summary>span {
  transform: rotate(45deg);
}

.parallel-grid p {
  line-height: 2;
  padding-top: 11px;
}

.district-tabs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border-top: 1px solid #727272;
  border-bottom: 1px solid #727272;
}

.district-tabs>button {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 23px 20px;
  text-align: left;
  border-right: 1px solid #363636;
  transition: background .2s,color .2s;
}

.district-tabs>button:last-child {
  border-right: 0;
}

.district-tabs>button>span {
  font-family: Georgia,serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.district-tabs strong {
  display: block;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -.03em;
}

.district-tabs small {
  display: block;
  font-family: Georgia,serif;
  font-size: 8px;
  letter-spacing: .13em;
  margin-top: 5px;
}

.district-tabs i {
  font-style: normal;
  font-size: 21px;
  margin-left: auto;
}

.district-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
  margin-top: 37px;
}

.district-text {
  max-width: 500px;
}

.district-text h3 {
  font-family: var(--serif);
  font-size: 43px;
  font-weight: 400;
  letter-spacing: -.06em;
  margin: 8px 0 17px;
}

.district-description {
  line-height: 2.1;
}

.district-facts {
  margin: 23px 0 19px;
  border-top: 1px solid #363636;
}

.district-facts>div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  border-bottom: 1px solid #363636;
  padding-block: 11px;
}

.district-facts dd {
  margin: 0;
}

.district-visuals {
  min-width: 0;
  align-self: stretch;
  display: grid;
  align-items: center;
}

.region-image-slot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #363636;
}

.region-image-slot:before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #363636;
  pointer-events: none;
}

.region-image-slot>img {
  inset: 0;
}

.character-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.group-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.group-filters>button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
}

.group-filters>button>span {
  font-family: Georgia,serif;
  font-size: 11px;
  margin-left: 5px;
}

.character-search {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.character-search select {
  padding: 9px 28px 9px 12px;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #727272;
  border-radius: 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border-bottom: 1px solid #727272;
  padding: 4px 4px 4px 8px;
}

.search-field>span {
  font-family: Georgia,serif;
  font-size: 27px;
  line-height: 1;
}

.search-field>input {
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 190px;
  min-width: 0;
  padding: 7px 0;
}

.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 18px;
  letter-spacing: .1em;
}

.result-line>span:last-child {
  letter-spacing: 0;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 30px 22px;
}

.character-card {
  display: block;
  text-align: left;
  min-width: 0;
  transition: transform .25s;
}

.character-image {
  display: block;
  position: relative;
  aspect-ratio: 1.4074;
  background: #0e0e0e;
  overflow: hidden;
  border: 1px solid #363636;
}

.character-image>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter .3s;
}

.character-card:hover {
  transform: translateY(-3px);
}

.character-card:hover .character-image>img {
  filter: brightness(1.06);
}

.character-copy {
  display: block;
  border-bottom: 1px solid #363636;
  padding: 16px 0 14px;
}

.character-role {
  display: block;
  margin-bottom: 5px;
}

.character-name {
  display: block;
  font-family: var(--serif);
  line-height: 1.6;
  letter-spacing: -.055em;
}

.character-celestial {
  display: block;
  min-height: 20px;
  margin-top: 3px;
}

.character-traits {
  display: block;
  line-height: 1.9;
  margin-top: 10px;
}

.character-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  line-height: 1.8;
  margin-top: 13px;
}

.character-card-bottom>b {
  font-size: 20px;
  font-weight: 400;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  border: 1px solid #363636;
}

.empty-state h3 {
  color: var(--subheading);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.empty-state p {
  font-size: 13px;
  margin: 13px 0 22px;
}

.noscript-message {
  padding: 28px;
  border: 1px solid #363636;
}

.nameless-section {
  border-top: 1px solid #363636;
}

.nameless-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.nameless-section .section-label {
  border: 0;
  padding: 0;
  margin-bottom: 27px;
}

.nameless-english {
  font-family: Georgia,serif;
  font-size: clamp(51px,6.2vw,83px);
  line-height: .98;
  letter-spacing: -.04em;
}

.nameless-english em {
  font-style: italic;
  letter-spacing: -.065em;
  font-size: .92em;
}

.nameless-section h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.045em;
  margin-top: 28px;
}

.nameless-definition {
  line-height: 2;
  margin-top: 17px;
}

.nameless-section .text-link {
  margin-top: 23px;
}

.nameless-copy {
  padding-top: 28px;
}

.nameless-copy .lead {
  font-size: 20px;
}

.nameless-copy>p:not(.lead) {
  line-height: 2.1;
  margin-top: 22px;
}

.nameless-activities {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid #363636;
}

.nameless-activities>li {
  display: flex;
  align-items: start;
  gap: 20px;
  padding-block: 12px;
  border-bottom: 1px solid #363636;
}

.nameless-activities>li>span {
  font-family: Georgia,serif;
  font-size: 11px;
  flex-shrink: 0;
}

.sealed-section {
  padding-block: 44px;
}

.sealed-record {
  border-top: 1px solid #363636;
  border-bottom: 1px solid #363636;
}

.sealed-record>summary {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 28px;
}

.sealed-stamp {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 69px;
  height: 69px;
  border: 1px solid #808080;
  border-radius: 50%;
  font-family: Georgia,serif;
  font-size: 43px;
  line-height: 1;
}

.sealed-record summary small {
  display: block;
  letter-spacing: .11em;
  font-weight: 500;
}

.sealed-record summary strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -.04em;
  line-height: 1.7;
  margin-top: 4px;
}

.sealed-record summary em {
  display: block;
  font-style: normal;
  margin-top: 6px;
}

.sealed-record summary>b {
  font-size: 27px;
  line-height: 1;
  font-weight: 300;
  margin-left: auto;
}

.sealed-record[open] summary>b {
  transform: rotate(45deg);
}

.sealed-body {
  max-width: 780px;
  margin-left: 97px;
  padding: 0 25px 35px 0;
}

.sealed-body .lead {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.95;
  margin-bottom: 24px;
}

.sealed-body>p:not(.lead) {
  line-height: 2.1;
}

.spoiler-banner {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 15px;
  margin-bottom: 23px;
  border-left: 2px solid #929292;
}

.spoiler-banner>strong {
  font-size: 10px;
  letter-spacing: .17em;
  line-height: 1.8;
}

.spoiler-banner>span {
  font-size: 12px;
  line-height: 1.9;
}

.spoiler-tag {
  display: inline-flex;
  padding: 3px 8px;
  font-size: 9px;
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: .14em;
}

.site-footer {
  padding: 38px 0 140px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid #363636;
  padding-bottom: 28px;
}

.footer-top>p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
}

.back-top {
  font-size: 11px;
  color: #dedede;
}

.back-top>span {
  font-size: 21px;
  margin-left: 22px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  letter-spacing: .06em;
}

.footer-bottom>span:last-child {
  font-family: Georgia,serif;
  letter-spacing: .13em;
}

.music-dock {
  position: fixed;
  right: max(22px,env(safe-area-inset-right));
  bottom: max(21px,env(safe-area-inset-bottom));
  width: 294px;
  max-width: calc(100vw - 30px);
  border: 1px solid #363636;
  box-shadow: 0 5px 28px #0b0b0b4d;
  backdrop-filter: blur(12px);
  z-index: 40;
}

.music-main {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px 11px 13px;
}

.music-play {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  border: 1px solid var(--crimson);
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.music-title {
  flex: 1;
  min-width: 0;
}

.music-title>strong {
  font-family: Georgia,serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .01em;
  display: block;
}

.music-title>span {
  display: block;
  line-height: 1.8;
  margin-top: 3px;
}

.music-expand {
  display: grid;
  place-items: center;
  width: 30px;
  height: 40px;
  font-size: 23px;
  line-height: 1;
}

.music-expand[aria-expanded="true"] {
  transform: rotate(180deg);
}

.music-expanded {
  padding: 13px 16px 0;
}

.music-time {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.music-expanded input {
  width: 100%;
  height: 22px;
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 3px;
}

.volume-row>label {
  font-size: 10px;
  color: #dedede;
  flex-shrink: 0;
}

.volume-row>input {
  min-width: 0;
}

body.dialog-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.character-dialog {
  border: 0;
  padding: 0;
  max-width: none;
}

.zoom-dialog {
  border: 0;
  max-width: none;
}

.character-dialog {
  width: min(1160px,calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  margin: auto;
}

.character-dialog::backdrop, .zoom-dialog::backdrop {
  background: #0b0b0bde;
  backdrop-filter: blur(6px);
}

.profile-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 25px;
  padding: 24px 32px 21px;
  border-bottom: 1px solid #363636;
  backdrop-filter: blur(10px);
}

.profile-header .eyebrow {
  letter-spacing: .1em;
}

.profile-header h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.055em;
  margin-top: 3px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.profile-tags>span {
  padding: 2px 9px;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border: 1px solid #727272;
  font-family: Arial,sans-serif;
  font-size: 30px;
  font-weight: 200;
  line-height: 1;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 35px;
  padding: 29px 32px 32px;
}

.profile-gallery, .profile-content {
  min-width: 0;
}

.portrait-frame {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  aspect-ratio: 38/27;
  overflow: hidden;
  background: #151515;
}

.portrait-frame>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zoom-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #2b2b2bde;
  color: #dedede;
  font-size: 10px;
  padding: 3px 9px;
}

.portrait-status {
  position: absolute;
  place-items: center;
  pointer-events: none;
  color: #dedede;
  text-align: center;
}

.expression-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.expression-toolbar>button {
  width: 44px;
  height: 42px;
  border: 1px solid #727272;
  font-size: 21px;
  line-height: 1;
}

.expression-thumbs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 7px;
  margin-top: 13px;
}

.expression-thumbs>button {
  min-width: 0;
  padding: 3px;
  border: 1px solid transparent;
}

.expression-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 38/27;
  object-fit: contain;
  background: #191919;
}

.expression-thumbs span {
  display: block;
  line-height: 1.8;
  margin-top: 3px;
}

.profile-quote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.95;
  letter-spacing: -.04em;
  border-left: 2px solid #808080;
  padding-left: 17px;
  margin: 24px 5px 0;
}

.profile-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid #363636;
  padding-bottom: 10px;
  margin-bottom: 17px;
}

.profile-section-title>span {
  font-family: Georgia,serif;
  letter-spacing: .12em;
}

.profile-summary {
  line-height: 2.05;
  margin-bottom: 20px;
}

.profile-facts {
  margin: 0;
}

.profile-facts>div {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #363636;
}

.profile-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.character-history {
  border: 1px solid #363636;
  margin-top: 27px;
}

.character-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 16px;
}

.character-history summary>span>strong {
  display: block;
  color: var(--subheading);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .02em;
  margin-top: 8px;
}

.character-history summary small {
  display: block;
  line-height: 1.9;
  margin-top: 4px;
}

.character-history summary>b {
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
}

.character-history[open] summary>b {
  transform: rotate(45deg);
}

.character-history>div {
  padding: 16px;
  border-top: 1px solid #363636;
}

.character-history p {
  line-height: 2.05;
}

.character-history .secret-role {
  padding: 9px 11px;
  margin-bottom: 16px;
  border: 1px solid #363636;
  font-weight: 500;
}

.character-history .secret-role+p {
  margin-top: 0;
}

.profile-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #363636;
  margin-top: 24px;
  padding-top: 14px;
}

.profile-navigation>button {
  min-height: 44px;
  padding: 5px 0;
}

.profile-navigation>span {
  font-family: Georgia,serif;
  font-size: 11px;
  flex-shrink: 0;
}

.zoom-dialog {
  width: min(1350px,calc(100vw - 32px));
  max-height: calc(100vh - 26px);
  max-height: calc(100dvh - 26px);
  overflow: auto;
  margin: auto;
  padding: 56px 20px 12px;
  background: #151515;
  color: #dedede;
}

.zoom-dialog>.dialog-close {
  position: absolute;
  right: 13px;
  top: 10px;
  z-index: 1;
  background: #2b2b2b;
  border-color: #363636;
  color: #dedede;
}

.zoom-dialog>img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}

.zoom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}

.zoom-toolbar>button {
  width: 48px;
  height: 44px;
  font-size: 23px;
  color: #dedede;
}

.zoom-toolbar>span {
  font-size: 12px;
  color: #b0b0b0;
  text-align: center;
}

@media (min-width:1600px) {
  .container {
    max-width: 1320px;
  }
  .site-header {
    padding-inline: max(50px,calc((100vw - 1420px)/2));
  }
  .hero-edition {
    padding-block: 40px 43px;
  }
}

@media (max-width:1180px) {
  .container {
    width: calc(100% - 70px);
  }
  .site-header {
    padding-inline: 35px;
  }
  .header-note {
    display: none;
  }
  .cover-panel-caption>strong {
    font-size: 15px;
  }
  .intro-layout, .order-layout, .hierarchy-layout {
    gap: 60px;
  }
  .name-covenant {
    gap: 55px;
  }
  .district-panel {
    gap: 40px;
  }
  .district-tabs>button {
    padding: 20px 13px;
    gap: 12px;
  }
  .district-tabs strong {
    font-size: 17px;
  }
  .district-tabs i {
    font-size: 19px;
  }
  .nameless-layout {
    gap: 65px;
  }
}

@media (max-width:900px) {
  .site-header {
    height: 78px;
  }
  .main-nav {
    gap: 21px;
  }
  .hero-edition {
    padding-block: 28px 31px;
  }
  .cover-row {
    gap: 10px;
  }
  .cover-panel-caption {
    display: block;
  }
  .cover-panel-caption>small {
    display: block;
    margin-top: 4px;
  }
  .hierarchy-intro {
    top: 106px;
  }
  .character-search {
    margin-left: 0;
  }
}

@media (max-width:700px) {
  .section-label {
    padding-bottom: 14px;
  }
  .site-header {
    padding-inline: 18px;
    gap: 16px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 11px;
    color: #dedede;
  }
  .menu-toggle>i {
    display: block;
    height: 9px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    position: relative;
    transition: transform .2s;
  }
  .menu-toggle[aria-expanded="true"]>i {
    height: 1px;
    border-bottom: 0;
    transform: rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"]>i:after {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    border-top: 1px solid;
    transform: rotate(90deg);
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    padding: 11px 18px 20px;
    border-bottom: 1px solid #363636;
  }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav>a {
    padding: 12px 4px;
    border-bottom: 1px solid #363636;
  }
  .main-nav>a:after {
    display: none;
  }
  .hero-edition {
    padding-block: 26px 28px;
  }
  .hero-edition h1 {
    margin-top: 10px;
  }
  .cover-row {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 5px;
  }
  .cover-panel-number {
    font-size: 17px;
    top: 7px;
    left: 6px;
  }
  .cover-panel-caption {
    padding-top: 8px;
    text-align: center;
  }
  .cover-panel-caption>strong {
    letter-spacing: -.05em;
  }
  .cover-surname {
    display: none;
  }
  .cover-panel-caption>small {
    margin-top: 3px;
  }
  .intro-copy>p+p {
    margin-top: 17px;
  }
  .county-notes article>span {
    margin-bottom: 9px;
  }
  .order-layout .section-description {
    margin-top: 18px;
  }
  .body-copy {
    margin-top: 17px;
  }
  .creed {
    padding: 8px 0 8px 22px;
  }
  .creed>p {
    margin-top: 15px;
  }
  .creed footer {
    margin-top: 17px;
  }
  .covenant-heading h3 {
    font-size: 37px;
    margin: 0;
    white-space: nowrap;
  }
  .covenant-heading h3>span {
    font-size: 14px;
    margin-left: 14px;
  }
  .name-examples {
    margin-top: 19px;
  }
  .daily-order {
    gap: 0;
  }
  .commandments-heading .display-title {
    margin-top: 6px;
  }
  .commandments-heading>p {
    margin-top: 17px;
  }
  .hierarchy-intro .display-title>br {
    display: none;
  }
  .hierarchy-intro>p {
    max-width: none;
  }
  .rank p {
    padding-left: 47px;
  }
  .district-text {
    max-width: none;
  }
  .character-controls {
    gap: 15px;
  }
  .group-filters {
    justify-content: space-between;
    width: 100%;
  }
  .character-search select {
    min-width: 0;
  }
  .search-field {
    padding-left: 4px;
  }
  .search-field>input {
    min-width: 0;
  }
  .character-image {
    aspect-ratio: 1.4074;
  }
  .character-copy {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .character-role {
    margin-bottom: 4px;
    min-height: 15px;
  }
  .character-card-bottom>b {
    flex-shrink: 0;
  }
  .nameless-english {
    font-size: clamp(50px,12.8vw,76px);
  }
  .nameless-section h2 {
    font-size: 26px;
    margin-top: 23px;
  }
  .nameless-section .text-link {
    margin-top: 19px;
  }
  .nameless-activities {
    margin-top: 23px;
  }
  .sealed-section {
    padding-block: 29px;
  }
  .sealed-stamp {
    width: 48px;
    height: 59px;
    font-size: 31px;
  }
  .sealed-record summary>b {
    font-size: 23px;
  }
  .site-footer {
    padding-block: 32px 135px;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 24px;
    align-items: start;
    padding-bottom: 24px;
  }
  .footer-top>p {
    order: 3;
    width: 100%;
  }
  .back-top {
    align-self: center;
  }
  .back-top>span {
    margin-left: 12px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: start;
    gap: 9px;
    padding-top: 18px;
  }
  .profile-header .dialog-close {
    font-size: 27px;
  }
  .expression-thumbs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #777777 #202020;
    scroll-snap-type: x proximity;
  }
  .expression-thumbs>button {
    flex: 0 0 82px;
    scroll-snap-align: start;
  }
  .profile-quote {
    margin-top: 21px;
  }
  .zoom-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 14px);
    padding: 58px 9px 8px;
  }
  .zoom-dialog>.dialog-close {
    right: 10px;
    top: 8px;
  }
  .zoom-dialog>img {
    max-height: calc(100dvh - 155px);
  }
}

@media (max-width:370px) {
  .site-header {
    padding-inline: 15px;
  }
  .cover-row {
    gap: 4px;
  }
  .cover-panel-number {
    font-size: 15px;
  }
  .group-filters>button {
    padding-inline: 7px;
  }
  .sealed-stamp {
    width: 40px;
    height: 54px;
    font-size: 27px;
  }
}

@media (prefers-reduced-motion:reduce) {
  :root {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
  .character-card:hover {
    transform: none;
  }
}

@media (hover:none) {
  .character-card:hover {
    transform: none;
  }
  .character-card:hover .character-image>img, .cover-panel:hover .cover-panel-image>img {
    filter: none;
  }
}

:root {
  --bg: #0b0b0b;
  --crimson: #99262c;
  --crimson-hover: #b33338;
  --red-text: #e4776e;
  --subheading: #ed9b91;
  --red-line: #5b2427;
  --paper: #111111;
  --ink: #ededed;
  --text: #dedede;
  --muted: #ababab;
  --line: #333333;
}

::selection {
  background: var(--crimson);
  color: #ffffff;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline-color: var(--red-text);
}

.section-label {
  font-size: 11px;
}

.eyebrow {
  color: #b0b0b0;
  font-size: 11px;
}

.eyebrow.light {
  color: #b0b0b0;
}

.section-heading>p {
  font-size: 15px;
}

.text-link {
  color: #dedede;
  border-color: #363636;
  font-size: 13px;
}

.button {
  font-size: 14px;
}

.button-ink {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #f5f5f5;
}

.button-ink:hover {
  background: var(--crimson-hover);
  border-color: var(--crimson-hover);
}

.site-header {
  background: #0b0b0bf5;
  border-top: 1px solid var(--crimson);
}

.main-nav {
  font-size: 13px;
}

.main-nav>a {
  color: #dedede;
}

.main-nav>a:after {
  background: var(--crimson-hover);
}

.header-note {
  color: #b0b0b0;
}

.hero {
  background: linear-gradient(135deg,#420b0e 0%,#230c0e 48%,#0b0b0b 100%);
  color: #ededed;
  border-bottom: 1px solid var(--red-line);
}

.hero-edition>.eyebrow {
  color: var(--red-text);
  font-size: 11px;
}

.hero-edition h1 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .2em;
  flex-wrap: nowrap;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  font-size: clamp(18px,6.8vw,57px);
  letter-spacing: -.045em;
  line-height: 1.5;
}

.hero-edition h1>span, .hero-edition h1>em {
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.hero-edition h1>em {
  display: block;
  color: var(--red-text);
}

.cover-panel-image {
  border-color: #363636;
}

.cover-panel-caption>strong {
  color: #ededed;
}

.cover-panel-caption>small {
  color: #b0b0b0;
  font-size: 11px;
}

.paper, .characters-section, .commandments-section {
  --text: #dedede;
  --muted: #ababab;
  --line: #333333;
  color: var(--text);
}

.paper {
  background: #111111;
}

.hierarchy-section {
  background: #0e0e0e;
}

.paper .eyebrow, .characters-section .eyebrow, .paper .eyebrow.light, .characters-section .eyebrow.light {
  color: #b0b0b0;
}

.intro-copy .lead {
  color: #ededed;
  font-size: 20px;
}

.intro-copy>p+p {
  color: #d0d0d0;
  font-size: 16px;
}

.county-notes article>span {
  font-size: 11px;
  color: #b0b0b0;
}

.county-notes h3 {
  color: var(--subheading);
}

.county-notes p {
  font-size: 15px;
  color: #d0d0d0;
}

.order-section {
  background: linear-gradient(125deg,#1d0d0f,#101010);
}

.order-layout .section-description {
  color: #ededed;
  font-size: 18px;
}

.body-copy {
  color: #d0d0d0;
  font-size: 16px;
}

.creed {
  border-color: var(--red-line);
}

.creed>span {
  color: #b0b0b0;
  font-size: 11px;
}

.creed>p {
  color: #ededed;
}

.creed em {
  color: #b0b0b0;
}

.creed footer {
  color: #b0b0b0;
  font-size: 14px;
}

.covenant-heading h3 {
  color: var(--subheading);
}

.covenant-heading h3>span {
  color: #b0b0b0;
}

.covenant-copy>p {
  color: #d0d0d0;
  font-size: 16px;
}

.covenant-copy .fine-copy {
  color: #b0b0b0;
  font-size: 14px;
}

.name-examples>span {
  color: #dedede;
  border-color: #363636;
  font-size: 14px;
}

.daily-order summary {
  color: var(--subheading);
  font-size: 16px;
}

.daily-order summary>span {
  color: #b0b0b0;
}

.daily-order p {
  color: #d0d0d0;
  font-size: 15px;
}

.commandments-section {
  background: #210e10;
  border-block: 1px solid var(--red-line);
}

.commandments-section .section-label, .commandments-section .eyebrow {
  color: var(--red-text);
  border-color: var(--red-line);
}

.commandments-heading>p {
  font-size: 14px;
  color: #b0b0b0;
}

.commandments>li, .commandments>li:last-child {
  border-color: #363636;
}

.commandment-number {
  color: var(--red-text);
}

.commandments h3 {
  color: #ededed;
}

.commandments .eyebrow {
  font-size: 10px;
}

.commandment-mark {
  color: var(--red-text);
}

.commandment-footnote {
  color: #ededed;
  font-size: 18px;
}

.hierarchy-intro>p {
  color: #d0d0d0;
  font-size: 16px;
}

.rank-index {
  color: var(--red-text);
}

.rank summary strong {
  color: var(--subheading);
}

.rank summary small {
  color: #b0b0b0;
  font-size: 11px;
}

.rank summary>b {
  color: #b0b0b0;
}

.rank p {
  color: #d0d0d0;
  font-size: 15px;
}

.parallel-heading {
  color: var(--subheading);
  font-size: 14px;
}

.parallel-grid details {
  background: #191919;
  border: 1px solid #363636;
}

.parallel-grid summary {
  color: var(--subheading);
  font-size: 16px;
}

.parallel-grid summary>span {
  color: #b0b0b0;
}

.parallel-grid p {
  color: #d0d0d0;
  font-size: 14px;
}

.districts-section {
  background: #101010;
}

.district-tabs, .district-tabs>button {
  border-color: #727272;
}

.district-tabs>button {
  color: #dedede;
}

.district-tabs>button>span, .district-tabs i {
  color: #b0b0b0;
}

.district-tabs>button[aria-selected="true"] {
  background: var(--crimson);
  color: #f5f5f5;
}

.district-tabs>button[aria-selected="true"]>span, .district-tabs>button[aria-selected="true"] i {
  color: #f5f5f5;
}

.district-text h3 {
  color: var(--subheading);
}

.district-description {
  color: #d0d0d0;
  font-size: 16px;
}

.district-facts {
  border-color: #363636;
}

.district-facts>div {
  font-size: 14px;
  border-color: #363636;
}

.district-facts dt {
  color: var(--subheading);
}

.district-facts dd {
  color: #d0d0d0;
}

.district-text .text-link {
  color: #dedede;
  border-color: #363636;
}

.region-image-slot:before {
  border-color: #363636;
}

.characters-section {
  background: #0b0b0b;
}

.group-filters>button {
  font-size: 13px;
  color: #dedede;
}

.group-filters>button:hover {
  border-color: #727272;
}

.group-filters>button[aria-pressed="true"] {
  background: var(--crimson);
  color: #f5f5f5;
}

.group-filters>button>span {
  opacity: 1;
}

.character-search select {
  background: #181818;
  border-color: #727272;
  color: #dedede;
  font-size: 14px;
  color-scheme: dark;
}

.search-field {
  border-color: #727272;
}

.search-field>span {
  color: #dedede;
}

.search-field>input {
  color: #dedede;
  font-size: 14px;
}

.search-field>input::placeholder {
  color: #b0b0b0;
}

.result-line {
  color: #b0b0b0;
  font-size: 10px;
}

.result-line>span:last-child {
  color: #b0b0b0;
  font-size: 12px;
}

.character-image {
  border-color: #363636;
}

.character-copy {
  border-color: #363636;
}

.character-role {
  font-size: 12px;
  color: #b0b0b0;
}

.character-name {
  color: #ededed;
  font-size: 23px;
}

.character-celestial {
  font-size: 12px;
  color: #b0b0b0;
}

.character-traits {
  font-size: 12px;
  color: #d0d0d0;
}

.character-card-bottom {
  font-size: 12px;
  color: #b0b0b0;
}

.character-card-bottom>b {
  color: #b0b0b0;
}

.empty-state {
  border-color: #363636;
}

.empty-state p {
  color: #dedede;
}

.nameless-section {
  background: #280d10;
  border-color: var(--red-line);
}

.nameless-english, .nameless-section h2 {
  color: #ededed;
}

.nameless-definition {
  color: #d0d0d0;
  font-size: 15px;
}

.nameless-section .text-link {
  color: #dedede;
  border-color: #363636;
}

.nameless-copy .lead {
  color: #ededed;
}

.nameless-copy>p:not(.lead) {
  color: #d0d0d0;
  font-size: 16px;
}

.nameless-activities {
  border-color: #363636;
}

.nameless-activities>li {
  color: #d0d0d0;
  font-size: 14px;
  border-color: #363636;
}

.nameless-activities>li>span {
  color: #b0b0b0;
}

.sealed-section {
  background: #0e0e0e;
}

.sealed-record {
  border-color: #363636;
}

.sealed-stamp {
  color: var(--red-text);
  border-color: var(--red-line);
}

.sealed-record summary small {
  color: #b0b0b0;
  font-size: 11px;
}

.sealed-record summary strong {
  color: var(--subheading);
}

.sealed-record summary em {
  color: #b0b0b0;
  font-size: 12px;
}

.sealed-record summary>b {
  color: #b0b0b0;
}

.sealed-body .lead {
  color: #ededed;
}

.sealed-body>p:not(.lead) {
  font-size: 16px;
  color: #d0d0d0;
}

.spoiler-banner {
  background: #2c1315;
  color: #dedede;
  border-left-color: var(--crimson-hover);
}

.spoiler-banner>strong {
  color: var(--red-text);
}

.spoiler-tag {
  background: var(--crimson);
  color: #f5f5f5;
}

.site-footer {
  background: #0b0b0b;
}

.footer-top>p {
  color: #dedede;
}

.footer-bottom {
  color: #b0b0b0;
  font-size: 10px;
}

.music-dock {
  background: #181818f5;
  border-color: #363636;
  color: #dedede;
}

.music-title>span {
  color: #b0b0b0;
  font-size: 10px;
}

.music-time {
  color: #b0b0b0;
}

.music-play {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #f5f5f5;
}

.music-play[aria-pressed="true"] {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #f5f5f5;
}

.music-expand {
  color: #dedede;
}

.music-expanded input {
  accent-color: var(--red-text);
}

.character-dialog {
  background: #151515;
  color: #dedede;
}

.profile-header {
  background: #151515fa;
  border-color: #363636;
}

.profile-header h2 {
  color: #ededed;
}

.profile-header .eyebrow {
  color: #b0b0b0;
  font-size: 11px;
}

.profile-tags>span {
  background: #292929;
  color: #b0b0b0;
  font-size: 11px;
}

.profile-section-title {
  color: var(--subheading);
  border-color: var(--red-line);
}

.profile-section-title>span {
  color: #b0b0b0;
  font-size: 10px;
}

.profile-summary {
  color: #d0d0d0;
  font-size: 16px;
}

.profile-facts>div {
  border-color: #363636;
  font-size: 14px;
}

.profile-facts dt {
  color: var(--subheading);
}

.profile-facts dd {
  color: #d0d0d0;
}

.profile-quote {
  color: #ededed;
  border-color: var(--red-line);
}

.dialog-close {
  background: #202020;
  color: #dedede;
  border-color: #727272;
}

.expression-toolbar>button {
  color: #dedede;
  border-color: #727272;
}

.expression-toolbar>span {
  color: #b0b0b0;
  font-size: 13px;
}

.expression-thumbs>button {
  color: #b0b0b0;
}

.expression-thumbs>button[aria-pressed="true"] {
  border-color: var(--red-text);
  background: #2d1618;
  color: #dedede;
}

.expression-thumbs span {
  font-size: 11px;
}

.profile-navigation {
  border-color: #363636;
}

.profile-navigation>button {
  color: #dedede;
  font-size: 13px;
}

.profile-navigation>span {
  color: #b0b0b0;
}

.character-history {
  border-color: var(--red-line);
  background: #1c1213;
}

.character-history summary {
  color: #ededed;
}

.character-history summary small {
  color: #b0b0b0;
  font-size: 12px;
}

.character-history summary>b {
  color: #b0b0b0;
}

.character-history>div {
  background: #181818;
  border-color: #363636;
}

.character-history p {
  color: #d0d0d0;
  font-size: 15px;
}

.character-history .spoiler-banner {
  background: #2c1315;
  color: #dedede;
  border-left-color: var(--crimson-hover);
}

.character-history .spoiler-banner>strong {
  color: var(--red-text);
}

.character-history .secret-role {
  color: #dedede;
  background: #261315;
  border-color: var(--red-line);
  font-size: 14px;
}

@media (max-width:700px) {
  .eyebrow, .eyebrow.light {
    font-size: 10px;
  }
  .main-nav {
    background: #141414;
  }
  .main-nav>a {
    color: #dedede;
    border-color: #363636;
  }
  .hero-edition h1 {
    letter-spacing: -.05em;
    line-height: 1.55;
  }
  .intro-copy>p+p {
    font-size: 15px;
    line-height: 2.05;
  }
  .site-header {
    justify-content: flex-end;
  }
}

.county-map {
  display: block;
  margin: 43px 0 0;
  border: 1px solid #363636;
  background: #111111;
  color: #dedede;
  transition: border-color .2s;
}

.county-map>img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 1448/1086;
}

.county-map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  background: #181818;
  border-top: 1px solid #363636;
  font-size: 12px;
  line-height: 1.8;
}

.county-map-caption>span:last-child {
  color: #dedede;
  white-space: nowrap;
}

.county-map:hover {
  border-color: #727272;
}

.county-map:hover .county-map-caption>span:last-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width:700px) {
  .county-map {
    margin-top: 29px;
  }
}

.county-facts {
  margin: 23px 0 0;
}

.county-facts>div {
  display: grid;
  grid-template-columns: 78px minmax(0,1fr);
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid #363636;
  font-size: 16px;
  line-height: 2;
}

.county-facts dt {
  font-weight: 500;
  color: var(--subheading);
}

.county-facts dd {
  margin: 0;
  color: #d0d0d0;
}

.order-information>p+p {
  margin-top: 18px;
}

@media (max-width:700px) {
  .county-facts {
    margin-top: 18px;
  }
}

.region-image-slot {
  display: block;
  aspect-ratio: auto;
  min-height: 0;
  background: #0b0b0b;
  border-color: #363636;
}

.region-image-slot:before {
  display: none;
}

.region-image-slot>img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
}

.region-image-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  background: #181818;
  border-top: 1px solid #363636;
  color: #b0b0b0;
  font-size: 12px;
  line-height: 1.8;
}

.region-image-caption>span:last-child {
  font-size: 11px;
  white-space: nowrap;
}

.region-image-slot:hover {
  border-color: #727272;
}

.region-image-slot:hover .region-image-caption>span:last-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.expression-thumbs .expression-thumb-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 38/27;
  overflow: hidden;
  margin: 0;
  background: #151515;
}

.expression-thumb-image>img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--thumb-count) * 100%);
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: fill;
  transform: translateX(var(--thumb-offset));
}

.character-dialog, .zoom-dialog {
  overscroll-behavior: contain;
}

@media (max-width:700px) {
  :root {
    scroll-padding-top: 78px;
  }
  .site-header {
    height: 62px;
    background: #0b0b0bf5;
    backdrop-filter: none;
  }
  .main-nav {
    top: 61px;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .zoom-dialog>.dialog-close {
    width: 44px;
    height: 44px;
  }
  .profile-layout {
    padding-inline: 16px;
  }
  .music-expanded input {
    height: 32px;
  }
}

@media (max-width:420px) {
  .search-field {
    padding-left: 10px;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:where(.intro-layout,.order-layout,.hierarchy-layout,.name-covenant,.district-panel,.nameless-layout,.profile-layout)>* {
  min-width: 0;
}

:where(.county-facts,.district-facts,.profile-facts) dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

:where(.section-heading,.commandments-heading)>*, :where(.daily-order,.parallel-grid,.rank,.character-history,.sealed-record) summary>* {
  min-width: 0;
}

:where(.daily-order,.parallel-grid) summary>span, .rank summary>b, .character-history summary>b, .sealed-record summary>b {
  flex-shrink: 0;
}

.profile-header>div {
  min-width: 0;
}

.profile-header h2, .character-name {
  overflow-wrap: anywhere;
}

@media (min-width:701px) and (max-width:900px) {
  .profile-gallery {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width:900px) {
  .container {
    width: calc(100% - 40px);
  }
  .section {
    padding-block: 64px;
  }
  .section-label {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 20px;
    margin-bottom: 32px;
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: .04em;
  }
  .section-label>span:last-child {
    text-align: left;
  }
  .display-title {
    font-size: 30px;
    line-height: 1.5;
    letter-spacing: -.035em;
  }
  .section-heading, .commandments-heading {
    display: block;
    margin-bottom: 30px;
  }
  .section-heading>p {
    font-size: 16px;
    line-height: 1.9;
    margin-top: 18px;
  }
  .hero-edition>.eyebrow {
    font-size: 12px;
    letter-spacing: .08em;
  }
  .hero-edition h1 {
    font-size: clamp(18px,6.6vw,43px);
  }
  .cover-panel-caption>strong {
    font-size: 13px;
    line-height: 1.8;
  }
  .cover-panel-caption>small {
    font-size: 12px;
    line-height: 1.7;
  }
  .intro-layout, .order-layout, .hierarchy-layout, .nameless-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 30px;
  }
  .hierarchy-intro {
    position: static;
  }
  .intro-copy .lead {
    font-size: 18px;
    line-height: 1.9;
  }
  .county-facts>div {
    grid-template-columns: 70px minmax(0,1fr);
    gap: 16px;
    font-size: 16px;
    line-height: 1.9;
    padding-block: 16px;
  }
  .county-map-caption, .region-image-caption {
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    padding: 14px;
  }
  .region-image-caption>span:last-child {
    font-size: 12px;
  }
  .county-notes {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
    margin-top: 24px;
  }
  .county-notes article {
    padding-block: 28px;
  }
  .county-notes article+article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
  .county-notes article:last-child {
    padding-bottom: 0;
  }
  .county-notes article>span {
    font-size: 11px;
  }
  .county-notes h3 {
    font-size: 23px;
    line-height: 1.65;
  }
  .county-notes p {
    font-size: 16px;
    line-height: 1.95;
    margin-top: 14px;
  }
  .order-layout .section-description {
    font-size: 18px;
    line-height: 1.9;
  }
  .body-copy, .covenant-copy>p {
    font-size: 16px;
    line-height: 1.95;
  }
  .order-information>p+p {
    margin-top: 24px;
  }
  .creed {
    margin-top: 8px;
    padding-left: 22px;
  }
  .creed>p {
    font-size: 25px;
    line-height: 1.8;
  }
  .creed footer, .covenant-copy .fine-copy {
    font-size: 15px;
    line-height: 1.95;
  }
  .covenant-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
  .name-covenant {
    grid-template-columns: minmax(0,1fr);
    padding-block: 32px;
    gap: 24px;
    margin-top: 38px;
  }
  .name-examples {
    gap: 8px;
  }
  .name-examples>span {
    font-size: 14px;
    padding: 5px 13px;
  }
  .daily-order {
    grid-template-columns: minmax(0,1fr);
    align-items: start;
    margin-top: 18px;
  }
  .daily-order summary {
    font-size: 18px;
    line-height: 1.8;
    min-height: 64px;
    padding-block: 18px;
  }
  .commandments-heading .display-title {
    font-size: 32px;
  }
  .commandments-heading>p {
    font-size: 15px;
    line-height: 1.95;
  }
  .commandments>li {
    padding-block: 30px;
    align-items: start;
  }
  .commandment-mark {
    display: none;
  }
  .commandment-number {
    padding-top: 8px;
  }
  .commandments .eyebrow {
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: .04em;
  }
  .commandments h3 {
    font-size: 20px;
    line-height: 1.85;
    margin-top: 12px;
  }
  .commandment-footnote {
    font-size: 17px;
    line-height: 1.95;
    text-align: left;
    margin-top: 30px;
  }
  .hierarchy-intro>p {
    font-size: 16px;
    line-height: 1.95;
    margin-top: 22px;
  }
  .rank summary {
    gap: 14px;
    padding-block: 20px;
  }
  .rank summary strong {
    font-size: 20px;
  }
  .rank summary small {
    font-size: 11px;
    line-height: 1.8;
  }
  .rank p {
    font-size: 16px;
    line-height: 1.95;
    padding: 0 0 26px;
  }
  .parallel-heading {
    gap: 14px;
    font-size: 16px;
    line-height: 1.8;
  }
  .parallel-grid {
    padding-left: 0;
  }
  .parallel-grid p {
    padding-top: 18px;
  }
  .district-tabs>button {
    min-width: 0;
  }
  .district-tabs>button:nth-child(2) {
    border-right: 0;
  }
  .district-tabs>button:nth-child(-n/**/+2) {
    border-bottom: 1px solid #363636;
  }
  .district-tabs>button>span {
    font-size: 24px;
    min-width: 24px;
    flex-shrink: 0;
  }
  .district-tabs strong {
    min-width: 0;
  }
  .district-tabs small {
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: .05em;
  }
  .district-panel {
    grid-template-columns: minmax(0,1fr);
    gap: 30px;
    margin-top: 32px;
  }
  .district-text .eyebrow {
    font-size: 12px;
    line-height: 1.9;
    letter-spacing: 0;
  }
  .district-text h3 {
    font-size: 34px;
    margin-block: 12px 20px;
  }
  .district-description {
    font-size: 16px;
    line-height: 1.95;
  }
  .district-facts>div {
    grid-template-columns: 80px minmax(0,1fr);
    font-size: 15px;
    line-height: 1.9;
    padding-block: 15px;
  }
  .district-text .text-link {
    font-size: 15px;
    min-height: 44px;
  }
  .character-controls {
    display: block;
  }
  .group-filters {
    display: grid;
  }
  .group-filters>button {
    min-width: 0;
  }
  .character-search {
    display: grid;
    width: 100%;
  }
  .search-field>input {
    width: 100%;
  }
  .result-line {
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    letter-spacing: .02em;
  }
  .result-line>span:last-child {
    font-size: 13px;
  }
  .character-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 32px 16px;
  }
  .character-copy {
    padding-block: 18px 20px;
  }
  .character-role, .character-celestial, .character-traits, .character-card-bottom {
    font-size: 14px;
    line-height: 1.85;
  }
  .character-name {
    font-size: 23px;
    line-height: 1.6;
    margin-top: 6px;
    letter-spacing: -.035em;
  }
  .character-celestial {
    margin-top: 7px;
  }
  .character-traits {
    margin-top: 12px;
  }
  .character-card-bottom {
    align-items: start;
    gap: 14px;
    margin-top: 14px;
  }
  .character-card-bottom>b {
    font-size: 22px;
  }
  .empty-state {
    padding: 36px 20px;
  }
  .empty-state p, .noscript-message {
    font-size: 16px;
    line-height: 1.9;
  }
  .nameless-copy {
    padding-top: 0;
  }
  .nameless-definition, .nameless-copy>p:not(.lead) {
    font-size: 16px;
    line-height: 1.95;
  }
  .nameless-definition {
    max-width: 38em;
    margin-top: 22px;
  }
  .nameless-copy .lead {
    font-size: 20px;
    line-height: 1.85;
  }
  .nameless-copy>p:not(.lead) {
    margin-top: 24px;
  }
  .nameless-activities>li {
    font-size: 15px;
    line-height: 1.9;
    padding-block: 16px;
    gap: 14px;
  }
  .nameless-activities>li>span {
    font-size: 13px;
  }
  .sealed-record>summary {
    display: grid;
    grid-template-columns: minmax(0,1fr) 24px;
    gap: 16px;
    padding-block: 30px;
  }
  .sealed-stamp {
    display: none;
  }
  .sealed-record summary strong {
    font-size: 24px;
    line-height: 1.65;
    max-width: none;
    margin-top: 12px;
  }
  .sealed-record summary small {
    font-size: 12px;
    line-height: 1.9;
    letter-spacing: .02em;
  }
  .sealed-record summary em {
    font-size: 14px;
    line-height: 1.9;
    margin-top: 12px;
  }
  .sealed-body {
    margin-left: 0;
    padding: 0 0 30px;
  }
  .sealed-body>p:not(.lead) {
    font-size: 16px;
    line-height: 1.95;
  }
  .sealed-body .lead {
    font-size: 22px;
    line-height: 1.85;
  }
  .spoiler-banner {
    padding: 16px;
  }
  .spoiler-banner>strong {
    font-size: 12px;
  }
  .spoiler-banner>span {
    font-size: 14px;
    line-height: 1.85;
  }
  .footer-top>p {
    font-size: 17px;
  }
  .footer-bottom {
    font-size: 12px;
    line-height: 1.9;
  }
  .back-top {
    font-size: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .character-dialog {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    margin: auto;
    scroll-padding-top: 170px;
  }
  .profile-header {
    gap: 16px;
    padding: 20px max(20px,env(safe-area-inset-right)) 18px max(20px,env(safe-area-inset-left));
    background: #151515;
    backdrop-filter: none;
  }
  .profile-header h2 {
    letter-spacing: -.035em;
    margin-top: 8px;
  }
  .profile-header .eyebrow {
    font-size: 12px;
    line-height: 1.7;
  }
  .profile-header .dialog-close {
    width: 44px;
    height: 44px;
  }
  .profile-tags {
    gap: 6px;
    margin-top: 12px;
  }
  .profile-tags>span {
    font-size: 12px;
    line-height: 1.8;
    padding: 3px 9px;
  }
  .profile-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 36px;
    padding: 24px max(20px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  }
  .zoom-label {
    font-size: 12px;
    line-height: 1.7;
    bottom: 10px;
    right: 10px;
  }
  .expression-toolbar {
    gap: 12px;
    margin-top: 16px;
  }
  .expression-toolbar>button {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
  .expression-toolbar>span {
    min-width: 0;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
  }
  .expression-thumbs {
    gap: 10px;
    margin-top: 18px;
    padding-bottom: 12px;
  }
  .expression-thumbs>button {
    flex-basis: 96px;
    padding: 4px;
  }
  .expression-thumbs span {
    font-size: 13px;
    line-height: 1.8;
  }
  .profile-quote {
    font-size: 20px;
    line-height: 1.9;
    margin: 28px 0 0;
    padding-left: 18px;
  }
  .profile-section-title {
    font-size: 19px;
    line-height: 1.8;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }
  .profile-summary {
    font-size: 16px;
    line-height: 1.95;
    margin-bottom: 26px;
  }
  .profile-facts>div {
    grid-template-columns: 80px minmax(0,1fr);
    gap: 16px;
    font-size: 16px;
    line-height: 1.9;
    padding-block: 16px;
  }
  .character-history {
    margin-top: 32px;
  }
  .character-history summary {
    padding: 20px;
    gap: 16px;
  }
  .character-history summary>span>strong {
    font-size: 19px;
    line-height: 1.8;
    margin-top: 12px;
  }
  .character-history summary small {
    font-size: 14px;
    line-height: 1.85;
    margin-top: 8px;
  }
  .spoiler-tag {
    font-size: 12px;
  }
  .character-history>div {
    padding: 20px;
  }
  .character-history p {
    font-size: 16px;
    line-height: 1.95;
  }
  .character-history .secret-role {
    font-size: 15px;
    line-height: 1.9;
    padding: 12px;
  }
  .profile-navigation {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
  }
  .profile-navigation>button {
    font-size: 14px;
    line-height: 1.8;
    min-height: 48px;
  }
  .profile-navigation>span {
    font-size: 13px;
  }
  .zoom-toolbar {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 44px;
    gap: 12px;
  }
  .zoom-toolbar>button {
    width: 44px;
    height: 48px;
  }
  .zoom-toolbar>span {
    font-size: 14px;
    line-height: 1.8;
  }
  .music-dock.is-expanded .music-title {
    display: block;
  }
}

@media (max-width:480px) {
  .character-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 28px 12px;
  }
  .character-copy {
    padding-block: 14px 16px;
  }
  .character-name {
    font-size: 20px;
    line-height: 1.6;
  }
  .character-role, .character-celestial {
    line-height: 1.85;
  }
  .character-traits, .character-card-bottom {
    font-size: 13px;
    line-height: 1.85;
  }
  .character-traits {
    margin-top: 8px;
  }
  .character-card-bottom {
    gap: 8px;
    margin-top: 10px;
  }
  .county-facts>div, .district-facts>div, .profile-facts>div {
    grid-template-columns: minmax(0,1fr);
    gap: 6px;
  }
  .county-facts dt, .district-facts dt, .profile-facts dt {
    font-size: 14px;
    font-weight: 500;
  }
  .county-facts dd, .district-facts dd, .profile-facts dd {
    font-size: 16px;
    line-height: 1.9;
  }
  .commandments h3 {
    font-size: 19px;
  }
}

@media (max-width:360px) {
  .cover-panel-caption>strong {
    font-size: 12px;
    letter-spacing: -.05em;
  }
  .cover-panel-caption>small {
    font-size: 11px;
  }
  .district-tabs>button {
    padding-inline: 10px;
  }
}

@media (max-width:900px) and (max-height:620px) {
  .profile-header {
    position: static;
  }
  .character-dialog {
    scroll-padding-top: 20px;
  }
}

.hero {
  padding-bottom: 40px;
}

@media (max-width:900px) {
  .hero {
    padding-bottom: 32px;
  }
}

.commandment-number {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.music-icon {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.music-play .pause-shape, .music-play[aria-pressed="true"] .play-shape {
  display: none;
}

.music-play[aria-pressed="true"] .pause-shape {
  display: block;
}

@media (max-width:900px) {
  .commandments>li {
    grid-template-columns: minmax(48px,max-content) minmax(0,1fr);
    gap: 14px;
  }
  .commandment-number {
    font-size: 30px;
    line-height: 1.15;
  }
  .parallel-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    align-items: start;
  }
  .parallel-grid details {
    padding: 0;
  }
  .parallel-grid summary {
    min-height: 48px;
    padding: 10px;
    gap: 8px;
    font-size: 17px;
    line-height: 1.6;
  }
  .parallel-grid summary>span {
    line-height: 1;
    flex-shrink: 0;
  }
  .parallel-grid details[open] {
    grid-column: 1 / -1;
  }
  .parallel-grid p {
    padding: 0 12px 18px;
    font-size: 16px;
    line-height: 1.9;
  }
  .district-tabs {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid #727272;
    border-radius: 6px;
    background: #181818;
  }
  .district-tabs>button, .district-tabs>button:nth-child(-n/**/+2) {
    border: 0;
  }
  .district-tabs>button {
    justify-content: center;
    min-height: 44px;
    padding: 8px 4px;
    gap: 0;
    border-radius: 3px;
  }
  .district-tabs>button>span, .district-tabs small, .district-tabs i {
    display: none;
  }
  .district-tabs strong {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -.02em;
    white-space: nowrap;
  }
  .characters-section {
    padding-top: 36px;
    padding-bottom: 44px;
  }
  .characters-section .section-label {
    padding-bottom: 12px;
    margin-bottom: 18px;
  }
  .characters-section .section-heading {
    margin-bottom: 20px;
  }
  .characters-section .display-title {
    font-size: 28px;
  }
  .character-controls {
    padding-bottom: 16px;
  }
  .group-filters {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 4px;
  }
  .group-filters>button {
    min-height: 44px;
    padding: 8px 4px;
    font-size: 14px;
    line-height: 1.6;
    white-space: nowrap;
  }
  .group-filters>button>span {
    font-size: 11px;
    margin-left: 3px;
  }
  .character-search {
    grid-template-columns: 128px minmax(0,1fr);
    gap: 8px;
    margin-top: 12px;
  }
  .character-search select {
    min-height: 44px;
    padding: 9px 26px 9px 10px;
    font-size: 16px;
    line-height: 1.5;
  }
  .search-field {
    min-height: 44px;
    padding: 8px 10px;
    gap: 6px;
  }
  .search-field>input {
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
  }
  .search-field>input::placeholder {
    font-size: 16px;
  }
  .search-field>span {
    font-size: 22px;
    line-height: 1;
  }
  .result-line {
    padding-block: 12px;
  }
  .music-dock {
    width: 260px;
    max-width: calc(100vw - 32px);
    right: max(16px,env(safe-area-inset-right));
    bottom: max(16px,env(safe-area-inset-bottom));
    border: 1px solid #363636;
    border-radius: 34px;
    background: #181818;
    box-shadow: 0 6px 22px #00000033;
    backdrop-filter: none;
    overflow: hidden;
  }
  .music-main {
    gap: 8px;
    padding: 8px 10px;
  }
  .music-play {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--crimson);
    border: 1px solid var(--crimson);
    color: #f5f5f5;
  }
  .music-play[aria-pressed="true"] {
    background: var(--crimson);
    border-color: var(--crimson);
  }
  .music-title {
    display: block;
  }
  .music-title>strong {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .music-title>span {
    font-size: 11px;
    line-height: 1.5;
    color: #b0b0b0;
    margin-top: 3px;
  }
  .music-expand {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: #dedede;
  }
  .music-dock.is-expanded {
    width: 288px;
    border-radius: 20px;
  }
  .music-expanded {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #363636;
  }
  .music-time, .volume-row>label {
    font-size: 12px;
  }
  .music-expanded input[type="range"] {
    appearance: none;
    height: 28px;
    background: transparent;
    cursor: pointer;
  }
  .music-expanded input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 3px;
    background: #777777;
  }
  .music-expanded input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -4.5px;
    border-radius: 50%;
    background: #e0e0e0;
  }
  .music-expanded input[type="range"]::-moz-range-track {
    height: 3px;
    border-radius: 3px;
    background: #777777;
  }
  .music-expanded input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #e0e0e0;
  }
  .music-expanded input:disabled {
    opacity: .45;
    cursor: default;
  }
}

@media (max-width:700px) {
  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
    justify-content: center;
    gap: 0;
  }
  .menu-toggle>i, .menu-toggle[aria-expanded="true"]>i:after {
    width: 20px;
  }
}

@media (max-width:360px) {
  .group-filters>button {
    font-size: 13px;
  }
  .character-name {
    font-size: 19px;
  }
}

body {
  line-break: strict;
}

.character-name, .rank summary strong, .sealed-record summary strong {
  font-weight: 500;
}

.character-role {
  font-weight: 400;
}

.order-information strong {
  font-weight: 500;
  color: inherit;
}

.county-notes p+p, .covenant-copy>p+p, .district-description>p+p, .profile-summary>p+p {
  margin-top: 14px;
}

.daily-order p {
  padding: 0;
}

.daily-order p+p {
  margin-top: 14px;
}

.daily-order details>p:last-child {
  padding-bottom: 22px;
}

.character-history p+p {
  margin-top: 16px;
}

.sealed-body>p:not(.lead) {
  margin-top: 18px;
}

.portrait-status {
  inset: auto 10px 10px;
  display: block;
  padding: 9px 12px;
  background: #191919eb;
  font-size: 13px;
  line-height: 1.7;
}

.portrait-status:not([hidden])~.zoom-label {
  visibility: hidden;
}

@media (max-width:900px) {
  .profile-summary>p+p, .district-description>p+p, .county-notes p+p, .covenant-copy>p+p {
    margin-top: 12px;
  }
  .daily-order p {
    padding: 0;
    font-size: 16px;
    line-height: 1.9;
  }
  .daily-order p+p {
    margin-top: 12px;
  }
  .daily-order details>p:last-child {
    padding-bottom: 20px;
  }
  .character-history p+p {
    margin-top: 14px;
  }
  .sealed-body>p:not(.lead) {
    margin-top: 18px;
  }
  body.dialog-open .music-dock {
    visibility: hidden;
  }
  .profile-header .eyebrow {
    letter-spacing: .02em;
  }
  .profile-header h2 {
    font-size: 27px;
    line-height: 1.45;
  }
  .portrait-status {
    font-size: 13px;
    line-height: 1.7;
    padding: 9px 12px;
  }
}

@media (max-width:480px) {
  .character-role, .character-celestial {
    font-size: 14px;
  }
  .character-card-bottom>span {
    min-width: 0;
  }
  .profile-header {
    padding-inline: 16px;
  }
  .profile-layout {
    padding-inline: 18px;
    gap: 28px;
  }
  .profile-header h2 {
    font-size: 25px;
  }
  .profile-tags>span {
    padding: 2px 7px;
  }
}

/* v22 — restrained Korean typography, touch-friendly mobile refinements. */
:root {
  font-optical-sizing: auto;
}

body {
  font-weight: 400;
  letter-spacing: -.015em;
}

/* Preserve the serif atmosphere for headings, without forcing serif on body copy. */
.display-title, .hero-edition h1, .character-name, .cover-panel-caption>strong,
.profile-header h2, .profile-quote, .creed>p, .covenant-heading h3,
.nameless-english, .nameless-section h2, .commandment-footnote {
  font-family: var(--serif);
}

.display-title, .hero-edition h1, .character-name, .profile-header h2 {
  letter-spacing: -.03em;
}

/* Softer text rhythm: Korean words wrap as words whenever space permits. */
:where(.lead,.body-copy,.intro-copy,.county-notes,.covenant-copy,.district-description,
.nameless-copy,.nameless-definition,.sealed-body,.profile-summary,.character-history) p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}
:where(.display-title,.commandments h3,.county-notes h3,.sealed-record summary strong) {
  text-wrap: balance;
}

@media (max-width:900px) {
  /* Mobile/tablet: visible hierarchy without oversized headings or excessive line spacing. */
  .display-title { letter-spacing: -.025em; }
  .lead, .intro-copy .lead, .nameless-copy .lead { line-height: 1.78; }
  .section-heading>p, .intro-copy>p+p, .county-notes p,
  .body-copy, .covenant-copy>p, .district-description,
  .nameless-definition, .nameless-copy>p:not(.lead),
  .sealed-body>p:not(.lead), .profile-summary,
  .character-history p, .rank p, .daily-order p {
    line-height: 1.82;
  }
  .county-facts>div, .district-facts>div, .profile-facts>div {
    line-height: 1.8;
  }
  .commandments h3 { line-height: 1.72; }
  .character-role, .character-celestial, .character-traits,
  .character-card-bottom { line-height: 1.68; }
}

@media (max-width:700px) {
  :root { scroll-padding-top: 74px; }
  body { font-size: 16px; line-height: 1.82; }
  .container { width: calc(100% - 36px); }
  .section { padding-block: 52px; }
  .section-label { margin-bottom: 26px; padding-bottom: 12px; }
  .display-title { font-size: clamp(28px,7.5vw,33px); line-height: 1.42; }
  .section-heading, .commandments-heading { margin-bottom: 25px; }
  .section-heading>p { margin-top: 13px; }
  .hero-edition { padding-block: 24px 25px; }
  .hero-edition h1 { letter-spacing: -.04em; }
  .hero { padding-bottom: 28px; }
  .cover-row { gap: 6px; }
  .cover-panel-caption>strong { font-size: 13px; line-height: 1.55; }
  .cover-panel-caption>small { font-size: 11px; line-height: 1.5; margin-top: 5px; }
  .intro-layout, .order-layout, .hierarchy-layout, .nameless-layout { gap: 24px; }
  .county-map { margin-top: 25px; }
  .county-map-caption { min-height: 46px; }
  .county-notes article { padding-block: 24px; }
  .county-notes h3 { font-size: 21px; line-height: 1.5; }
  .county-notes p { margin-top: 10px; }
  .order-information>p+p { margin-top: 18px; }
  .name-covenant { margin-top: 30px; padding-block: 28px; }
  .commandments>li { padding-block: 25px; }
  .commandments h3 { font-size: 19px; margin-top: 8px; }
  .rank summary strong { font-size: 18px; }
  .rank p { padding-bottom: 20px; }
  .district-text h3 { font-size: 31px; }
  .district-panel { margin-top: 25px; gap: 23px; }
  .characters-section { padding-top: 44px; padding-bottom: 52px; }
  .character-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
  .character-name { font-size: clamp(19px,4.7vw,23px); line-height: 1.45; }
  .character-copy { padding-block: 13px 15px; }
  .character-role { min-height: 0; }
  .character-role, .character-celestial { font-size: 12.5px; }
  .character-traits, .character-card-bottom { font-size: 12.5px; }
  .character-traits { margin-top: 8px; }
  .character-card-bottom { margin-top: 10px; }
  .character-search select { width: 100%; }
  .nameless-copy>p:not(.lead) { margin-top: 18px; }
  .nameless-activities { margin-top: 17px; }
  .sealed-record summary strong { font-size: 22px; line-height: 1.5; }
  .profile-header { padding-block: 16px 14px; }
  .profile-header h2 { font-size: clamp(24px,6.5vw,29px); line-height: 1.4; margin-top: 5px; }
  .profile-layout { padding-top: 18px; gap: 26px; }
  .profile-quote { font-size: 18px; line-height: 1.76; margin-top: 21px; }
  .profile-section-title { margin-bottom: 15px; }
  .profile-facts>div { padding-block: 12px; }
  .character-history { margin-top: 25px; }
  .character-history summary { padding: 16px; }
  .character-history>div { padding: 16px; }
  .profile-navigation { gap: 8px; }
}

@media (max-width:380px) {
  .container { width: calc(100% - 30px); }
  .section { padding-block: 46px; }
  .character-grid { gap: 22px 10px; }
  .character-name { font-size: 19px; }
  .cover-panel-caption>strong { font-size: 12px; }
  .character-search { grid-template-columns: 106px minmax(0,1fr); gap: 6px; }
  .character-search select, .search-field>input { font-size: 16px; }
  .group-filters>button { padding-inline: 2px; font-size: 12px; }
  .group-filters>button>span { font-size: 10px; margin-left: 2px; }
  .district-tabs strong { font-size: 14px; }
  .commandments>li { grid-template-columns: 37px minmax(0,1fr); gap: 10px; }
  .commandment-number { font-size: 26px; }
  .commandments h3 { font-size: 18px; }
  .profile-layout { padding-inline: 15px; }
  .profile-header { padding-inline: 15px; }
  .profile-navigation>button { font-size: 12px; }
}

/* v25 · editorial title-only opening */
body.intro-open {
  overflow: hidden;
}

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: #060607;
  color: #efe8e3;
  transition: opacity .55s ease, visibility .55s ease;
}

.opening-screen[hidden] {
  display: none !important;
}

.opening-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.opening-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(100%, 900px);
  padding: 42px 20px 46px;
  border: none;
  background: none;
  text-align: center;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.opening-wordmark__name {
  display: block;
  color: #a22836;
  font-family: "Cormorant Garamond", "Baskerville", "Times New Roman", Georgia, serif;
  font-size: clamp(88px, 10.8vw, 154px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: .075em;
  font-variant-ligatures: common-ligatures;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(104, 16, 28, .10);
  transition: color .28s ease, text-shadow .28s ease, transform .28s ease;
}

.opening-wordmark__place {
  display: block;
  margin-top: clamp(18px, 2.35vw, 26px);
  padding-left: .52em;
  color: #e7dbd6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13px, 1.35vw, 17px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .52em;
  white-space: nowrap;
  opacity: .94;
  transition: color .28s ease, opacity .28s ease, letter-spacing .28s ease;
}

.opening-wordmark::after {
  content: '';
  display: block;
  width: min(88px, 18vw);
  height: 1px;
  margin-top: 20px;
  background: linear-gradient(90deg, rgba(162, 40, 54, 0), rgba(162, 40, 54, .78), rgba(162, 40, 54, 0));
  transition: opacity .28s ease, transform .28s ease;
}

.opening-wordmark:hover .opening-wordmark__name,
.opening-wordmark:focus-visible .opening-wordmark__name {
  color: #bb3243;
  text-shadow: 0 0 20px rgba(122, 20, 33, .16);
  transform: translateY(-1px);
}

.opening-wordmark:hover .opening-wordmark__place,
.opening-wordmark:focus-visible .opening-wordmark__place {
  color: #f3ebe7;
  opacity: 1;
  letter-spacing: .56em;
}

.opening-wordmark:hover::after,
.opening-wordmark:focus-visible::after {
  opacity: 1;
  transform: scaleX(1.07);
}

.opening-wordmark:focus-visible {
  outline: 1px solid rgba(162, 40, 54, .66);
  outline-offset: 6px;
}

.opening-screen.is-auto-focused .opening-wordmark:focus-visible {
  outline: none;
}

@media (max-width: 700px) {
  .opening-screen {
    padding-inline: 12px;
  }
  .opening-wordmark {
    width: min(100%, 560px);
    padding: 24px 10px 30px;
  }
  .opening-wordmark__name {
    font-size: clamp(58px, 15vw, 98px);
    letter-spacing: .055em;
  }
  .opening-wordmark__place {
    margin-top: 14px;
    font-size: clamp(12px, 3vw, 14px);
    letter-spacing: .36em;
    padding-left: .36em;
  }
  .opening-wordmark::after {
    width: min(70px, 26vw);
    margin-top: 16px;
  }
}

@media (max-width: 350px) {
  .opening-wordmark__name {
    font-size: 55px;
    letter-spacing: .032em;
  }
  .opening-wordmark__place {
    font-size: 11px;
    letter-spacing: .31em;
    padding-left: .31em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-screen,
  .opening-wordmark__name,
  .opening-wordmark__place,
  .opening-wordmark::after {
    transition: none;
  }
}
