.riftmarch-page,
.riftmarch-beasts-page,
.riftmarch-disabled {
  --rm-bg: #030b0e;
  --rm-panel: rgba(5, 18, 22, .96);
  --rm-panel-soft: rgba(8, 26, 31, .88);
  --rm-line: rgba(128, 215, 200, .22);
  --rm-gold: #d8bb72;
  --rm-cream: #eef9f3;
  --rm-muted: #94aaa5;
  --rm-green: #77e6b8;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: min(860px, calc(100vh - 120px));
  color: var(--rm-cream);
  background:
    radial-gradient(circle at 12% 0%, var(--riftmarch-active-glow, rgba(94, 72, 156, .22)), transparent 38%),
    linear-gradient(145deg, rgba(4, 16, 19, .98), rgba(2, 9, 12, .98));
  border: 1px solid rgba(116, 207, 193, .28);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, .5),
    inset 0 1px rgba(255, 255, 255, .035);
  overflow: clip;
}

body.vespera-riftmarch-open main.zone-themed-main {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.riftmarch-page::before,
.riftmarch-beasts-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .38;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(157, 228, 214, .03) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(157, 228, 214, .025) 50%, transparent 50.2%);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

.riftmarch-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 1.25fr) minmax(260px, .75fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 24px 30px;
  border-bottom: 1px solid var(--rm-line);
  background:
    linear-gradient(90deg, rgba(1, 8, 10, .98), rgba(5, 17, 21, .9) 58%, rgba(3, 12, 15, .98));
}

.riftmarch-header::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -1px;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--riftmarch-active-color), transparent);
  box-shadow: 0 0 18px var(--riftmarch-active-color);
}

.riftmarch-header > div:first-child > span,
.riftmarch-beasts-hero > div > span,
.riftmarch-apex > header span,
.riftmarch-exchange > header span,
.riftmarch-warpath > header > span,
.riftmarch-elder-bonds > header > span {
  color: var(--rm-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.riftmarch-header h1,
.riftmarch-beasts-hero h1 {
  margin: 3px 0 5px;
  color: #f1fbf6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.2vw, 68px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.035em;
  text-shadow: 0 6px 25px rgba(0, 0, 0, .62);
}

.riftmarch-header p,
.riftmarch-beasts-hero p {
  max-width: 750px;
  margin: 0;
  color: var(--rm-muted);
  font-size: 14px;
  line-height: 1.55;
}

.riftmarch-week-card {
  position: relative;
  min-height: 92px;
  padding: 16px 18px 16px 120px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--riftmarch-active-color) 58%, transparent);
  background:
    linear-gradient(90deg, rgba(3, 12, 16, .18), rgba(3, 12, 16, .96) 47%),
    var(--area-image) center / cover;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .35);
}

.riftmarch-week-card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid var(--riftmarch-active-color);
  background: radial-gradient(circle, var(--riftmarch-active-glow), rgba(3, 11, 14, .95) 65%);
  box-shadow: 0 0 30px var(--riftmarch-active-glow);
}

.riftmarch-week-card span,
.riftmarch-week-card strong,
.riftmarch-week-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.riftmarch-week-card span {
  color: var(--riftmarch-active-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}

.riftmarch-week-card strong {
  margin: 3px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.riftmarch-week-card small {
  color: #aebfbb;
}

.riftmarch-header-actions {
  display: grid;
  gap: 9px;
  justify-items: stretch;
  min-width: 200px;
}

.riftmarch-header-actions > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--rm-line);
  background: rgba(4, 16, 19, .9);
}

