/* Shared components: parchment sheets, slate, navy lacquer plaques, chips, medallions, crests, buttons, fields,
   notices, ledger rows, pager. Materials only from ui-design-code §2.2: parchment, slate, navy lacquer, walnut,
   gold leaf, bronze, painted cloth, ink. No plastic gloss, no drop shadow harder than a real contact shadow. */

/* ------------------------------------------------------------------ sheets */
.sheet {
  position: relative;
  color: var(--ink);
  border: 1px solid #1b1209;
  border-radius: 12px;
  background:
    radial-gradient(130% 110% at 50% 42%, transparent 56%, rgba(142, 112, 72, 0.16) 100%),
    var(--tex-sheet) 0 0 / 460px 460px,
    var(--parchment-sheet);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 224, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.4),
    0 14px 22px -10px rgba(0, 0, 0, 0.65);
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(142, 112, 72, 0.7);
  border-radius: 8px;
  pointer-events: none;
}
.sheet--board {
  --ink-soft: rgba(43, 32, 22, 0.99);
  background:
    radial-gradient(130% 110% at 50% 42%, transparent 52%, rgba(94, 70, 38, 0.34) 100%),
    var(--tex-board) 0 0 / 520px 520px,
    var(--parchment-board);
}
.sheet--pane {
  background:
    radial-gradient(120% 100% at 50% 40%, transparent 60%, rgba(142, 112, 72, 0.5) 100%),
    var(--tex-sheet) 0 0 / 460px 460px,
    var(--parchment-sheet);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 224, 0.3),
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 6px 10px -6px rgba(40, 24, 8, 0.7);
}
a.sheet {
  text-decoration: none;
  transition: box-shadow 0.15s, filter 0.15s;
}
a.sheet:hover {
  filter: brightness(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 224, 0.35),
    0 0 0 2px var(--gold-leaf),
    0 2px 0 rgba(0, 0, 0, 0.4),
    0 16px 24px -10px rgba(0, 0, 0, 0.7);
}

/* slate: the stone frame of the steward's notes (ui-design-code: stone frames only) */
.slate {
  position: relative;
  color: var(--cream);
  border: 1px solid #0d0905;
  border-radius: 12px;
  background:
    radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.35) 100%),
    var(--tex-slate) 0 0 / 300px 300px,
    var(--slate);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 224, 0.1),
    inset 0 0 0 5px var(--slate),
    inset 0 0 0 6px rgba(201, 162, 78, 0.5),
    0 12px 20px -10px rgba(0, 0, 0, 0.7);
}

/* ------------------------------------------------------------------ text helpers */
.nick {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  unicode-bidi: isolate;
}
.clock {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ------------------------------------------------------------------ icons */
.ico--gilt {
  background: linear-gradient(180deg, #f6e3a0 0%, #e8cb74 35%, #c9a24e 68%, #8f6f2e 100%);
}

/* ------------------------------------------------------------------ faction emblems (masks of the game's emblem art) */
.emb-universal { --emb: url(../img/emblems/universal.webp?v=GQB4rWQ9); }
.emb-nordic { --emb: url(../img/emblems/nordic.webp?v=6Nriqefi); }
.emb-vikings { --emb: url(../img/emblems/vikings.webp?v=8qyL8JLK); }
.emb-egyptians { --emb: url(../img/emblems/egyptians.webp?v=0FcNPhfG); }
.emb-romans { --emb: url(../img/emblems/romans.webp?v=YwyYlI30); }
.emb-ashari { --emb: url(../img/emblems/ashari.webp?v=WQboCNHT); }
.emb-samurai { --emb: url(../img/emblems/samurai.webp?v=tutxrGaB); }
.emb-celts { --emb: url(../img/emblems/celts.webp?v=kEQP4AG1); }
.emb-unknown { visibility: hidden; }

.medal {
  --d: 48px;
  --disc-hi: #2c3f68;
  --disc: #1c2740;
  --disc-lo: #0f1626;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--d);
  height: var(--d);
}
.medal--xs { --d: 30px; }
.medal--sm { --d: 46px; }
.medal--md { --d: 64px; }
.medal--xl { --d: 156px; }
.medal--p1 { --disc-hi: #2a5ea3; --disc: #14325c; --disc-lo: #0a1b36; }
.medal--p2 { --disc-hi: #a8362d; --disc: #6c1612; --disc-lo: #3f0a09; }
.medal__disc {
  position: absolute;
  inset: 8.5%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, var(--disc-hi), var(--disc) 60%, var(--disc-lo));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}
.medal__emblem {
  position: absolute;
  inset: 22%;
  background: var(--gold-text);
  -webkit-mask: var(--emb) center / contain no-repeat;
  mask: var(--emb) center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.55));
}
.medal__ring {
  position: absolute;
  inset: 0;
  background: url(../img/ring-gem.webp?v=pvqOok76) center / 163% 163% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
}
.medal[data-offline="true"] {
  filter: grayscale(0.85) brightness(0.8);
}
.medal[data-turn="true"]::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold-hi), 0 0 14px 3px rgba(232, 203, 116, 0.65);
  animation: turn 1.8s ease-in-out infinite;
}
@keyframes turn {
  50% {
    box-shadow: 0 0 0 2px var(--gold-leaf), 0 0 6px 1px rgba(232, 203, 116, 0.35);
  }
}

