/* ===========================================================================
   ANTIPHON — core
   Structure, rhythm, controls. The skin lives in vestments.css.
   =========================================================================== */

:root {
  --void: #040404;
  --pitch: #0a0a0b;
  --soot: #101012;
  --crypt: #17171a;
  --iron: #26262c;
  --ash: #5d5d67;
  --smoke: #9b9ba5;
  --bone: #e6e3dc;
  --chalk: #fbfaf7;
  --halo: #ffffff;

  --line: rgba(230, 227, 220, 0.14);
  --line-hard: rgba(230, 227, 220, 0.32);

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  --jp: "Yu Gothic", "Hiragino Sans", "Noto Sans JP", "Meiryo", sans-serif;

  --gut: 18px;
  --rail-h: 68px;
  --ease: cubic-bezier(0.16, 0.84, 0.28, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

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

a {
  color: inherit;
}

/* author display rules must never resurrect a hidden node */
[hidden] {
  display: none !important;
}

/* Cormorant ships oldstyle figures; counters need them to line up. */
.panel-count,
.covenant-cell dd,
.halo-button b,
.verse-halo b,
.relic-count b,
.relic-rank,
.plate-side {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.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;
}

/* ------------------------------------------------------------------ veil - */
.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--void);
  transition: opacity 0.55s var(--ease);
}

.veil.is-gone {
  opacity: 0;
  pointer-events: none;
}

.veil-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 0 28px;
}

.veil-word {
  margin: 0;
  max-width: 100%;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 8.2vw, 52px);
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: var(--chalk);
}

.veil-sub {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ash);
}

.veil-form {
  display: grid;
  gap: 10px;
  width: min(280px, 78vw);
  margin-top: 10px;
}

.veil-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
}

.veil-form input {
  width: 100%;
  padding: 12px 14px;
  background: var(--soot);
  border: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  letter-spacing: 0.4em;
  outline: none;
}

.veil-form input:focus {
  border-color: var(--line-hard);
}

.veil-error {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--chalk);
  text-transform: uppercase;
}

.veil-binary {
  margin: 0;
  font-size: 8px;
  letter-spacing: 0.24em;
  color: rgba(230, 227, 220, 0.2);
}

/* ---------------------------------------------------------------- shell -- */
.record {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 26px var(--gut) calc(var(--rail-h) + 46px);
}

body.is-booting .record {
  opacity: 0;
}

/* ---------------------------------------------------------------- crown -- */
.crown {
  display: grid;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.crown-brand {
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.crown-kicker {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
}

.crown-word {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 9vw, 44px);
  line-height: 0.9;
  letter-spacing: 0.2em;
  color: var(--chalk);
}

.crown-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.tether {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--smoke);
}

.tether i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ash);
}

.tether.is-live i {
  background: var(--halo);
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.85);
  animation: pulse 2.4s infinite;
}

.tether.is-live {
  color: var(--bone);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.voice-switch {
  display: flex;
  border: 1px solid var(--line);
}

.voice-chip {
  display: grid;
  gap: 1px;
  padding: 6px 11px;
  text-align: center;
  color: var(--ash);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.voice-chip + .voice-chip {
  border-left: 1px solid var(--line);
}

.voice-chip b {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-chip small {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

.voice-chip.is-active {
  background: var(--bone);
  color: var(--void);
}

/* ---------------------------------------------------------------- vigil -- */
.vigil-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
}

.vigil-banner b {
  color: var(--chalk);
  letter-spacing: 0.32em;
}

/* ----------------------------------------------------------------- nave -- */
.nave {
  margin-top: 22px;
}

.plate {
  position: relative;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, var(--soot), var(--pitch));
  border: 1px solid var(--line);
}

.plate-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.plate-side {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--smoke);
}

.plate-name {
  flex: 1;
  min-width: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plate-clock {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ash);
}

.plate-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 12px;
}

.relic {
  position: relative;
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}

.relic-art {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  background: var(--crypt) center / cover no-repeat;
  color: var(--ash);
  font-family: var(--display);
  font-size: 22px;
}

.relic-halo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.plate-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.plate-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(21px, 6vw, 27px);
  line-height: 1.06;
  color: var(--chalk);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.plate-artist {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plate-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--bone);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ghost-button svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: none;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: var(--line-hard);
  background: rgba(230, 227, 220, 0.05);
}

.ghost-button.is-playing {
  background: var(--bone);
  color: var(--void);
}

.halo-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--line);
}

.halo-button b {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  color: var(--chalk);
  min-width: 22px;
  text-align: center;
}

.halo-button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------------------------------------------------------------- chain -- */
.nave-chain {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
}

.chain-line {
  flex: 1;
  height: 22px;
}

.chain-verdict {
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: center;
  white-space: nowrap;
}

/* ------------------------------------------------------------- offering -- */
.offering {
  margin-top: 24px;
}

.offer-form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--soot);
}

.offer-tag {
  display: grid;
  place-items: center;
  padding: 0 11px;
  border-right: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--ash);
}

.offer-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 12px;
  background: none;
  border: 0;
  outline: none;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.offer-form input::placeholder {
  color: var(--ash);
  letter-spacing: 0.1em;
}

.stamp-button {
  padding: 0 15px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--bone);
  color: var(--void);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  transition: filter 0.2s var(--ease);
}

.stamp-button:hover,
.stamp-button:focus-visible {
  filter: invert(1);
}

.stamp-button:disabled {
  opacity: 0.45;
  cursor: default;
  filter: none;
}

.stamp-button.is-wide {
  width: 100%;
  padding: 12px;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: none;
  color: var(--bone);
}

.stamp-button.is-wide:hover {
  filter: none;
  background: rgba(230, 227, 220, 0.06);
}