.riftmarch-header-actions small {
  color: var(--rm-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.riftmarch-header-actions strong {
  color: var(--rm-green);
  font-size: 20px;
}

.riftmarch-button {
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid rgba(177, 226, 213, .28);
  color: #dbeae5;
  background: rgba(7, 24, 29, .92);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.riftmarch-button:hover:not(:disabled),
.riftmarch-button:focus-visible:not(:disabled) {
  z-index: 1;
  border-color: var(--rm-green);
  color: #fff;
  background: rgba(15, 59, 55, .96);
  transform: translateY(-1px);
}

.riftmarch-button.is-primary {
  border-color: rgba(114, 239, 188, .62);
  color: #051713;
  background: linear-gradient(135deg, #70e3b4, #afd69f 65%, #e3d193);
  box-shadow: 0 5px 24px rgba(76, 225, 173, .15);
}

.riftmarch-button.is-danger {
  border-color: rgba(241, 102, 102, .7);
  color: #ffdada;
  background: linear-gradient(135deg, rgba(112, 28, 37, .96), rgba(67, 15, 26, .96));
}

.riftmarch-button.is-quiet {
  border-color: rgba(202, 178, 111, .4);
  color: #e1cf9a;
  background: rgba(20, 20, 17, .86);
}

.riftmarch-button:disabled {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(.45);
}

.riftmarch-area-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .72fr repeat(4, 1fr);
  border-bottom: 1px solid var(--rm-line);
  background: #061116;
}

.riftmarch-area-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 10px 14px;
  border: 0;
  border-right: 1px solid rgba(133, 200, 189, .12);
  color: #82938f;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.riftmarch-area-tabs button::after,
.riftmarch-mode-tabs button::after,
.riftmarch-beast-tabs button::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.riftmarch-area-tabs button:hover,
.riftmarch-area-tabs button.is-selected {
  color: #f2faf7;
  background: linear-gradient(to top, rgba(75, 183, 156, .10), transparent);
}

.riftmarch-area-tabs button.is-selected::after {
  background: var(--area-color, var(--rm-green));
  box-shadow: 0 0 14px var(--area-color, var(--rm-green));
}

.riftmarch-area-tabs button.is-weekly {
  color: #dff9ee;
}

.riftmarch-area-tabs button strong {
  overflow: hidden;
  font-size: 11px;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.riftmarch-area-tabs button small {
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--rm-green);
  font-size: 7px;
  letter-spacing: .1em;
}

.riftmarch-area-tabs__sigil {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 1px solid var(--area-color);
  background: color-mix(in srgb, var(--area-color) 28%, #061116);
  box-shadow: 0 0 10px color-mix(in srgb, var(--area-color) 45%, transparent);
}

.riftmarch-content {
  padding: clamp(16px, 2vw, 28px);
}

.riftmarch-summary {
  display: grid;
  grid-template-columns: 260px minmax(360px, 1fr) minmax(260px, .72fr);
  grid-template-rows: 285px auto;
  gap: 12px;
}

.riftmarch-tier-banner,
.riftmarch-tier-boon,
.riftmarch-summary-areas,
.riftmarch-tier-requirements,
.riftmarch-tier-reward {
  border: 1px solid var(--rm-line);
  background: var(--rm-panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.riftmarch-tier-banner {
  position: relative;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 560px;
  padding: 34px 20px 26px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(5, 14, 17, .68), rgba(4, 12, 15, .98)),
    url("/assets/riftmarch/areas/ebonwake-choir.webp") center / cover;
}

.riftmarch-tier-banner::after {
  content: "";
  position: absolute;
  inset: auto -30% -22% -30%;
  height: 48%;
  background:
    repeating-linear-gradient(115deg, transparent 0 19px, rgba(140, 226, 205, .09) 20px 21px),
    linear-gradient(transparent, rgba(9, 35, 36, .96));
  clip-path: polygon(0 24%, 20% 5%, 36% 28%, 52% 0, 70% 22%, 84% 4%, 100% 25%, 100% 100%, 0 100%);
}

.riftmarch-tier-banner > span,
.riftmarch-tier-banner > small,
.riftmarch-tier-banner > p,
.riftmarch-tier-emblem {
  position: relative;
  z-index: 1;
}

.riftmarch-tier-banner > span {
  color: var(--rm-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  letter-spacing: .08em;
}

.riftmarch-tier-banner > small {
  margin-top: 5px;
  padding: 4px 14px;
  border-block: 1px solid rgba(205, 183, 111, .38);
  color: #d2bd7b;
  font-size: 11px;
}

.riftmarch-tier-emblem {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 38px 0 26px;
  transform: rotate(45deg);
  border: 2px solid var(--rm-green);
  background: radial-gradient(circle, #163c37, #071414 68%);
  box-shadow:
    0 0 0 9px rgba(105, 225, 183, .06),
    0 0 36px rgba(77, 223, 168, .24);
}

.riftmarch-tier-emblem b,
.riftmarch-tier-emblem strong {
  transform: rotate(-45deg);
}

.riftmarch-tier-emblem b {
  align-self: end;
  color: #b1c8c0;
  font-size: 11px;
}

.riftmarch-tier-emblem strong {
  align-self: start;
  margin-top: -12px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
}

.riftmarch-tier-banner p {
  margin-top: auto;
  color: #a4b6b0;
  font-size: 12px;
  line-height: 1.55;
}

.riftmarch-tier-boon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(102, 214, 181, .09), transparent 48%),
    var(--rm-panel);
}

.riftmarch-tier-boon__lock {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 12px;
  transform: rotate(45deg);
  border: 1px solid rgba(195, 226, 216, .32);
  color: var(--rm-green);
  background: rgba(5, 19, 21, .9);
  font-size: 28px;
  box-shadow: 0 0 26px rgba(83, 225, 175, .14);
}

.riftmarch-tier-boon h2,
.riftmarch-tier-boon p {
  max-width: 620px;
  margin: 5px 0;
}

.riftmarch-tier-boon h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.riftmarch-tier-boon p {
  color: var(--rm-muted);
  font-size: 12px;
}

.riftmarch-tier-boon .riftmarch-button {
  margin-top: 14px;
}

.riftmarch-summary-areas {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.riftmarch-summary-areas > div {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 55px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--area-color) 50%, transparent);
  background:
    linear-gradient(90deg, rgba(3, 11, 14, .5), rgba(3, 11, 14, .95) 45%),
    var(--area-image) center / cover;
}

.riftmarch-summary-areas i {
  width: 42px;
  height: 42px;
  margin-left: 6px;
  transform: rotate(45deg);
  border: 1px solid var(--area-color);
  background: radial-gradient(circle, color-mix(in srgb, var(--area-color) 35%, #071116), #050e11 70%);
  box-shadow: 0 0 15px color-mix(in srgb, var(--area-color) 35%, transparent);
}

.riftmarch-summary-areas span,
.riftmarch-summary-areas strong,
.riftmarch-summary-areas small {
  display: block;
}

.riftmarch-summary-areas strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.riftmarch-summary-areas small {
  margin-top: 2px;
  color: var(--area-color);
  font-size: 10px;
  font-weight: 800;
}

.riftmarch-tier-requirements,
.riftmarch-tier-reward {
  padding: 14px 16px;
}

.riftmarch-tier-requirements h3,
.riftmarch-tier-reward h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(187, 221, 212, .2);
  color: #dbe9e5;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.riftmarch-requirement {
  display: grid;
  grid-template-columns: minmax(165px, .75fr) 1.25fr;
  gap: 14px;
  align-items: center;
  min-height: 39px;
  border-bottom: 1px solid rgba(154, 202, 190, .07);
}

.riftmarch-requirement > span {
  color: #c8d5d1;
  font-size: 11px;
  font-weight: 700;
}

.riftmarch-requirement.is-ready > span {
  color: var(--rm-green);
}

.riftmarch-meter {
  position: relative;
  height: 23px;
  overflow: hidden;
  border: 1px solid rgba(172, 215, 205, .24);
  background: rgba(0, 5, 7, .86);
}

.riftmarch-meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  opacity: .78;
  box-shadow: 0 0 14px currentColor;
}

.riftmarch-meter > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  color: #eff8f4;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .025em;
  text-shadow: 0 1px 4px #000;
}

.riftmarch-tier-reward {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.riftmarch-tier-reward__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.riftmarch-tier-token,
.riftmarch-currency {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(197, 178, 112, .35);
  color: #ead894;
  background: rgba(8, 14, 14, .92);
  font-size: 10px;
}

.riftmarch-tier-token i,
.riftmarch-currency i {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 1px solid currentColor;
  color: inherit;
  background: rgba(255, 255, 255, .035);
  font-style: normal;
  font-size: 7px;
  font-weight: 900;
}

.riftmarch-tier-token i::first-letter,
.riftmarch-currency i::first-letter {
  transform: rotate(-45deg);
}

.riftmarch-currency.is-riftstone {
  color: #8fdfd1;
  border-color: rgba(102, 219, 203, .4);
}

.riftmarch-currency.is-dreadseals {
  color: #cf9cf2;
  border-color: rgba(181, 112, 229, .42);
}

.riftmarch-currency.is-sovereignHorns {
  color: #f2ca78;
  border-color: rgba(222, 179, 89, .46);
}

.riftmarch-mode-tabs {
  display: flex;
  border: 1px solid var(--rm-line);
  background: rgba(3, 12, 15, .95);
}

.riftmarch-mode-tabs button,
.riftmarch-beast-tabs button {
  position: relative;
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-right: 1px solid rgba(144, 204, 192, .12);
  color: #899a96;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  cursor: pointer;
}

.riftmarch-mode-tabs button:hover,
.riftmarch-mode-tabs button.is-selected,
.riftmarch-beast-tabs button:hover,
.riftmarch-beast-tabs button.is-selected {
  color: #eaf6f2;
  background: rgba(80, 195, 158, .08);
}

.riftmarch-mode-tabs button.is-selected::after,
.riftmarch-beast-tabs button.is-selected::after {
  background: var(--rm-green);
  box-shadow: 0 0 12px rgba(109, 230, 184, .45);
}

.riftmarch-rank-view {
  display: grid;
  grid-template-columns: minmax(350px, .8fr) minmax(520px, 1.2fr);
  gap: 12px;
  margin-top: 12px;
}

.riftmarch-area-dossier,
.riftmarch-killboard {
  border: 1px solid var(--rm-line);
  background: var(--rm-panel);
}

.riftmarch-area-dossier {
  position: relative;
  min-height: 610px;
  padding: 0 20px 20px;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .38);
}

.riftmarch-area-dossier__art {
  height: 320px;
  margin: 0 -20px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--area-color) 55%, transparent);
  background:
    linear-gradient(to top, var(--rm-panel), transparent 35%),
    linear-gradient(90deg, transparent, rgba(0, 0, 0, .28)),
    var(--area-image) center / cover;
}

.riftmarch-area-dossier__identity {
  position: absolute;
  top: 24px;
  left: 24px;
  max-width: 72%;
  padding: 14px 18px;
  border-left: 2px solid var(--area-color);
  background: linear-gradient(90deg, rgba(2, 10, 13, .88), rgba(2, 10, 13, .08));
  text-shadow: 0 2px 8px #000;
}

.riftmarch-area-dossier__identity span {
  color: var(--area-color);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.riftmarch-area-dossier__identity h2 {
  margin: 3px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 500;
}

.riftmarch-area-dossier__identity strong {
  color: #c8d4d0;
  font-size: 11px;
}

.riftmarch-area-rank {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 0;
  align-items: center;
  margin-top: -46px;
}

.riftmarch-area-rank > b {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  transform: rotate(45deg);
  border: 2px solid var(--area-color);
  color: var(--area-color);
  background: #061115;
  font-size: 26px;
  box-shadow: 0 0 24px var(--area-glow);
}

.riftmarch-area-rank > b::first-line {
  transform: rotate(-45deg);
}

.riftmarch-area-rank .riftmarch-meter {
  height: 30px;
}

.riftmarch-area-dossier blockquote {
  margin: 24px 4px;
  color: var(--area-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  text-align: center;
}

.riftmarch-next-rewards {
  padding-top: 12px;
  border-top: 1px solid rgba(181, 219, 209, .16);
}

.riftmarch-next-rewards > span {
  color: #829691;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.riftmarch-next-rewards > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.riftmarch-next-rewards > div > span {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 53px;
  border: 1px solid rgba(201, 183, 114, .32);
  background: rgba(6, 15, 17, .94);
}

.riftmarch-next-rewards i {
  color: #8da19c;
  font-style: normal;
  font-size: 8px;
}

.riftmarch-next-rewards b {
  color: var(--area-color);
  font-size: 15px;
}

.riftmarch-killboard {
  min-width: 0;
  overflow: hidden;
}

.riftmarch-killboard header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rm-line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--area-color) 10%, transparent), transparent 60%);
}