/* small emblem on parchment: ink glyph in a round bronze-edged plate */
.emb-chip {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  vertical-align: -0.4em;
  background: radial-gradient(circle at 35% 30%, #f1dca4, #d3b274 70%, #b69256);
  box-shadow: inset 0 0 0 1px rgba(43, 32, 22, 0.7), inset 0 0 0 2px rgba(255, 247, 224, 0.35);
}
.emb-chip__glyph {
  width: 74%;
  height: 74%;
  background: var(--ink);
  -webkit-mask: var(--emb) center / contain no-repeat;
  mask: var(--emb) center / contain no-repeat;
}

/* the HUD crest: painted cloth banner, emblem in gold leaf */
.crest {
  position: relative;
  flex: none;
  width: 92px;
  aspect-ratio: 4 / 5;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.5));
}
.crest--p1 { background-image: url(../img/crest-blue.webp?v=dJpVo4Q1); }
.crest--p2 { background-image: url(../img/crest-red.webp?v=4gB1Jimw); }
.crest__emblem {
  position: absolute;
  left: 21%;
  right: 21%;
  top: 33%;
  aspect-ratio: 1;
  background: var(--gold-text);
  -webkit-mask: var(--emb) center / contain no-repeat;
  mask: var(--emb) center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}

/* ------------------------------------------------------------------ plaques: engraved navy lacquer */
.plaques {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 30px);
}
.plaque {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 14px 16px 14px 18px;
  border-radius: 8px;
  color: var(--cream);
  background: var(--lacquer);
  box-shadow: var(--frame-lacquer), 0 10px 16px -8px rgba(0, 0, 0, 0.75);
}
.plaque__studs {
  position: absolute;
  inset: 5px;
  pointer-events: none;
  background:
    var(--pin) top left / 12px no-repeat,
    var(--pin) top right / 12px no-repeat,
    var(--pin) bottom left / 12px no-repeat,
    var(--pin) bottom right / 12px no-repeat;
}
.plaque__glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 78, 0.55), inset 0 2px 6px rgba(0, 0, 0, 0.55);
  background: rgba(8, 12, 24, 0.5);
  font-size: 24px;
}
.plaque__glyph .ico {
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}
.plaque__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.plaque__cap {
  font: 700 0.66rem / 1.25 var(--font-title);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.plaque__num {
  min-width: 2.2ch;
  font: 600 clamp(2.1rem, 1.5rem + 1.5vw, 2.8rem) / 1 var(--font-text);
  font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.12);
}
.plaque__num {
  white-space: nowrap;
}
.plaque__num[data-size="s"] {
  font-size: calc(clamp(2.1rem, 1.5rem + 1.5vw, 2.8rem) * 0.74);
}
.plaque__num[data-size="xs"] {
  font-size: calc(clamp(2.1rem, 1.5rem + 1.5vw, 2.8rem) * 0.56);
}
.plaque__sub {
  min-height: 1.2em;
  font-size: 0.84rem;
  font-style: italic;
  color: var(--cream-80);
  font-variant-numeric: lining-nums;
}
.plaque.is-tick .plaque__num {
  animation: tick 0.7s ease-out;
}
@keyframes tick {
  0% {
    color: var(--gold-hi);
    text-shadow: 0 0 12px rgba(232, 203, 116, 0.9);
  }
  100% {
    color: var(--cream);
  }
}
@media (max-width: 1060px) {
  .plaques {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .plaques {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .plaques .plaque:last-child {
    grid-column: 1 / -1;
  }
  .plaque {
    min-height: 92px;
    gap: 10px;
    padding: 12px 12px 12px 14px;
  }
  .plaque__glyph {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

/* ------------------------------------------------------------------ chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font: 700 0.64rem / 1 var(--font-title);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  background: var(--navy);
  box-shadow: inset 0 0 0 1px #0b1020, inset 0 0 0 2px rgba(201, 162, 78, 0.6);
}
.chip .ico {
  font-size: 1.15em;
}
.chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bronze);
}
.chip--phase[data-phase="playing"] .chip__dot {
  background: var(--gold-hi);
  box-shadow: 0 0 8px 2px rgba(232, 203, 116, 0.7);
  animation: dot 1.6s ease-in-out infinite;
}
.chip--phase[data-phase="starting"] .chip__dot {
  background: var(--cream-70);
}
.chip--phase[data-phase="reconnect-grace"] {
  background: #5a3a14;
}
.chip--phase[data-phase="reconnect-grace"] .chip__dot {
  background: #e6a54d;
  animation: dot 0.9s steps(2, jump-none) infinite;
}
.chip--phase[data-phase="finished"] {
  background: var(--slate);
}
.chip--phase[data-phase="finished"] .chip__dot {
  background: var(--parchment-shadow);
}
.chip--weather {
  color: var(--ink);
  background: rgba(43, 32, 22, 0.1);
  box-shadow: inset 0 0 0 1px rgba(43, 32, 22, 0.55);
}
/* PvP mode: ranked is gilt (it moves the rating), casual and custom are plain ink outlines */
.chip--mode {
  color: var(--ink);
  background: rgba(43, 32, 22, 0.06);
  box-shadow: inset 0 0 0 1px rgba(43, 32, 22, 0.55);
}
.chip--mode[data-mode="ranked"] {
  background: linear-gradient(180deg, #f6e3a0, #c9a24e);
  box-shadow: inset 0 0 0 1px rgba(43, 32, 22, 0.6);
}
/* A password lobby's match and a banned player (steward's views only): a crimson seal */
.chip--private,
.chip--banned {
  color: var(--cream);
  background: var(--crimson);
  box-shadow: inset 0 0 0 1px #4a110d, inset 0 0 0 2px rgba(201, 162, 78, 0.5);
}
/* A custom game's options: small labelled ink chips (faint label, set value) in one wrapping row */
.opt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip--option {
  gap: 5px;
  padding: 4px 9px;
  /* the smallest caps on the site: 10 px is the floor for Cinzel caps to stay legible */
  font-size: 0.625rem;
  color: var(--ink);
  background: rgba(43, 32, 22, 0.05);
  box-shadow: inset 0 0 0 1px rgba(43, 32, 22, 0.4);
}
.chip__label {
  color: var(--ink-soft);
}
@keyframes dot {
  50% {
    opacity: 0.35;
  }
}

/* ------------------------------------------------------------------ buttons: lacquer plate in a bronze frame */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 7px;
  font: 700 0.8rem / 1 var(--font-title);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
  cursor: pointer;
  background:
    var(--pin) top 4px left 4px / 9px no-repeat,
    var(--pin) top 4px right 4px / 9px no-repeat,
    var(--pin) bottom 4px left 4px / 9px no-repeat,
    var(--pin) bottom 4px right 4px / 9px no-repeat,
    var(--lacquer);
  box-shadow: var(--frame-lacquer), var(--shadow-1);
  transition: filter 0.15s;
}
.btn:hover {
  filter: brightness(1.14);
  box-shadow: var(--frame-lacquer-hi), var(--shadow-1);
}
.btn:active {
  filter: brightness(0.86);
}
.btn:disabled {
  filter: grayscale(0.7) brightness(0.8);
  cursor: not-allowed;
  opacity: 0.6;
}
.btn--walnut {
  background:
    var(--pin) top 4px left 4px / 9px no-repeat,
    var(--pin) top 4px right 4px / 9px no-repeat,
    var(--pin) bottom 4px left 4px / 9px no-repeat,
    var(--pin) bottom 4px right 4px / 9px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(180deg, #6a4b2e, var(--walnut) 55%, #33220f);
}
.btn--crimson {
  background:
    var(--pin) top 4px left 4px / 9px no-repeat,
    var(--pin) top 4px right 4px / 9px no-repeat,
    var(--pin) bottom 4px left 4px / 9px no-repeat,
    var(--pin) bottom 4px right 4px / 9px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(180deg, #a8392f, var(--crimson) 55%, #5f1a15);
}

/* ------------------------------------------------------------------ fields */
.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 247, 224, 0.6);
  box-shadow: inset 0 0 0 1px rgba(43, 32, 22, 0.8), inset 0 2px 6px rgba(43, 32, 22, 0.3), 0 1px 0 rgba(255, 247, 224, 0.2);
}
.field:focus-within {
  box-shadow: inset 0 0 0 2px var(--gold-lo), inset 0 2px 6px rgba(43, 32, 22, 0.3), 0 0 0 3px rgba(232, 203, 116, 0.55);
}
.field__ico {
  opacity: 0.8;
}
.field__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  font: 600 1.15rem / 1.2 var(--font-text);
  color: var(--ink);
  outline: none;
}
.field__input:focus-visible {
  box-shadow: none;
}
/* the browser's own clear button would double ours */
.field__input::-webkit-search-cancel-button,
.field__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.field__input::placeholder {
  color: var(--ink-60);
  font-weight: 500;
  font-style: italic;
}
.field__clear {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(43, 32, 22, 0.12);
  color: var(--ink);
  cursor: pointer;
}
.field__clear:hover {
  background: rgba(43, 32, 22, 0.24);
}
.field__clear .ico {
  width: 0.9em;
  height: 0.9em;
}
.hint {
  margin-top: 8px;
  min-height: 1.4em;
  font-size: var(--fs-caption);
  font-style: italic;
  color: var(--cream-70);
}
.hint.is-warn {
  color: #f0b5a8;
}

/* ------------------------------------------------------------------ notices */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border-radius: 10px;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(42, 59, 102, 0.85), rgba(28, 39, 64, 0.9));
  box-shadow: inset 0 0 0 1px rgba(201, 162, 78, 0.55), 0 8px 14px -10px rgba(0, 0, 0, 0.8);
}
.notice__glyph {
  flex: none;
  margin-top: 1px;
  font-size: 1.45rem;
  color: var(--gold-hi);
}
.notice__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.notice__title {
  font: 700 0.76rem / 1.3 var(--font-title);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.notice__text {
  color: var(--cream-80);
  font-size: 1.02rem;
}
.notice__link {
  color: var(--gold-hi);
  font-weight: 600;
}
.notice--error {
  background: linear-gradient(180deg, rgba(140, 42, 34, 0.9), rgba(100, 22, 18, 0.92));
  box-shadow: inset 0 0 0 1px rgba(232, 151, 140, 0.65), 0 8px 14px -10px rgba(0, 0, 0, 0.8);
}
.notice--error .notice__glyph {
  color: #ffd2c8;
}
.notice--fog {
  background: linear-gradient(180deg, rgba(79, 112, 116, 0.92), rgba(50, 80, 84, 0.94));
  box-shadow: inset 0 0 0 1px rgba(200, 224, 220, 0.5), 0 8px 14px -10px rgba(0, 0, 0, 0.8);
}
.notice--end {
  background: linear-gradient(180deg, rgba(74, 51, 32, 0.92), rgba(51, 34, 15, 0.94));
}
.steward-strip {
  justify-self: center;
  padding: 6px 16px;
  border-radius: 999px;
  font: 700 0.66rem / 1.2 var(--font-title);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold-hi);
  background: rgba(10, 15, 29, 0.55);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 78, 0.55);
}