.offer-results {
  display: grid;
  gap: 1px;
  margin-top: 1px;
}

.offer-results:not(:empty) {
  border: 1px solid var(--line);
  border-top: 0;
}

.result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: var(--pitch);
  transition: background 0.18s var(--ease);
}

.result:hover,
.result:focus-visible {
  background: var(--crypt);
}

.result-art {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--crypt) center / cover no-repeat;
}

.result-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.result-copy strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  color: var(--chalk);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-copy span {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-mark {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--ash);
  flex-shrink: 0;
}

.offer-note {
  padding: 12px;
  background: var(--pitch);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: center;
}

/* --------------------------------------------------------------- panels -- */
.panel {
  margin-top: 28px;
}

.panel[hidden] {
  display: none;
}

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-hard);
}

.panel-head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.36em;
  color: var(--chalk);
}

.panel-note {
  flex: 1;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ash);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-count {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 300;
  color: var(--smoke);
}

/* --------------------------------------------------------------- litany -- */
.litany-list {
  display: grid;
}

.verse {
  position: relative;
  display: grid;
  grid-template-columns: 34px 44px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.verse-index {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ash);
}

.verse-art {
  width: 44px;
  height: 44px;
  background: var(--crypt) center / cover no-repeat;
  display: grid;
  place-items: center;
  font-family: var(--display);
  color: var(--ash);
}

.verse-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.verse-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--chalk);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verse-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  min-width: 0;
}

.verse-meta em {
  flex: 1 1 auto;
  min-width: 0;
  font-style: normal;
  color: var(--ash);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verse-meta i {
  flex-shrink: 0;
  white-space: nowrap;
}

.verse-voice {
  padding: 1px 5px;
  border: 1px solid var(--line);
  color: var(--bone);
  flex-shrink: 0;
}

.verse-answer {
  grid-column: 3 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  padding-top: 2px;
  min-width: 0;
}

.verse-answer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verse-halo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--smoke);
}

.verse-halo b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--chalk);
  min-width: 16px;
  text-align: center;
}

.verse.is-crowned .verse-halo {
  border-color: var(--line-hard);
}

.empty {
  padding: 26px 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ------------------------------------------------------------ reliquary -- */
.reliquary-list {
  display: grid;
  gap: 1px;
  margin-top: 4px;
}

.relic-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 14px 12px;
  background: var(--pitch);
  border: 1px solid var(--line);
}

.relic-rank {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 300;
  color: var(--ash);
  min-width: 30px;
}

.relic-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.relic-copy strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  color: var(--chalk);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relic-copy span {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relic-count {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.relic-count b {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--chalk);
}

.relic-count small {
  font-size: 7px;
  letter-spacing: 0.24em;
  color: var(--ash);
}

/* ------------------------------------------------------------- covenant -- */
.balance {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 20px;
}

.balance-name {
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--smoke);
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-bar {
  position: relative;
  flex: 1;
  height: 3px;
  background: var(--iron);
}

.balance-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: var(--bone);
  transition: width 0.6s var(--ease);
}

.covenant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.covenant-cell {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  background: var(--pitch);
}

.covenant-cell dt {
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
}

.covenant-cell dd {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  color: var(--chalk);
}

.covenant-cell dd small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--smoke);
}

.covenant-line {
  margin: 16px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--smoke);
  text-align: center;
}

/* ----------------------------------------------------------------- rail -- */
.rail {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 20;
  width: min(760px, 100%);
  height: calc(var(--rail-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(4, 4, 4, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.rail-tab {
  display: grid;
  place-items: center;
  gap: 5px;
  color: var(--ash);
  transition: color 0.2s var(--ease);
}

.rail-tab svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: square;
}

.rail-tab span {
  font-size: 7px;
  letter-spacing: 0.24em;
}

.rail-tab.is-active {
  color: var(--chalk);
}

.rail-tab + .rail-tab {
  border-left: 1px solid var(--line);
}

/* ------------------------------------------------------------ colophon -- */
.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
}

.colophon a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------- sheet -- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  justify-items: center;
  background: rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(6px);
  animation: fade 0.25s var(--ease);
}

@keyframes fade {
  from { opacity: 0; }
}

.sheet-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 22px var(--gut) calc(26px + env(safe-area-inset-bottom, 0px));
  background: var(--pitch);
  border-top: 1px solid var(--line-hard);
  animation: rise 0.32s var(--ease);
}

@keyframes rise {
  from { transform: translateY(22px); opacity: 0; }
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--smoke);
}

.sheet-close svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 40px;
}

.sheet-art {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--crypt) center / cover no-repeat;
  color: var(--ash);
  font-family: var(--display);
}

.sheet-kicker {
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ash);
}

.sheet-head h3 {
  margin: 3px 0 2px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  color: var(--chalk);
}

.sheet-head p {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sheet-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 12px;
  background: var(--pitch);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  transition: background 0.18s var(--ease);
}

.sheet-link:hover,
.sheet-link:focus-visible {
  background: var(--crypt);
}

.sheet-link i {
  font-style: normal;
  color: var(--ash);
  font-size: 11px;
}

/* --------------------------------------------------------------- toast -- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--rail-h) + 22px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 14px);
  z-index: 80;
  padding: 9px 15px;
  background: var(--bone);
  color: var(--void);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------- wide -- */
@media (min-width: 560px) {
  .crown {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .crown-side {
    flex-direction: column;
    align-items: flex-end;
  }
}

@media (min-width: 720px) {
  :root {
    --gut: 26px;
  }

  .nave {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0;
  }

  .nave-chain {
    flex-direction: column;
    padding: 0 14px;
  }

  .nave-chain .chain-line {
    width: 22px;
    flex: 1;
  }

  .chain-verdict {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .covenant-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