.riftmarch-killboard header span {
  color: var(--area-color);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.riftmarch-killboard header h3 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.riftmarch-killboard__next {
  display: grid;
  justify-items: end;
}

.riftmarch-killboard__next strong {
  font-size: 13px;
}

.riftmarch-killboard__next small {
  color: #91a6a0;
  font-size: 9px;
}

.riftmarch-killboard__head,
.riftmarch-killboard__rows > div {
  display: grid;
  grid-template-columns: 1fr 70px 80px;
  gap: 8px;
  align-items: center;
}

.riftmarch-killboard__head {
  min-height: 34px;
  padding: 0 14px;
  color: #728984;
  background: rgba(0, 5, 7, .85);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .07em;
}

.riftmarch-killboard__head span:nth-child(n+2),
.riftmarch-killboard__rows > div > strong {
  text-align: right;
}

.riftmarch-killboard__rows > div {
  min-height: 42px;
  padding: 5px 14px;
  border-bottom: 1px solid rgba(133, 193, 183, .08);
  color: #cbd8d4;
  background: linear-gradient(90deg, rgba(90, 198, 165, .025), transparent);
}

.riftmarch-killboard__rows > div:hover {
  background: color-mix(in srgb, var(--area-color) 8%, rgba(5, 16, 19, .9));
}

.riftmarch-killboard__rows > div.is-locked {
  opacity: .34;
  filter: grayscale(1);
}

.riftmarch-killboard__rows span b,
.riftmarch-killboard__rows span small {
  display: block;
}

.riftmarch-killboard__rows span b {
  color: var(--area-color);
  font-size: 10px;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.riftmarch-killboard__rows span small {
  margin-top: 1px;
  color: #8fa39e;
  font-size: 9px;
}

.riftmarch-killboard__rows > div > strong {
  font-size: 10px;
}

.riftmarch-apex,
.riftmarch-exchange {
  margin-top: 12px;
}

.riftmarch-apex > header,
.riftmarch-exchange > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 100px;
  padding: 18px 22px;
  border: 1px solid var(--rm-line);
  background: var(--rm-panel);
}

.riftmarch-apex > header h2,
.riftmarch-exchange > header h2,
.riftmarch-warpath > header h2,
.riftmarch-elder-bonds > header h2 {
  margin: 2px 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.riftmarch-apex > header p,
.riftmarch-exchange > header p,
.riftmarch-warpath > header p,
.riftmarch-elder-bonds > header p {
  margin: 0;
  color: var(--rm-muted);
  font-size: 11px;
}

.riftmarch-power {
  min-width: 190px;
  padding: 11px 14px;
  border: 1px solid rgba(104, 224, 180, .35);
  text-align: right;
  background: rgba(5, 24, 23, .7);
}

.riftmarch-power span,
.riftmarch-power strong {
  display: block;
}

.riftmarch-power strong {
  color: var(--rm-green);
  font-size: 25px;
}

.riftmarch-apex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.riftmarch-apex-card {
  position: relative;
  display: grid;
  grid-template-rows: 310px auto auto auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--boss-color) 48%, rgba(169, 211, 202, .25));
  background: #040b0e;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .3);
}