/* ------------------------------------------------------------------ empty and error states */
.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(26px, 5vw, 46px) 20px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 247, 224, 0.05);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 78, 0.35);
  color: var(--cream);
}
.empty__mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 6px;
  border-radius: 50%;
  font-size: 40px;
  background: radial-gradient(circle at 35% 28%, #2a3b66, var(--navy) 62%, var(--navy-lo));
  box-shadow: inset 0 0 0 2px var(--bronze), inset 0 0 0 3px rgba(232, 203, 116, 0.7), 0 8px 14px -6px rgba(0, 0, 0, 0.7);
}
.empty__title {
  font: 700 var(--fs-section) / 1.25 var(--font-title);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.empty__text {
  max-width: 34em;
  color: var(--cream-70);
  font-style: italic;
}
.empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.empty--error {
  box-shadow: inset 0 0 0 1px rgba(232, 151, 140, 0.55);
  background: rgba(115, 11, 14, 0.18);
}
.empty--error .empty__mark {
  background: radial-gradient(circle at 35% 28%, #a8392f, var(--crimson) 62%, #4a110d);
}

/* an empty / error state inside a parchment sheet: ink on parchment */
.sheet .empty {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.sheet .empty .empty__text {
  color: var(--ink-soft);
}
.sheet .empty--error {
  background: transparent;
  box-shadow: none;
}

/* skeleton: static parchment placeholders (a slow shimmer unless motion is reduced) */
.skeletons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.skeleton {
  min-height: 188px;
  opacity: 0.45;
  animation: shimmer 1.8s ease-in-out infinite;
}
.skeleton--tall {
  min-height: 420px;
}
@keyframes shimmer {
  50% {
    opacity: 0.28;
  }
}

/* ------------------------------------------------------------------ ledger rows: icon, small-caps label, value, thin rule */
.ledger {
  display: block;
}
.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  min-height: 46px;
  padding: 6px 2px;
  border-bottom: 1px solid rgba(43, 32, 22, 0.3);
}
.row:last-child {
  border-bottom-color: transparent;
}
.row__glyph {
  display: grid;
  place-items: center;
  width: 30px;
  font-size: 22px;
  color: var(--ink);
  opacity: 0.85;
}
.row:not(:has(.row__glyph)) {
  grid-template-columns: minmax(0, 1fr) auto;
}
.row__label {
  min-width: 0;
  font: 600 var(--fs-label) / 1.3 var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.row__hint {
  display: block;
  margin-top: 1px;
  font: italic 500 0.9rem / 1.3 var(--font-text);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.row__value {
  justify-self: end;
  max-width: 100%;
  text-align: right;
  font: 600 var(--fs-value) / 1.2 var(--font-text);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.row__faction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ledger--tight .row {
  min-height: 38px;
}
.ledger--dark .row {
  border-bottom-color: rgba(255, 247, 224, 0.16);
}
.ledger--dark .row__glyph,
.ledger--dark .row__label,
.ledger--dark .row__value {
  color: var(--cream);
}
.ledger--dark .row__hint {
  color: var(--cream-70);
}

.rule-diamond {
  height: 14px;
  margin: 14px 0 12px;
  background: var(--ink);
  opacity: 0.7;
  -webkit-mask: url(../img/orn-divider.webp?v=obbLxigw) center / 100% 100% no-repeat;
  mask: url(../img/orn-divider.webp?v=obbLxigw) center / 100% 100% no-repeat;
}

/* ------------------------------------------------------------------ pager: parchment pills with gilt chevrons */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.pager__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  font: 700 0.72rem / 1 var(--font-title);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 247, 224, 0.55);
  box-shadow: inset 0 0 0 1px rgba(43, 32, 22, 0.75), 0 1px 0 rgba(255, 247, 224, 0.4), 0 3px 6px -3px rgba(43, 32, 22, 0.6);
}
.pager__btn--next {
  padding: 0 12px 0 16px;
  flex-direction: row-reverse;
}
a.pager__btn:hover {
  background: rgba(255, 247, 224, 0.85);
  box-shadow: inset 0 0 0 2px var(--gold-lo), 0 3px 6px -3px rgba(43, 32, 22, 0.6);
}
.pager__btn.is-off {
  opacity: 0.4;
}
.pager__chev {
  width: 22px;
  height: 22px;
  background: url(../img/chev-l.webp?v=UfBmInIK) center / contain no-repeat;
}
.pager__chev--next {
  background-image: url(../img/chev-r.webp?v=uVQRaH6m);
}
.pager__page {
  font: 600 var(--fs-value) / 1 var(--font-text);
  font-variant-numeric: lining-nums;
  color: var(--ink);
}
@media (max-width: 480px) {
  .pager__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .pager__btn {
    padding: 0 10px;
  }
}

/* ------------------------------------------------------------------ breadcrumb */
.crumbs {
  margin-bottom: 14px;
}
.crumbs__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font: 700 0.7rem / 1 var(--font-title);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-80);
  text-decoration: none;
  background: rgba(10, 15, 29, 0.4);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 78, 0.4);
}
.crumbs__link:hover {
  color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px var(--gold-leaf);
}
.crumbs__chev {
  width: 20px;
  height: 20px;
  background: url(../img/chev-l.webp?v=UfBmInIK) center / contain no-repeat;
}