.riftmarch-apex-card.is-sovereign {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--boss-color) 55%, transparent),
    0 16px 45px color-mix(in srgb, var(--boss-color) 14%, rgba(0, 0, 0, .55));
}

.riftmarch-apex-card__art {
  background:
    linear-gradient(to top, #040b0e, transparent 43%),
    var(--boss-image) center top / cover;
}

.riftmarch-apex-card__copy {
  position: relative;
  min-height: 115px;
  margin-top: -66px;
  padding: 18px 20px 12px;
  text-align: center;
  text-shadow: 0 2px 8px #000;
}

.riftmarch-apex-card__copy > span {
  color: var(--boss-color);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.riftmarch-apex-card__copy h3 {
  margin: 4px 0 0;
  color: #f5fbf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 500;
}

.riftmarch-apex-card__copy p {
  margin: 2px 0 10px;
  color: #b8c6c2;
  font-size: 10px;
  font-style: italic;
}

.riftmarch-apex-card__tier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(209, 231, 224, .22);
}

.riftmarch-apex-card__tier strong {
  color: var(--boss-color);
  font-size: 12px;
}

.riftmarch-apex-card__tier small {
  color: #81948f;
  font-size: 8px;
}

.riftmarch-apex-card__loot {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-block: 1px solid rgba(147, 199, 188, .12);
  background: rgba(7, 19, 22, .9);
}

.riftmarch-apex-card__loot .riftmarch-currency {
  min-width: 0;
}

.riftmarch-sigil-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(176, 204, 197, .2);
}

.riftmarch-sigil-reward img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.riftmarch-apex-card > footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 12px;
}

.riftmarch-auto-hunt {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(138, 190, 180, .2);
  color: #7f938e;
  background: rgba(4, 13, 16, .8);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.riftmarch-auto-hunt.is-on {
  border-color: rgba(94, 226, 171, .55);
  color: var(--rm-green);
  background: rgba(11, 45, 38, .65);
}

.riftmarch-auto-hunt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.riftmarch-warpath {
  position: relative;
  min-height: 610px;
  margin-top: 12px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--area-color) 48%, transparent);
  background: #031014;
}

.riftmarch-warpath__backdrop {
  position: absolute;
  inset: 0;
  opacity: .65;
  background:
    linear-gradient(90deg, rgba(2, 10, 13, .98) 0%, rgba(2, 10, 13, .58) 45%, rgba(2, 10, 13, .86)),
    linear-gradient(to top, #020b0e, transparent 42%),
    var(--area-image) center / cover;
  filter: saturate(.82);
}

.riftmarch-warpath > header,
.riftmarch-warpath__encounter,
.riftmarch-warpath > footer {
  position: relative;
  z-index: 1;
}

.riftmarch-warpath > header {
  max-width: 720px;
  padding-left: 17px;
  border-left: 2px solid var(--area-color);
}

.riftmarch-warpath__encounter {
  display: grid;
  grid-template-columns: 150px minmax(300px, 1fr) minmax(180px, .5fr);
  gap: 20px;
  align-items: center;
  max-width: 1000px;
  min-height: 260px;
  margin: 70px auto 40px;
  padding: 28px;
  border: 1px solid rgba(191, 224, 215, .22);
  background: rgba(2, 10, 13, .86);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .55);
  backdrop-filter: blur(5px);
}

.riftmarch-warpath__crest {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.riftmarch-warpath__crest i {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  transform: rotate(45deg);
  border: 2px solid var(--area-color);
  color: var(--area-color);
  background: radial-gradient(circle, color-mix(in srgb, var(--area-color) 24%, #031014), #031014);
  font-style: normal;
  font-size: 32px;
  box-shadow: 0 0 35px color-mix(in srgb, var(--area-color) 32%, transparent);
}

.riftmarch-warpath__crest span {
  color: var(--area-color);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

.riftmarch-warpath__enemy > span {
  color: var(--area-color);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.riftmarch-warpath__enemy h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 33px;
}

.riftmarch-warpath__enemy p {
  margin: 2px 0 14px;
  color: var(--rm-muted);
  font-size: 10px;
}

.riftmarch-warpath__stats {
  display: grid;
  gap: 7px;
}

.riftmarch-warpath__stats > span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 10px;
  border: 1px solid rgba(156, 207, 196, .16);
  background: rgba(5, 18, 20, .82);
}

.riftmarch-warpath__stats small {
  color: #778c87;
  font-size: 8px;
  font-weight: 900;
}

.riftmarch-warpath__stats strong {
  color: var(--area-color);
  font-size: 12px;
}

.riftmarch-warpath > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-top: 18px;
  border-top: 1px solid rgba(180, 217, 208, .18);
}

.riftmarch-warpath > footer p {
  max-width: 780px;
  margin: 0;
  color: #a9b9b4;
  font-size: 11px;
}

.riftmarch-warpath > footer .riftmarch-button {
  min-width: 220px;
}

.riftmarch-quantity {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--rm-line);
  background: rgba(1, 8, 10, .9);
}

.riftmarch-quantity > span {
  margin: 0 8px;
  color: #889c97 !important;
  font-size: 8px !important;
}

.riftmarch-quantity button,
.riftmarch-packs button,
.riftmarch-sort button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid transparent;
  color: #95a7a2;
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.riftmarch-quantity button:hover,
.riftmarch-quantity button.is-selected,
.riftmarch-packs button:hover,
.riftmarch-packs button.is-selected,
.riftmarch-sort button:hover,
.riftmarch-sort button.is-selected {
  border-color: rgba(104, 226, 180, .43);
  color: var(--rm-green);
  background: rgba(62, 177, 139, .11);
}

.riftmarch-exchange-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.riftmarch-exchange-grid article {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(145, 197, 186, .19);
  border-left: 2px solid var(--area-color);
  background: linear-gradient(90deg, color-mix(in srgb, var(--area-color) 7%, #061215), #061215 40%);
}

.riftmarch-exchange-grid article > img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--area-color) 55%, transparent);
  background: #02090b;
}

.riftmarch-exchange-grid article > div {
  min-width: 0;
}

.riftmarch-exchange-grid article span {
  color: var(--area-color);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}

.riftmarch-exchange-grid article h3 {
  overflow: hidden;
  margin: 2px 0;
  color: #e7f1ee;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.riftmarch-exchange-grid article p {
  margin: 0;
  color: #839792;
  font-size: 8px;
}

.riftmarch-exchange-grid .riftmarch-button {
  padding: 4px;
}

.riftmarch-exchange > .riftmarch-wallet {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--rm-line);
  background: rgba(2, 10, 13, .96);
  backdrop-filter: blur(7px);
}

.riftmarch-beasts-page {
  padding-bottom: 28px;
}

.riftmarch-beasts-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--rm-line);
  background:
    linear-gradient(90deg, rgba(3, 12, 15, .99), rgba(11, 30, 33, .88), rgba(3, 12, 15, .99)),
    url("/assets/riftmarch/areas/ebonwake-choir.webp") center / cover;
}

.riftmarch-beasts-hero h1 {
  font-size: clamp(34px, 3.7vw, 56px);
}

.riftmarch-beasts-hero .riftmarch-wallet,
.riftmarch-wallet {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.riftmarch-beast-tabs {
  display: flex;
  padding-left: max(18px, calc((100% - 1550px) / 2));
  border-bottom: 1px solid var(--rm-line);
  background: #061116;
}

.riftmarch-beasts-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  width: min(1600px, calc(100% - 32px));
  margin: 16px auto 0;
}

.riftmarch-stat-ledger {
  align-self: start;
  border: 1px solid var(--rm-line);
  background: var(--rm-panel);
}

.riftmarch-stat-ledger header {
  padding: 16px;
  border-bottom: 1px solid var(--rm-line);
  background: linear-gradient(135deg, rgba(75, 175, 144, .11), transparent);
}

.riftmarch-stat-ledger header span {
  color: var(--rm-green);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.riftmarch-stat-ledger h3 {
  margin: 3px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.riftmarch-stat-ledger p {
  margin: 0;
  color: var(--rm-muted);
  font-size: 9px;
  line-height: 1.45;
}

.riftmarch-stat-ledger__group {
  padding: 8px 0;
}

.riftmarch-stat-ledger__group > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(155, 202, 192, .07);
}

.riftmarch-stat-ledger__group span {
  color: #a8bab5;
  font-size: 10px;
}

.riftmarch-stat-ledger__group strong {
  color: var(--rm-green);
  font-size: 10px;
}

.riftmarch-stat-ledger footer {
  display: flex;
  justify-content: space-between;
  padding: 13px 14px;
  border-top: 1px solid var(--rm-line);
  color: #d9e6e2;
  background: rgba(17, 45, 41, .55);
  font-size: 9px;
}

.riftmarch-beasts-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 53px;
  padding: 8px 10px;
  border: 1px solid var(--rm-line);
  background: var(--rm-panel);
}

.riftmarch-packs,
.riftmarch-sort {
  display: flex;
  align-items: center;
  gap: 3px;
}

.riftmarch-packs > span,
.riftmarch-sort > span {
  margin: 0 6px;
  color: #849993;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
}

.riftmarch-sort {
  margin-left: auto;
}

.riftmarch-active-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 15px 0 11px;
}

.riftmarch-active-heading span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(171, 216, 206, .32));
}

.riftmarch-active-heading span:last-child {
  background: linear-gradient(90deg, rgba(171, 216, 206, .32), transparent);
}

.riftmarch-active-heading strong {
  color: #dce8e4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.riftmarch-beast-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 9px;
}

.riftmarch-beast-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--area-color) 34%, rgba(157, 202, 192, .2));
  background: #050e12;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.riftmarch-beast-card.is-active {
  border-color: var(--area-color);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--area-color) 52%, transparent),
    0 8px 30px var(--area-glow);
}

.riftmarch-beast-card.is-veil-touched {
  border-color: #cc70dc;
  box-shadow: 0 0 25px rgba(199, 67, 213, .18);
}

.riftmarch-beast-card > header {
  position: absolute;
  z-index: 2;
  inset: 6px 6px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.riftmarch-beast-card > header strong {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  transform: rotate(45deg);
  border: 1px solid var(--area-color);
  color: #f2f8f6;
  background: rgba(2, 9, 11, .92);
  font-size: 9px;
}

.riftmarch-beast-card > header span {
  padding: 3px 6px;
  color: var(--area-color);
  background: rgba(2, 9, 11, .84);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .06em;
}

.riftmarch-beast-card.is-veil-touched > header span {
  color: #f19cff;
}

.riftmarch-beast-card__portrait {
  position: relative;
  height: 190px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--area-color) 22%, #061116), #03090c 70%);
}

.riftmarch-beast-card__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  background: repeating-conic-gradient(from 0deg at 50% 65%, rgba(255, 255, 255, .18) 0 4deg, transparent 4deg 14deg);
}

.riftmarch-beast-card__portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .7));
  transition: transform .25s ease;
}

.riftmarch-beast-card:hover .riftmarch-beast-card__portrait img {
  transform: scale(1.035);
}

.riftmarch-beast-card__identity {
  min-height: 76px;
  padding: 10px 11px 7px;
  text-align: center;
}

.riftmarch-beast-card__identity h3 {
  margin: 0;
  color: #edf6f3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
}

.riftmarch-beast-card__identity p {
  margin: 4px 0 0;
  color: #7f928d;
  font-size: 8px;
  font-style: italic;
  line-height: 1.35;
}

.riftmarch-beast-card__bonus {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 8px 7px;
  padding: 7px 8px;
  border: 1px solid rgba(147, 194, 184, .13);
  background: rgba(6, 20, 23, .85);
}

.riftmarch-beast-card__bonus span {
  color: #93a7a1;
  font-size: 8px;
}

.riftmarch-beast-card__bonus strong {
  color: var(--area-color);
  font-size: 9px;
}

.riftmarch-beast-card > .riftmarch-meter {
  height: 22px;
  margin: auto 8px 7px;
}

.riftmarch-beast-card > footer {
  padding: 0 8px 8px;
}

.riftmarch-beast-card > footer .riftmarch-button {
  width: 100%;
  min-height: 34px;
  font-size: 8px;
}

.riftmarch-elder-bonds {
  width: min(1400px, calc(100% - 36px));
  margin: 18px auto 0;
}

.riftmarch-elder-bonds > header {
  margin-bottom: 12px;
  padding: 18px 22px;
  border: 1px solid var(--rm-line);
  background: var(--rm-panel);
}

.riftmarch-elder-bonds > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.riftmarch-elder-bonds article {
  position: relative;
  min-height: 250px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--area-color) 42%, transparent);
  background:
    linear-gradient(90deg, rgba(2, 10, 13, .96), rgba(2, 10, 13, .58)),
    var(--area-image) center / cover;
}

.riftmarch-elder-bonds article.is-claimed {
  box-shadow: inset 0 0 55px color-mix(in srgb, var(--area-color) 12%, transparent);
}

.riftmarch-elder-bonds article > div {
  max-width: 64%;
}

.riftmarch-elder-bonds article span {
  color: var(--area-color);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
}

.riftmarch-elder-bonds article h3 {
  margin: 4px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.riftmarch-elder-bonds article p {
  margin: 0;
  color: #a9b9b4;
  font-size: 10px;
}

.riftmarch-elder-bonds ul {
  display: flex;
  gap: 6px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.riftmarch-elder-bonds li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border: 1px solid rgba(156, 198, 189, .18);
  opacity: .42;
  background: rgba(2, 9, 11, .85);
}

.riftmarch-elder-bonds li.is-ready {
  opacity: 1;
  border-color: var(--area-color);
}

.riftmarch-elder-bonds li img {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.riftmarch-elder-bonds li span {
  color: #d7e3df;
  font-size: 8px;
  letter-spacing: 0;
}

.riftmarch-notice {
  position: fixed;
  z-index: 1000002;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  width: min(540px, calc(100vw - 28px));
  padding: 12px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(112, 229, 183, .65);
  color: #e9fff6;
  background: rgba(7, 37, 31, .97);
  box-shadow: 0 12px 45px rgba(0, 0, 0, .55);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.riftmarch-notice.is-danger {
  border-color: rgba(242, 102, 118, .7);
  color: #ffe9ec;
  background: rgba(64, 13, 24, .97);
}

.riftmarch-disabled {
  display: grid;
  place-content: center;
  min-height: 500px;
  padding: 40px;
  text-align: center;
}

.riftmarch-disabled h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
}

.riftmarch-disabled p {
  color: var(--rm-muted);
}

@media (max-width: 1450px) {
  .riftmarch-header {
    grid-template-columns: minmax(300px, 1fr) minmax(250px, .75fr) auto;
  }

  .riftmarch-summary {
    grid-template-columns: 225px minmax(330px, 1fr) minmax(235px, .72fr);
  }

  .riftmarch-exchange-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .riftmarch-beast-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }
}

@media (max-width: 1160px) {
  .riftmarch-header {
    grid-template-columns: 1fr auto;
  }

  .riftmarch-week-card {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .riftmarch-summary {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .riftmarch-tier-banner {
    grid-row: 1 / 4;
  }

  .riftmarch-summary-areas {
    grid-column: 2;
  }

  .riftmarch-tier-requirements,
  .riftmarch-tier-reward {
    grid-column: 1 / -1;
  }

  .riftmarch-tier-requirements {
    margin-top: 0;
  }

  .riftmarch-rank-view {
    grid-template-columns: 1fr;
  }

  .riftmarch-area-dossier {
    min-height: 560px;
  }

  .riftmarch-apex-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .riftmarch-beasts-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .riftmarch-beast-grid {
    grid-template-columns: repeat(3, minmax(155px, 1fr));
  }
}

@media (max-width: 860px) {
  .riftmarch-page,
  .riftmarch-beasts-page {
    overflow: visible;
  }

  .riftmarch-header {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .riftmarch-week-card,
  .riftmarch-header-actions {
    grid-column: 1;
  }

  .riftmarch-area-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .riftmarch-area-tabs button:first-child {
    grid-column: 1 / -1;
  }

  .riftmarch-summary {
    display: flex;
    flex-direction: column;
  }

  .riftmarch-tier-banner {
    min-height: 460px;
  }

  .riftmarch-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .riftmarch-mode-tabs button {
    border-bottom: 1px solid rgba(144, 204, 192, .12);
  }

  .riftmarch-area-dossier__art {
    height: 260px;
  }

  .riftmarch-killboard header,
  .riftmarch-apex > header,
  .riftmarch-exchange > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .riftmarch-killboard__next {
    justify-items: start;
  }

  .riftmarch-apex-grid,
  .riftmarch-exchange-grid,
  .riftmarch-elder-bonds > div {
    grid-template-columns: 1fr;
  }

  .riftmarch-warpath {
    padding: 20px;
  }

  .riftmarch-warpath__encounter {
    grid-template-columns: 1fr;
    margin-top: 35px;
    text-align: center;
  }

  .riftmarch-warpath > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .riftmarch-beasts-hero {
    grid-template-columns: 1fr;
  }

  .riftmarch-beasts-hero > .riftmarch-button {
    justify-self: start;
  }

  .riftmarch-beasts-hero .riftmarch-wallet {
    justify-content: flex-start;
  }

  .riftmarch-beast-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0;
  }

  .riftmarch-beasts-layout {
    grid-template-columns: 1fr;
  }

  .riftmarch-stat-ledger {
    position: static;
  }

  .riftmarch-beast-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .riftmarch-beasts-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .riftmarch-sort {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .riftmarch-content {
    padding: 10px;
  }

  .riftmarch-header h1 {
    font-size: 42px;
  }

  .riftmarch-area-tabs button {
    min-height: 50px;
    padding: 8px;
  }

  .riftmarch-tier-requirements,
  .riftmarch-tier-reward {
    padding: 12px;
  }

  .riftmarch-requirement {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 7px 0;
  }

  .riftmarch-area-dossier {
    min-height: 520px;
    padding-inline: 12px;
  }

  .riftmarch-area-dossier__art {
    height: 225px;
    margin-inline: -12px;
  }

  .riftmarch-area-dossier__identity {
    left: 12px;
    max-width: 88%;
  }

  .riftmarch-area-rank {
    grid-template-columns: 62px 1fr;
  }

  .riftmarch-area-rank > b {
    width: 56px;
    height: 56px;
    font-size: 19px;
  }

  .riftmarch-killboard__head,
  .riftmarch-killboard__rows > div {
    grid-template-columns: 1fr 48px 58px;
    padding-inline: 8px;
  }

  .riftmarch-apex-card {
    grid-template-rows: 260px auto auto auto;
  }

  .riftmarch-apex-card > footer {
    grid-template-columns: 1fr;
  }

  .riftmarch-auto-hunt {
    grid-column: 1;
  }

  .riftmarch-exchange-grid article {
    grid-template-columns: 58px 1fr;
  }

  .riftmarch-exchange-grid article > img {
    width: 58px;
    height: 58px;
  }

  .riftmarch-exchange-grid article > .riftmarch-button {
    grid-column: 1 / -1;
  }

  .riftmarch-beast-grid {
    grid-template-columns: 1fr;
  }

  .riftmarch-beast-card__portrait {
    height: 260px;
  }

  .riftmarch-packs,
  .riftmarch-sort {
    flex-wrap: wrap;
  }

  .riftmarch-elder-bonds article > div {
    max-width: 100%;
  }

  .riftmarch-elder-bonds ul {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .riftmarch-page *,
  .riftmarch-beasts-page * {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Riftmarch gameplay icon and readability pass */
.riftmarch-page,
.riftmarch-beasts-page,
.riftmarch-disabled {
  font-size: 15px;
}

.riftmarch-button {
  min-height: 44px;
  font-size: 13px;
}

.riftmarch-button > img,
.riftmarch-guide-button > img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid rgba(167, 221, 207, .28);
  object-fit: cover;
}

.riftmarch-guide-button,
.riftmarch-header-actions > .riftmarch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.riftmarch-area-tabs button {
  min-height: 68px;
}

.riftmarch-area-tabs button strong {
  font-size: 13px;
}

.riftmarch-area-tabs button small {
  top: 6px;
  font-size: 10px;
}

.riftmarch-area-tabs__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(166, 222, 208, .28);
  object-fit: cover;
  box-shadow: 0 0 16px rgba(82, 221, 178, .14);
}

.riftmarch-mode-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  font-size: 13px;
}

.riftmarch-mode-tabs button > img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(162, 215, 203, .2);
  object-fit: cover;
  opacity: .72;
  filter: saturate(.8);
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}

.riftmarch-mode-tabs button:hover > img,
.riftmarch-mode-tabs button.is-selected > img {
  opacity: 1;
  filter: saturate(1.15);
  transform: translateY(-1px);
}

.riftmarch-tier-banner__icon {
  position: relative;
  z-index: 1;
  width: 118px;
  height: 118px;
  margin: 2px 0 10px;
  border: 1px solid rgba(144, 226, 205, .35);
  object-fit: cover;
  box-shadow:
    0 0 0 8px rgba(105, 225, 183, .045),
    0 0 34px rgba(77, 223, 168, .2);
}

.riftmarch-tier-banner p {
  font-size: 14px;
  line-height: 1.65;
}

.riftmarch-tier-token img,
.riftmarch-currency img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 0, 0, .5);
}

.riftmarch-tier-token,
.riftmarch-currency {
  min-height: 40px;
  font-size: 13px;
}

.riftmarch-header p,
.riftmarch-beasts-hero p,
.riftmarch-tier-boon p,
.riftmarch-warpath p,
.riftmarch-apex p,
.riftmarch-exchange p,
.riftmarch-elder-bonds p,
.riftmarch-stat-ledger p,
.riftmarch-beast-card p {
  font-size: 14px;
  line-height: 1.6;
}

.riftmarch-header-actions small,
.riftmarch-week-card span,
.riftmarch-next-rewards > span,
.riftmarch-killboard header span,
.riftmarch-apex > header span,
.riftmarch-exchange > header span,
.riftmarch-warpath > header > span,
.riftmarch-elder-bonds > header > span,
.riftmarch-packs > span,
.riftmarch-sort > span,
.riftmarch-stat-ledger header span {
  font-size: 11px;
}

.riftmarch-week-card small,
.riftmarch-summary-areas small,
.riftmarch-requirement > span,
.riftmarch-area-dossier__identity strong,
.riftmarch-meter > span,
.riftmarch-next-rewards i,
.riftmarch-killboard__head,
.riftmarch-killboard__rows,
.riftmarch-apex-card small,
.riftmarch-exchange-grid article span,
.riftmarch-exchange-grid article p,
.riftmarch-stat-ledger__group span,
.riftmarch-stat-ledger__group strong,
.riftmarch-stat-ledger footer,
.riftmarch-elder-bonds li span {
  font-size: 12px;
}

.riftmarch-tier-boon h2,
.riftmarch-apex > header h2,
.riftmarch-exchange > header h2,
.riftmarch-warpath > header h2,
.riftmarch-elder-bonds > header h2 {
  font-size: clamp(26px, 2.4vw, 36px);
}

.riftmarch-tier-requirements h3,
.riftmarch-tier-reward h3,
.riftmarch-exchange-grid article h3,
.riftmarch-beast-card__identity h3 {
  font-size: 14px;
}

.riftmarch-notice {
  font-size: 14px;
}

.riftmarch-killboard__rows > div {
  min-height: 48px;
}

.riftmarch-killboard__rows span b,
.riftmarch-killboard__rows span small,
.riftmarch-killboard__rows > div > strong,
.riftmarch-killboard__next small {
  font-size: 12px;
}

.riftmarch-apex > header p,
.riftmarch-exchange > header p,
.riftmarch-warpath > header p,
.riftmarch-elder-bonds > header p {
  font-size: 15px;
}

.riftmarch-quantity > span {
  font-size: 12px !important;
}

.riftmarch-quantity button,
.riftmarch-packs button,
.riftmarch-sort button {
  min-height: 38px;
  font-size: 12px;
}

.riftmarch-beast-card > header strong {
  font-size: 12px;
}

.riftmarch-beast-card > header span {
  padding: 5px 7px;
  font-size: 10px;
}

.riftmarch-beast-card__identity {
  min-height: 56px;
}

.riftmarch-beast-card__bonus span,
.riftmarch-beast-card__bonus strong {
  font-size: 12px;
}

.riftmarch-beast-card > footer .riftmarch-button {
  min-height: 40px;
  font-size: 12px;
}

/* Comprehensive first-entry and replayable gameplay guide */
.riftmarch-tutorial-backdrop {
  position: fixed;
  z-index: 2147483600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 30px);
  color: #effaf6;
  background:
    radial-gradient(circle at 50% 12%, rgba(36, 129, 112, .22), transparent 42%),
    rgba(0, 5, 8, .9);
  backdrop-filter: blur(8px);
}

.riftmarch-tutorial {
  --guide-line: rgba(151, 218, 203, .23);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1380px, 100%);
  max-height: min(940px, calc(100vh - 30px));
  overflow: hidden;
  border: 1px solid rgba(122, 229, 194, .55);
  background:
    radial-gradient(circle at 82% 0%, rgba(87, 70, 155, .17), transparent 35%),
    linear-gradient(145deg, rgba(5, 20, 24, .995), rgba(2, 10, 14, .995));
  box-shadow:
    0 30px 100px rgba(0, 0, 0, .8),
    inset 0 1px rgba(255, 255, 255, .04);
}

.riftmarch-tutorial > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--guide-line);
  background: linear-gradient(90deg, rgba(21, 66, 58, .38), rgba(4, 16, 20, .4));
}

.riftmarch-tutorial > header > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.riftmarch-tutorial > header img {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(164, 223, 209, .35);
  object-fit: cover;
  box-shadow: 0 0 24px rgba(77, 223, 168, .15);
}

.riftmarch-tutorial > header span,
.riftmarch-tutorial__step-heading span {
  color: #79e3ba;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
}

.riftmarch-tutorial h2 {
  margin: 3px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 500;
}

.riftmarch-tutorial__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(220, 186, 111, .4);
  color: #e9daa9;
  background: rgba(22, 20, 16, .82);
  font: inherit;
  font-size: 26px;
  cursor: pointer;
}

.riftmarch-tutorial__close:hover,
.riftmarch-tutorial__close:focus-visible {
  border-color: #78e2bb;
  color: #fff;
}

.riftmarch-tutorial__facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--guide-line);
  background: rgba(2, 11, 14, .8);
}

.riftmarch-tutorial__facts > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid rgba(151, 218, 203, .12);
}

.riftmarch-tutorial__facts small {
  overflow: hidden;
  color: #8da49e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.riftmarch-tutorial__facts strong {
  overflow: hidden;
  color: #f1e3b0;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.riftmarch-tutorial__layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 0;
}

.riftmarch-tutorial__layout > nav {
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--guide-line);
  background: rgba(2, 10, 13, .72);
  scrollbar-color: rgba(104, 221, 181, .5) transparent;
}

.riftmarch-tutorial__layout > nav button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: 7px 12px;
  border: 0;
  border-bottom: 1px solid rgba(151, 218, 203, .08);
  color: #9eb1ac;
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.riftmarch-tutorial__layout > nav button b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transform: rotate(45deg);
  border: 1px solid rgba(148, 207, 195, .25);
  color: #92aaa4;
  font-size: 11px;
}

.riftmarch-tutorial__layout > nav button b span {
  transform: rotate(-45deg);
  color: inherit;
  font-size: inherit;
  font-weight: 900;
  letter-spacing: 0;
}

.riftmarch-tutorial__layout > nav button.is-selected,
.riftmarch-tutorial__layout > nav button:hover {
  color: #effaf6;
  background: linear-gradient(90deg, rgba(57, 171, 138, .2), transparent);
}

.riftmarch-tutorial__layout > nav button.is-selected b {
  border-color: #72e3b7;
  color: #72e3b7;
  box-shadow: 0 0 13px rgba(75, 224, 169, .18);
}

.riftmarch-tutorial__layout > main {
  min-height: 0;
  padding: clamp(24px, 3.3vw, 52px);
  overflow-y: auto;
  background:
    linear-gradient(120deg, rgba(5, 19, 23, .92), rgba(5, 16, 21, .7)),
    url("/assets/riftmarch/areas/ebonwake-choir.webp") center / cover;
  scrollbar-color: rgba(104, 221, 181, .5) transparent;
}

.riftmarch-tutorial__step-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--guide-line);
}

.riftmarch-tutorial__step-heading img {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border: 1px solid rgba(154, 224, 207, .4);
  object-fit: cover;
  box-shadow: 0 0 28px rgba(61, 210, 167, .15);
}

.riftmarch-tutorial__step-heading h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.08;
}

.riftmarch-tutorial__summary {
  max-width: 1000px;
  margin: 24px 0 20px;
  color: #dfece8;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.65;
}

.riftmarch-tutorial__layout > main ul {
  display: grid;
  gap: 12px;
  max-width: 1040px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.riftmarch-tutorial__layout > main li {
  position: relative;
  padding: 13px 16px 13px 44px;
  border: 1px solid rgba(151, 218, 203, .14);
  color: #b9cbc6;
  background: rgba(3, 13, 16, .78);
  font-size: 15px;
  line-height: 1.55;
}

.riftmarch-tutorial__layout > main li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border: 1px solid #72e3b7;
  background: rgba(75, 224, 169, .16);
}

.riftmarch-tutorial > footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--guide-line);
  background: rgba(2, 9, 12, .98);
}

.riftmarch-tutorial > footer > div:last-child {
  display: flex;
  gap: 8px;
}

.riftmarch-tutorial__progress {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.riftmarch-tutorial__progress button {
  width: 9px;
  height: 9px;
  padding: 0;
  transform: rotate(45deg);
  border: 1px solid rgba(145, 207, 193, .4);
  background: transparent;
  cursor: pointer;
}

.riftmarch-tutorial__progress button.is-selected {
  border-color: #72e3b7;
  background: #72e3b7;
  box-shadow: 0 0 10px rgba(75, 224, 169, .5);
}

@media (max-width: 1050px) {
  .riftmarch-tutorial__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .riftmarch-tutorial__layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .riftmarch-tutorial__layout > nav button {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .riftmarch-tutorial-backdrop {
    padding: 0;
  }

  .riftmarch-tutorial {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border: 0;
  }

  .riftmarch-tutorial > header {
    padding: 12px;
  }

  .riftmarch-tutorial > header img {
    width: 48px;
    height: 48px;
  }

  .riftmarch-tutorial h2 {
    font-size: 28px;
  }

  .riftmarch-tutorial__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .riftmarch-tutorial__facts > span:nth-child(n+5) {
    display: none;
  }

  .riftmarch-tutorial__layout {
    grid-template-columns: 1fr;
  }

  .riftmarch-tutorial__layout > nav {
    display: none;
  }

  .riftmarch-tutorial__layout > main {
    padding: 20px 15px;
  }

  .riftmarch-tutorial__step-heading img {
    width: 62px;
    height: 62px;
  }

  .riftmarch-tutorial__step-heading h3 {
    font-size: 28px;
  }

  .riftmarch-tutorial__summary {
    font-size: 16px;
  }

  .riftmarch-tutorial__layout > main li {
    font-size: 14px;
  }

  .riftmarch-tutorial > footer {
    grid-template-columns: 1fr auto;
  }

  .riftmarch-tutorial > footer > .riftmarch-button:first-child,
  .riftmarch-tutorial__progress {
    display: none;
  }
}

@media (max-width: 520px) {
  .riftmarch-mode-tabs button {
    min-height: 58px;
    padding: 8px 10px;
  }

  .riftmarch-mode-tabs button > img {
    width: 30px;
    height: 30px;
  }

  .riftmarch-header p,
  .riftmarch-beasts-hero p {
    font-size: 13px;
  }

  .riftmarch-tutorial__facts > span {
    padding: 8px 10px;
  }

  .riftmarch-tutorial__facts small {
    font-size: 10px;
  }

  .riftmarch-tutorial__facts strong {
    font-size: 13px;
  }

  .riftmarch-tutorial__step-heading {
    gap: 12px;
  }

  .riftmarch-tutorial__step-heading img {
    width: 54px;
    height: 54px;
  }
}
