:root {
  --community-bg: #050405;
  --community-panel: rgba(15, 12, 12, .9);
  --community-panel-soft: rgba(255, 255, 255, .035);
  --community-line: rgba(203, 43, 43, .26);
  --community-line-soft: rgba(255, 255, 255, .08);
  --community-text: #f3ece4;
  --community-muted: #a99f9a;
  --community-gold: #d8b66f;
  --community-blood: #c7252d;
  --community-red-hot: #ff3a3a;
  --community-blue: #6fa9d8;
  --community-green: #59a871;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

body.community-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(199, 37, 45, .2), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(111, 169, 216, .1), transparent 24rem),
    linear-gradient(180deg, rgba(5, 4, 5, .86), #050405 32rem),
    url('/assets/characters/personajes-hero-dark-lord.webp') center top / cover no-repeat fixed;
  color: var(--community-text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body.community-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px),
    rgba(0, 0, 0, .62);
  background-size: 52px 52px, 52px 52px, auto;
  pointer-events: none;
}

.community-page #particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .62;
}

.community-clouds {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .72;
}

.community-clouds::before,
.community-clouds::after,
.community-clouds span {
  content: "";
  position: absolute;
  width: 92vw;
  height: 42vh;
  min-height: 340px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 28% 48%, rgba(105, 100, 108, .22), transparent 58%),
    radial-gradient(ellipse at 62% 42%, rgba(160, 37, 36, .12), transparent 62%),
    radial-gradient(ellipse at 50% 65%, rgba(255, 255, 255, .08), transparent 60%);
  filter: blur(36px);
  transform: translate3d(0, 0, 0);
  animation: community-cloud-drift 34s linear infinite;
}

.community-clouds::before {
  left: -28vw;
  top: 6vh;
}

.community-clouds::after {
  right: -30vw;
  top: 32vh;
  animation-duration: 46s;
  animation-direction: reverse;
  opacity: .62;
}

.community-clouds span:nth-child(1) {
  left: 10vw;
  top: 58vh;
  width: 72vw;
  animation-duration: 52s;
  opacity: .48;
}

.community-clouds span:nth-child(2) {
  right: -18vw;
  top: 88vh;
  width: 82vw;
  animation-duration: 58s;
  animation-direction: reverse;
  opacity: .42;
}

.community-clouds span:nth-child(3) {
  left: -36vw;
  top: 128vh;
  width: 110vw;
  animation-duration: 64s;
  opacity: .36;
}

@keyframes community-cloud-drift {
  0% { transform: translate3d(-3vw, 0, 0) scale(1); }
  50% { transform: translate3d(8vw, -2vh, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, 0, 0) scale(1); }
}

.member-row {
  color: inherit;
  text-decoration: none;
}

.panel-heading h2,
.hall-card h3,
.thread-title,
.project-card h3,
.sublegion-copy h3 {
  font-family: Cinzel, serif;
  text-transform: uppercase;
}

.locale-link,
.profile-link,
.blood-button,
.quiet-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--community-line);
  border-radius: 6px;
  background: rgba(199, 37, 45, .08);
  color: #ffe0df;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.locale-link:hover,
.locale-link:focus,
.locale-link:visited,
.profile-link:hover,
.profile-link:focus,
.profile-link:visited,
.blood-button:hover,
.blood-button:focus,
.blood-button:visited,
.quiet-button:hover,
.quiet-button:focus,
.quiet-button:visited {
  color: #ffe0df;
  text-decoration: none;
}

main {
  position: relative;
  z-index: 3;
  width: min(1560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 58px;
}

.community-summary {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(560px, .92fr) minmax(700px, 1.08fr);
  grid-template-areas:
    "kicker kicker"
    "score rewards";
  gap: 14px;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.hero-kicker {
  grid-area: kicker;
  width: 100%;
  justify-self: stretch;
}

.section-kicker {
  display: block;
  color: var(--community-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.hero-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-rewards span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(216, 182, 111, .28);
  border-radius: 999px;
  background: rgba(216, 182, 111, .07);
  color: #f4d89b;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.hero-weekly-rewards {
  width: min(760px, 100%);
  margin-top: 26px;
  border: 1px solid rgba(216, 182, 111, .24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(12, 9, 8, .78), rgba(35, 12, 12, .52)),
    radial-gradient(circle at 12% 0, rgba(216, 182, 111, .16), transparent 42%);
  box-shadow: 0 22px 62px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: 16px;
  backdrop-filter: blur(14px);
}

.hero-weekly-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.hero-weekly-head span {
  display: block;
  color: var(--community-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-weekly-head strong {
  display: block;
  margin-top: 5px;
  color: #fff4e6;
  font-size: 13px;
  letter-spacing: .4px;
}

.hero-countdown {
  display: grid;
  grid-template-columns: repeat(4, auto auto);
  align-items: baseline;
  gap: 3px 5px;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 58, 58, .3);
  border-radius: 7px;
  background: rgba(199, 37, 45, .12);
}

.hero-countdown b {
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: 26px;
  line-height: 1;
}

.hero-countdown i {
  color: #f4d89b;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-weekly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.weekly-prize {
  --reward-accent: var(--community-gold);
  position: relative;
  min-height: 126px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 44%, rgba(255, 255, 255, .08));
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 0, color-mix(in srgb, var(--reward-accent) 22%, transparent), transparent 52%),
    rgba(255, 255, 255, .035);
  overflow: hidden;
}

.weekly-prize::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid color-mix(in srgb, var(--reward-accent) 72%, transparent);
  pointer-events: none;
}

.weekly-prize-place {
  display: inline-flex;
  min-width: 34px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 50%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--reward-accent) 14%, rgba(0, 0, 0, .3));
  color: #fff4e6;
  font-size: 12px;
  font-weight: 900;
}

.weekly-prize strong {
  display: block;
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: 15px;
  line-height: 1.05;
  text-transform: uppercase;
}

.weekly-prize p {
  display: grid;
  gap: 4px;
  margin: 9px 0 0;
  color: #cfc3bd;
  font-size: 11px;
  line-height: 1.28;
}

.weekly-prize p span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.hero-weekly-rewards {
  width: 100%;
  position: relative;
  margin-top: 0;
  padding: 16px;
  border-color: rgba(216, 182, 111, .28);
  background:
    linear-gradient(145deg, rgba(9, 6, 6, .88), rgba(31, 11, 12, .66) 58%, rgba(6, 5, 5, .86)),
    radial-gradient(circle at 12% -10%, rgba(245, 211, 109, .14), transparent 34%),
    radial-gradient(circle at 78% 112%, rgba(199, 37, 45, .14), transparent 44%);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, .4),
    0 0 32px rgba(199, 37, 45, .09),
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 0 36px rgba(245, 211, 109, .032);
  overflow: visible;
}

.hero-weekly-rewards::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 24%, rgba(245, 211, 109, .32) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 10%, rgba(255, 72, 72, .34) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 62%, rgba(255, 226, 160, .26) 0 1px, transparent 2px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .055), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .026) 0 1px, transparent 1px 38px);
  background-size: auto, auto, auto, 100% 100%, 100% 100%;
  opacity: .46;
  pointer-events: none;
}

.hero-weekly-rewards::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, .06) 42%, transparent 54%),
    radial-gradient(circle at 50% 0, rgba(245, 211, 109, .16), transparent 28%);
  opacity: .58;
  pointer-events: none;
}

.hero-weekly-rewards > * {
  position: relative;
  z-index: 2;
}

.hero-weekly-head {
  padding: 2px 4px 14px;
}

.hero-weekly-head span {
  color: #f5d36d;
  letter-spacing: 2.7px;
}

.hero-weekly-head strong {
  color: #fff6ea;
  font-size: 14px;
}

.hero-countdown {
  min-width: 232px;
  justify-content: center;
  border-color: rgba(255, 58, 58, .42);
  background:
    linear-gradient(135deg, rgba(103, 19, 22, .58), rgba(31, 8, 9, .72)),
    radial-gradient(circle at 20% 0, rgba(245, 211, 109, .14), transparent 40%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 24px rgba(199, 37, 45, .16);
}

.hero-countdown b {
  font-size: 29px;
  text-shadow: 0 0 18px rgba(255, 244, 230, .2);
}

.hero-weekly-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.weekly-prize {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 10px;
  min-height: 132px;
  padding: 10px;
  border-radius: 8px;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--reward-accent) 18%, rgba(255, 255, 255, .035)), rgba(11, 8, 8, .84) 54%, rgba(5, 4, 4, .92)),
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--reward-accent) 24%, transparent), transparent 42%),
    radial-gradient(circle at 16% 92%, rgba(255, 255, 255, .045), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 0 0 1px color-mix(in srgb, var(--reward-accent) 18%, transparent),
    0 20px 48px rgba(0, 0, 0, .36),
    0 0 34px color-mix(in srgb, var(--reward-accent) 18%, transparent);
  overflow: visible;
}

.weekly-prize-gold {
  grid-column: 1 / -1;
}

.weekly-prize-silver,
.weekly-prize-bronze {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  min-height: 116px;
  padding: 9px;
}

.weekly-prize::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--reward-accent) 58%, transparent) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, .38) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 72%, rgba(255, 75, 75, .34) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 38%);
  opacity: .76;
  pointer-events: none;
}

.weekly-prize::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--reward-accent), #fff6d8, var(--reward-accent), transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--reward-accent) 55%, transparent);
  opacity: .9;
}

.weekly-prize-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 34%, color-mix(in srgb, var(--reward-accent) 80%, transparent) 0 1px, transparent 2px),
    radial-gradient(circle at 43% 18%, rgba(255, 255, 255, .58) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 44%, rgba(255, 77, 61, .5) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 82%, color-mix(in srgb, var(--reward-accent) 66%, transparent) 0 1px, transparent 2px);
  opacity: .78;
  pointer-events: none;
}

.weekly-prize-top {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
}

.weekly-prize-top::before {
  display: none;
}

.weekly-trophy-stage {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.weekly-trophy-stage::before,
.weekly-trophy-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.weekly-trophy-stage::before {
  inset: 5px 7px 8px;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 44%, rgba(255, 255, 255, .14));
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 249, 218, .22), transparent 22%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--reward-accent) 36%, transparent), transparent 62%),
    conic-gradient(from 45deg, transparent, color-mix(in srgb, var(--reward-accent) 28%, transparent), transparent, rgba(255, 255, 255, .08), transparent);
  box-shadow:
    inset 0 0 22px color-mix(in srgb, var(--reward-accent) 10%, transparent),
    0 0 30px color-mix(in srgb, var(--reward-accent) 34%, transparent);
}

.weekly-trophy-stage::after {
  inset: 15px;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 52%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 16px color-mix(in srgb, var(--reward-accent) 24%, transparent);
}

.weekly-trophy-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: var(--reward-accent);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--reward-accent) 42%, transparent));
}

.weekly-trophy-image {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  filter:
    drop-shadow(0 15px 17px rgba(0, 0, 0, .58))
    drop-shadow(0 0 8px rgba(255, 247, 219, .28))
    drop-shadow(0 0 18px color-mix(in srgb, var(--reward-accent) 42%, transparent));
}

.weekly-trophy-image-silver {
  filter:
    drop-shadow(0 18px 22px rgba(0, 0, 0, .5))
    drop-shadow(0 0 22px rgba(218, 226, 238, .24));
}

.weekly-trophy-image-bronze {
  filter:
    drop-shadow(0 18px 22px rgba(0, 0, 0, .5))
    drop-shadow(0 0 22px rgba(230, 122, 54, .25));
}

.weekly-prize-silver .weekly-trophy-stage,
.weekly-prize-bronze .weekly-trophy-stage {
  width: 66px;
  height: 66px;
}

.weekly-prize-silver .weekly-trophy-stage::before,
.weekly-prize-bronze .weekly-trophy-stage::before {
  inset: 4px 5px 6px;
}

.weekly-prize-silver .weekly-trophy-stage::after,
.weekly-prize-bronze .weekly-trophy-stage::after {
  inset: 13px;
}

.weekly-prize-silver .weekly-trophy-image,
.weekly-prize-bronze .weekly-trophy-image {
  width: 45px;
  height: 45px;
}

.weekly-trophy-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trophy-aura {
  fill: color-mix(in srgb, currentColor 16%, transparent);
}

.trophy-wing,
.trophy-cup,
.trophy-stem,
.trophy-base {
  fill: rgba(10, 7, 7, .62);
  stroke: currentColor;
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.trophy-flame {
  fill: color-mix(in srgb, currentColor 72%, #ff3030);
  opacity: .72;
}

.trophy-shine {
  fill: none;
  stroke: #fff4d6;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: .56;
}

.weekly-trophy-icon-silver .trophy-flame {
  fill: #e8edf5;
}

.weekly-trophy-icon-bronze .trophy-flame {
  fill: #ff9b4d;
}

.weekly-prize-place {
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 2px;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  border-color: color-mix(in srgb, var(--reward-accent) 70%, rgba(255, 255, 255, .18));
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, .14), transparent 38%),
    color-mix(in srgb, var(--reward-accent) 18%, rgba(11, 8, 8, .74));
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: 14px;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 22px color-mix(in srgb, var(--reward-accent) 28%, transparent);
}

.weekly-prize-body {
  display: grid;
  align-content: start;
}

.weekly-prize strong {
  min-height: 0;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.05;
  text-align: left;
  letter-spacing: 0;
  text-shadow: 0 10px 24px rgba(0, 0, 0, .58), 0 0 18px color-mix(in srgb, var(--reward-accent) 16%, transparent);
}

.weekly-prize-silver strong,
.weekly-prize-bronze strong {
  margin-bottom: 6px;
  font-size: 14px;
}

.weekly-prize-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  margin: 0;
  gap: 5px;
  padding-top: 0;
  border-top: 1px solid color-mix(in srgb, var(--reward-accent) 34%, rgba(255, 255, 255, .1));
  font-size: 14px;
  line-height: 1.3;
}

.weekly-prize-silver .weekly-prize-rewards,
.weekly-prize-bronze .weekly-prize-rewards {
  grid-template-columns: 1fr;
  gap: 4px;
}

.weekly-prize-rewards > span {
  color: #f0e4da;
}

.weekly-reward-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(0, 0, 0, .18)),
    rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.weekly-prize-silver .weekly-reward-row,
.weekly-prize-bronze .weekly-reward-row {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
  min-height: 29px;
  padding: 4px 6px;
}

.weekly-reward-row-blood {
  border-color: rgba(255, 58, 58, .32);
  background:
    radial-gradient(circle at 10% 35%, rgba(255, 58, 58, .2), transparent 38%),
    linear-gradient(135deg, rgba(132, 20, 22, .38), rgba(10, 6, 6, .38));
}

.weekly-reward-row-value {
  border-color: color-mix(in srgb, var(--reward-accent) 42%, rgba(255, 255, 255, .1));
}

.weekly-reward-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 38%, rgba(255, 255, 255, .14));
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  color: #f5d36d;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 0 16px color-mix(in srgb, var(--reward-accent) 16%, transparent);
}

.weekly-prize-silver .weekly-reward-icon,
.weekly-prize-bronze .weekly-reward-icon {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

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

.weekly-reward-copy small {
  color: #f5d36d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 1;
  text-transform: uppercase;
}

.weekly-prize-silver .weekly-reward-copy small,
.weekly-prize-bronze .weekly-reward-copy small {
  font-size: 8px;
  letter-spacing: 1.2px;
}

.weekly-reward-copy b {
  color: #fff8ed;
  font-family: Cinzel, serif;
  font-size: 16px;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow: 0 0 16px rgba(255, 244, 230, .16);
}

.weekly-prize-silver .weekly-reward-copy b,
.weekly-prize-bronze .weekly-reward-copy b {
  font-size: 14px;
}

.weekly-collectible-gift {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-top: 8px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 48%, rgba(255, 255, 255, .1));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--reward-accent) 14%, rgba(255, 255, 255, .045)), rgba(0, 0, 0, .24)),
    rgba(0, 0, 0, .24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 24px color-mix(in srgb, var(--reward-accent) 14%, transparent);
  cursor: help;
  outline: none;
}

.weekly-collectible-gift:focus-visible {
  border-color: #fff0b8;
  box-shadow: 0 0 0 2px rgba(245, 211, 109, .18), 0 0 30px color-mix(in srgb, var(--reward-accent) 24%, transparent);
}

.weekly-collectible-art {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 38%, transparent);
  border-radius: 7px;
  background: rgba(0, 0, 0, .32);
  box-shadow: 0 0 18px color-mix(in srgb, var(--reward-accent) 18%, transparent);
}

.weekly-collectible-gift span {
  min-width: 0;
}

.weekly-collectible-gift--text {
  grid-template-columns: 1fr;
}

.weekly-collectible-gift small,
.weekly-collectible-gift i {
  display: block;
  color: #f5d36d;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.weekly-collectible-gift > span > b {
  display: block;
  margin-top: 2px;
  color: #fff6ea;
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.weekly-collectible-gift > span > i {
  margin-top: 4px;
  color: #cfc3bd;
}

.weekly-collectible-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.weekly-collectible-values em {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 32%, rgba(255, 255, 255, .1));
  border-radius: 999px;
  background: rgba(0, 0, 0, .26);
  color: #fff3db;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .5px;
}

.weekly-collectible-tooltip {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 52%, rgba(255, 255, 255, .14));
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(17, 12, 12, .98), rgba(34, 10, 12, .96)),
    radial-gradient(circle at 20% 0, color-mix(in srgb, var(--reward-accent) 18%, transparent), transparent 42%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .54), 0 0 28px color-mix(in srgb, var(--reward-accent) 16%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transition: opacity .16s ease, transform .16s ease;
}

.weekly-collectible-gift:hover .weekly-collectible-tooltip,
.weekly-collectible-gift:focus .weekly-collectible-tooltip,
.weekly-collectible-gift:focus-within .weekly-collectible-tooltip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.weekly-collectible-tooltip::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid color-mix(in srgb, var(--reward-accent) 52%, rgba(255, 255, 255, .14));
  border-bottom: 1px solid color-mix(in srgb, var(--reward-accent) 52%, rgba(255, 255, 255, .14));
  background: rgba(20, 10, 11, .98);
  transform: rotate(45deg);
}

.weekly-collectible-tooltip b {
  color: #fff7e8;
  font-family: Cinzel, serif;
  font-size: 16px;
  line-height: 1.05;
}

.weekly-collectible-tooltip > i {
  color: #d8cfc7;
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.weekly-collectible-tooltip > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 7px;
}

.weekly-collectible-tooltip > span small {
  color: #f5d36d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.weekly-collectible-tooltip > span strong {
  margin: 0;
  color: #fff4e6;
  font-family: Inter, sans-serif;
  font-size: 12px;
  text-align: right;
  text-transform: none;
}

.weekly-collectible-tooltip p {
  margin: 0;
  color: #d8cfc7;
  font-size: 11px;
  line-height: 1.35;
}

.weekly-prize-gold {
  transform: none;
}

.hero-weekly-rewards {
  width: 100%;
  height: 100%;
  margin-top: 0;
  padding: 26px 28px 28px;
  position: relative;
  border-color: rgba(216, 182, 111, .18);
  background:
    linear-gradient(145deg, rgba(12, 9, 9, .78), rgba(31, 18, 14, .58) 58%, rgba(7, 6, 6, .84)),
    radial-gradient(circle at 12% 0, rgba(245, 211, 109, .12), transparent 34%);
  box-shadow: 0 22px 68px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: visible;
}

.hero-weekly-rewards::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .045), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 44px);
  opacity: .28;
}

.hero-weekly-rewards::after,
.weekly-prize::before,
.weekly-prize::after,
.weekly-prize-particles {
  display: none;
}

.hero-weekly-head {
  position: relative;
  min-height: 74px;
  margin-top: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 182, 111, .14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .18)),
    rgba(255, 255, 255, .02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
}

.hero-weekly-head::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 211, 109, .28), transparent);
  opacity: .7;
}

.hero-weekly-head > div:first-child {
  min-width: 210px;
  padding: 0;
  display: grid;
  gap: 5px;
}

.hero-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  min-height: 58px;
  padding: 9px 18px;
  border-color: rgba(255, 58, 58, .28);
  background:
    linear-gradient(135deg, rgba(115, 26, 25, .44), rgba(42, 12, 13, .56)),
    radial-gradient(circle at 15% 20%, rgba(245, 211, 109, .12), transparent 36%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 0 28px rgba(199, 37, 45, .12);
  pointer-events: auto;
}

.hero-countdown b,
.hero-countdown i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hero-countdown b {
  padding-bottom: 0;
}

.hero-countdown i {
  padding-top: 0;
}

.weekly-results-link {
  width: fit-content;
  color: #f5d36d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
}

.weekly-results-link:hover,
.weekly-results-link:focus-visible {
  color: #fff4cf;
  text-shadow: 0 0 18px rgba(245, 211, 109, .35);
}

.hero-weekly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  align-content: center;
  gap: 16px 18px;
  min-height: 100%;
  margin-top: 0;
}

.hero-weekly-grid-count-0 {
  align-items: center;
  justify-items: center;
}

.hero-weekly-grid-count-1 .weekly-prize,
.hero-weekly-grid-count-2 .weekly-prize {
  grid-column: 1 / -1;
}

.weekly-prize {
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 30%, rgba(255, 255, 255, .07));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--reward-accent) 10%, rgba(255, 255, 255, .026)), rgba(8, 7, 7, .56)),
    radial-gradient(circle at 20% 18%, color-mix(in srgb, var(--reward-accent) 16%, transparent), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: visible;
}

.weekly-prize-gold {
  grid-column: 1 / -1;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 230px;
  padding: 26px 28px;
}

.weekly-prize-silver,
.weekly-prize-bronze {
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 14px;
  min-height: 282px;
  padding: 20px;
}

.weekly-trophy-stage {
  width: 112px;
  height: 112px;
}

.weekly-trophy-stage::before {
  inset: 10px;
  border-color: color-mix(in srgb, var(--reward-accent) 36%, rgba(255, 255, 255, .12));
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--reward-accent) 28%, transparent), transparent 66%);
  box-shadow: 0 0 34px color-mix(in srgb, var(--reward-accent) 24%, transparent);
}

.weekly-trophy-stage::after {
  display: none;
}

.weekly-trophy-image {
  width: 72px;
  height: 72px;
}

.weekly-prize-gold .weekly-trophy-stage {
  width: 132px;
  height: 132px;
}

.weekly-prize-gold .weekly-trophy-image {
  width: 88px;
  height: 88px;
}

.weekly-prize-silver .weekly-trophy-stage,
.weekly-prize-bronze .weekly-trophy-stage {
  width: 94px;
  height: 94px;
}

.weekly-prize-silver .weekly-trophy-image,
.weekly-prize-bronze .weekly-trophy-image {
  width: 62px;
  height: 62px;
}

.weekly-prize-place {
  display: none;
  top: 16px;
  left: 18px;
  right: auto;
  min-width: 42px;
  min-height: 42px;
  border-color: color-mix(in srgb, var(--reward-accent) 48%, rgba(255, 255, 255, .16));
  background: rgba(0, 0, 0, .32);
  box-shadow: none;
}

.weekly-prize-body {
  align-content: center;
  display: grid;
  min-width: 0;
}

.weekly-prize-silver .weekly-prize-body,
.weekly-prize-bronze .weekly-prize-body {
  align-content: start;
}

.weekly-prize.has-no-weekly-collectible .weekly-prize-top,
.weekly-prize.has-no-weekly-collectible .weekly-prize-body {
  align-self: center;
}

.weekly-prize-silver.has-no-weekly-collectible .weekly-prize-body,
.weekly-prize-bronze.has-no-weekly-collectible .weekly-prize-body {
  align-content: center;
  min-height: 190px;
}

.weekly-prize.has-no-weekly-collectible .weekly-prize-rewards {
  align-content: center;
}

.weekly-prize strong {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.08;
  text-shadow: 0 10px 24px rgba(0, 0, 0, .5);
}

.weekly-prize-silver strong,
.weekly-prize-bronze strong {
  margin-bottom: 10px;
  font-size: 17px;
}

.weekly-prize-rewards,
.weekly-prize-silver .weekly-prize-rewards,
.weekly-prize-bronze .weekly-prize-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
}

.weekly-prize-silver .weekly-prize-rewards,
.weekly-prize-bronze .weekly-prize-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekly-reward-row,
.weekly-prize-silver .weekly-reward-row,
.weekly-prize-bronze .weekly-reward-row,
.weekly-reward-row-blood,
.weekly-reward-row-value {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 22%, rgba(255, 255, 255, .09));
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.weekly-prize-silver .weekly-reward-row,
.weekly-prize-bronze .weekly-reward-row {
  flex: 1 1 118px;
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 44px;
  gap: 8px;
  padding: 7px 8px;
}

.weekly-reward-icon,
.weekly-prize-silver .weekly-reward-icon,
.weekly-prize-bronze .weekly-reward-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-color: color-mix(in srgb, var(--reward-accent) 34%, rgba(255, 255, 255, .12));
  background: rgba(0, 0, 0, .28);
  box-shadow: none;
}

.weekly-reward-copy small {
  font-size: 9px;
  letter-spacing: 1.25px;
  line-height: 1.05;
}

.weekly-reward-copy {
  min-width: 0;
}

.weekly-reward-copy b,
.weekly-prize-silver .weekly-reward-copy b,
.weekly-prize-bronze .weekly-reward-copy b {
  font-size: 18px;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow: none;
}

.weekly-prize-silver .weekly-reward-copy small,
.weekly-prize-bronze .weekly-reward-copy small {
  font-size: 7.4px;
  letter-spacing: .45px;
  line-height: 1.06;
  white-space: nowrap;
}

.weekly-prize-silver .weekly-reward-copy b,
.weekly-prize-bronze .weekly-reward-copy b {
  font-size: 15px;
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.weekly-prize-silver .weekly-reward-icon,
.weekly-prize-bronze .weekly-reward-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  font-size: 10px;
}

.weekly-collectible-gift {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--reward-accent) 30%, rgba(255, 255, 255, .08));
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--reward-accent) 10%, rgba(255, 255, 255, .04)), rgba(0, 0, 0, .18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.weekly-prize-silver .weekly-collectible-gift,
.weekly-prize-bronze .weekly-collectible-gift {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 9px;
  margin-top: 12px;
  padding: 9px;
}

.weekly-collectible-art {
  width: 58px;
  height: 58px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--reward-accent) 16%, transparent);
}

.weekly-prize-silver .weekly-collectible-art,
.weekly-prize-bronze .weekly-collectible-art {
  width: 52px;
  height: 52px;
}

.weekly-prize-silver .weekly-collectible-gift small,
.weekly-prize-silver .weekly-collectible-gift i,
.weekly-prize-bronze .weekly-collectible-gift small,
.weekly-prize-bronze .weekly-collectible-gift i {
  font-size: 7.5px;
  letter-spacing: .85px;
}

.weekly-prize-silver .weekly-collectible-gift > span > b,
.weekly-prize-bronze .weekly-collectible-gift > span > b {
  font-size: 13px;
  line-height: 1.08;
}

.weekly-prize-silver .weekly-collectible-values,
.weekly-prize-bronze .weekly-collectible-values {
  gap: 4px;
  margin-top: 6px;
}

.weekly-collectible-values em {
  min-height: 21px;
  padding: 0 7px;
  background: rgba(0, 0, 0, .18);
}

.weekly-prize-silver .weekly-collectible-values em,
.weekly-prize-bronze .weekly-collectible-values em {
  min-height: 20px;
  padding: 0 6px;
  font-size: 9px;
  letter-spacing: .25px;
}

.hero-community-scoreboard,
.identity-strip,
.side-panel,
.forum-panel,
.project-card,
.sublegion-card {
  border: 1px solid var(--community-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 14, 14, .92), rgba(8, 6, 6, .94));
  box-shadow: 0 18px 62px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.hero-community-scoreboard {
  grid-area: score;
  width: 100%;
  height: 100%;
  align-self: stretch;
  justify-self: center;
  display: grid;
  grid-template-rows: auto minmax(302px, 1fr) auto auto;
  align-content: stretch;
  gap: 14px;
  padding: 18px 20px 20px;
  background:
    linear-gradient(180deg, rgba(10, 7, 7, .56), rgba(5, 4, 5, .88)),
    radial-gradient(circle at 50% 8%, rgba(216, 182, 111, .18), transparent 28rem),
    radial-gradient(circle at 50% 100%, rgba(199, 37, 45, .12), transparent 22rem);
}

.hero-copy {
  grid-area: rewards;
  width: 100%;
  justify-self: stretch;
}

.podium-kicker {
  color: var(--community-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.sublegion-podium {
  min-height: 302px;
  display: grid;
  grid-template-columns: .92fr 1.08fr .92fr;
  gap: 12px;
  align-items: end;
  align-self: center;
  overflow: visible;
}

.podium-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(192px, 1fr) auto;
  align-items: end;
  border: 1px solid color-mix(in srgb, var(--podium-accent) 48%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--podium-accent) 28%, transparent), transparent 54%),
    linear-gradient(180deg, color-mix(in srgb, var(--podium-accent) 20%, rgba(255, 255, 255, .035)), rgba(255, 255, 255, .03)),
    rgba(0, 0, 0, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 52px rgba(0, 0, 0, .42), 0 0 40px color-mix(in srgb, var(--podium-accent) 15%, transparent);
  overflow: visible;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.podium-card-1 {
  min-height: 322px;
  order: 2;
}

.podium-card-2 {
  min-height: 286px;
  order: 1;
}

.podium-card-3 {
  min-height: 276px;
  order: 3;
}

.podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 24%, color-mix(in srgb, var(--podium-accent) 18%, transparent), transparent 58%),
    linear-gradient(180deg, transparent 36%, color-mix(in srgb, var(--podium-accent) 18%, transparent) 100%);
  pointer-events: none;
}

.podium-card:hover,
.podium-card:focus-visible,
.podium-card:focus-within {
  z-index: 20;
}

.podium-card:focus-visible,
.rank-row:focus-visible,
.sublegion-banner-link:focus-visible,
.identity-sublegion-standard:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--community-gold) 72%, transparent);
  outline-offset: 4px;
}

.podium-place {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 182, 111, .38);
  border-radius: 50%;
  background: rgba(0, 0, 0, .54);
  color: var(--community-gold);
  font-family: Cinzel, serif;
  font-size: 18px;
  font-weight: 900;
}

.podium-card img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 184px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .72));
  transform: translateY(8px);
}

.podium-card-1 img {
  height: 218px;
}

.weekly-prize-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  width: min(100%, 720px);
  min-height: 260px;
  align-content: center;
  justify-items: center;
  border: 1px dashed rgba(216, 182, 111, .28);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
  padding: 26px;
  text-align: center;
}

.weekly-prize-empty strong {
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: 22px;
}

.weekly-prize-empty span {
  max-width: 520px;
  color: var(--community-muted);
  font-size: 13px;
  line-height: 1.55;
}

.podium-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .54));
  text-align: center;
}

.podium-copy strong {
  overflow: hidden;
  color: #fff;
  font-family: 'Cinzel Decorative', Cinzel, serif;
  font-size: 18px;
  letter-spacing: .35px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 8px 18px rgba(0, 0, 0, .52), 0 0 18px color-mix(in srgb, var(--podium-accent) 22%, transparent);
}

.podium-copy span,
.hero-mini-stats span,
.identity-stat > span,
.identity-rank > span:not(.imm-rank-badge),
.project-stats span,
.sublegion-stats span,
.thread-meta span {
  color: var(--community-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.podium-copy span {
  display: inline-flex;
  min-width: 0;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.podium-copy small {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
  color: var(--community-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .7px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.podium-copy b,
.hero-mini-stats b,
.identity-stat strong,
.identity-profile strong {
  margin-top: 7px;
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 30px;
}

.blood-drop-icon {
  width: 13px;
  height: 16px;
  display: inline-block;
  flex: 0 0 13px;
  background: url('/assets/community/blood-drop.png') center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(255, 42, 42, .52));
  transform: translateY(-1px);
}

.weekly-reward-icon.blood-drop-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  flex: 0 0 28px;
  border: 1px solid rgba(255, 58, 58, .38);
  border-radius: 999px;
  background:
    url('/assets/community/blood-drop.png') center / 13px 18px no-repeat,
    radial-gradient(circle at 50% 42%, rgba(255, 58, 58, .2), rgba(0, 0, 0, .3));
  filter: drop-shadow(0 0 12px rgba(255, 42, 42, .42));
  transform: none;
}

.podium-copy b {
  margin: 0;
  color: var(--community-gold);
  font-size: 16px;
}

[data-sublegion-viewer-contributed] {
  color: #fff4e6;
}

.podium-copy [data-metric-tooltip],
.sublegion-stats [data-metric-tooltip],
.identity-stat [data-metric-tooltip] {
  position: relative;
  z-index: 40;
}

.identity-stat:has([data-metric-tooltip]:hover),
.identity-stat:has([data-metric-tooltip]:focus-within),
.identity-rank:has(.imm-rank-badge:hover),
.identity-rank:has(.imm-rank-badge:focus-visible) {
  z-index: 80;
}

.podium-copy [data-metric-tooltip]::after,
.sublegion-stats [data-metric-tooltip]::after,
.identity-stat [data-metric-tooltip]::after {
  content: attr(data-metric-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 90;
  width: min(240px, 78vw);
  padding: 8px 10px;
  border: 1px solid rgba(245, 230, 163, .24);
  border-radius: 6px;
  background: rgba(10, 7, 8, .96);
  color: #f3ece4;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .3px;
  text-align: left;
  text-transform: none;
  transform: translate(-50%, 6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  white-space: normal;
}

.podium-copy [data-metric-tooltip]:hover::after,
.podium-copy [data-metric-tooltip]:focus-within::after,
.podium-copy [data-metric-tooltip]:focus-visible::after,
.sublegion-stats [data-metric-tooltip]:hover::after,
.sublegion-stats [data-metric-tooltip]:focus-within::after,
.sublegion-stats [data-metric-tooltip]:focus-visible::after,
.identity-stat [data-metric-tooltip]:hover::after,
.identity-stat [data-metric-tooltip]:focus-within::after,
.identity-stat [data-metric-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.weekly-results-main {
  width: min(1560px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(96px, 8vw, 132px) 0 80px;
}

.weekly-results-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.weekly-results-hero h1 {
  margin: 10px 0 8px;
  color: #f4efe7;
  font-family: "Cinzel Decorative", Cinzel, serif;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1;
}

.weekly-results-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(244, 239, 231, .74);
  font-size: 17px;
  line-height: 1.7;
}

.weekly-results-back {
  flex: 0 0 auto;
}

.weekly-results-timeline {
  display: grid;
  gap: 22px;
}

.weekly-results-week {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 182, 111, .18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(216, 182, 111, .1), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)),
    rgba(10, 8, 9, .72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.weekly-results-week::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .035), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 48px);
  opacity: .28;
  pointer-events: none;
}

.weekly-results-week-head,
.weekly-results-grid {
  position: relative;
  z-index: 1;
}

.weekly-results-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(216, 182, 111, .14);
}

.weekly-results-week-head span,
.weekly-result-copy span,
.weekly-result-rewards small {
  color: #f5d36d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.weekly-results-week-head h2 {
  margin: 6px 0 0;
  color: #f4efe7;
  font-family: Cinzel, serif;
  font-size: 24px;
  line-height: 1.1;
}

.weekly-results-week-head strong {
  color: rgba(244, 239, 231, .72);
  font-size: 13px;
  letter-spacing: .4px;
}

.weekly-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}

.weekly-result-card {
  position: relative;
  min-height: 370px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--result-accent) 44%, rgba(255, 255, 255, .08));
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 14%, color-mix(in srgb, var(--result-accent) 22%, transparent), transparent 48%),
    linear-gradient(180deg, color-mix(in srgb, var(--result-accent) 14%, rgba(255, 255, 255, .03)), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 48px rgba(0, 0, 0, .28);
}

.weekly-result-card-1 {
  min-height: 370px;
}

.weekly-result-rank {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 211, 109, .34);
  border-radius: 50%;
  color: #f9da78;
  background: rgba(17, 13, 13, .82);
  font-family: Cinzel, serif;
  font-size: 20px;
  font-weight: 900;
}

.weekly-result-banner {
  position: relative;
  min-height: 188px;
  display: grid;
  place-items: center;
}

.weekly-result-card-1 .weekly-result-banner {
  min-height: 188px;
}

.weekly-result-trophy {
  position: absolute;
  top: 2px;
  right: 10px;
  z-index: 2;
  width: 68px;
  max-width: 26%;
  pointer-events: none;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .44));
}

.weekly-result-standard-link {
  width: 100%;
  min-height: 188px;
  display: grid;
  place-items: center;
  text-decoration: none;
  border-radius: 8px;
  transition: transform .18s ease, filter .18s ease;
}

.weekly-result-standard-link:hover,
.weekly-result-standard-link:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.weekly-result-standard {
  width: min(270px, 76%);
  max-height: 230px;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 28px 44px rgba(0, 0, 0, .68))
    drop-shadow(0 0 28px color-mix(in srgb, var(--result-accent) 38%, transparent));
}

.weekly-result-card-1 .weekly-result-standard {
  width: min(270px, 76%);
  max-height: 230px;
}

.weekly-result-copy {
  text-align: center;
}

.weekly-result-copy h3 {
  margin: 6px 0 8px;
  color: #f4efe7;
  font-family: Cinzel, serif;
  font-size: clamp(24px, 2.1vw, 36px);
  line-height: 1.05;
}

.weekly-result-copy p {
  margin: 0;
  color: rgba(244, 239, 231, .74);
  font-weight: 800;
}

.weekly-result-copy p b {
  color: #f5d36d;
  font-family: Cinzel, serif;
  font-size: 24px;
}

.weekly-result-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.weekly-result-rewards > span,
.weekly-result-reward-button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(216, 182, 111, .18);
  border-radius: 7px;
  background: rgba(255, 255, 255, .045);
}

.weekly-result-reward-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.weekly-result-reward-button:hover,
.weekly-result-reward-button:focus-visible {
  border-color: rgba(245, 211, 109, .42);
  background: rgba(245, 211, 109, .08);
  transform: translateY(-1px);
}

.weekly-result-collectible-button {
  grid-column: 1 / -1;
}

.weekly-result-collectible-button,
.weekly-result-achievement-card {
  position: relative;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 92px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-color: rgba(245, 211, 109, .3);
  background:
    radial-gradient(circle at 16% 50%, rgba(245, 211, 109, .2), transparent 42%),
    linear-gradient(135deg, rgba(62, 45, 23, .58), rgba(255, 255, 255, .045) 48%, rgba(99, 20, 23, .24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .075), 0 18px 40px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.weekly-result-collectible-button::before,
.weekly-result-achievement-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 211, 109, .13), transparent 38%, rgba(255, 42, 42, .08)),
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, .08), transparent 30%);
  opacity: .72;
  pointer-events: none;
}

.weekly-result-achievement-card {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--result-accent) 48%, rgba(245, 211, 109, .2));
  background:
    radial-gradient(circle at 17% 50%, color-mix(in srgb, var(--result-accent) 28%, transparent), transparent 44%),
    linear-gradient(135deg, rgba(14, 12, 16, .72), color-mix(in srgb, var(--result-accent) 16%, rgba(255, 255, 255, .045)) 54%, rgba(5, 5, 8, .48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 42px rgba(0, 0, 0, .22),
    0 0 24px color-mix(in srgb, var(--result-accent) 14%, transparent);
}

.weekly-result-reward-media {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(245, 230, 163, .24);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 35%, rgba(245, 211, 109, .12), transparent 58%),
    rgba(5, 5, 8, .62);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .36), 0 0 22px rgba(245, 211, 109, .12);
}

.weekly-result-reward-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.08) contrast(1.06);
}

.weekly-result-achievement-media {
  width: 90px;
  height: 68px;
  border-radius: 8px;
  border-color: color-mix(in srgb, var(--result-accent) 46%, rgba(245, 230, 163, .24));
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--result-accent) 25%, rgba(245, 211, 109, .1)), transparent 58%),
    rgba(5, 5, 8, .7);
}

.weekly-result-achievement-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--result-accent) 45%, rgba(245, 230, 163, .25));
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 62%, rgba(5, 5, 8, .26));
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .24), 0 0 18px color-mix(in srgb, var(--result-accent) 24%, transparent);
  pointer-events: none;
}

.weekly-result-achievement-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.16) contrast(1.1);
}

.weekly-result-reward-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  justify-items: start;
}

.weekly-result-reward-copy small {
  line-height: 1;
  text-shadow: 0 0 16px rgba(245, 211, 109, .18);
}

.weekly-result-reward-copy b {
  display: block;
  overflow-wrap: anywhere;
  text-wrap: balance;
  font-size: clamp(18px, 1.35vw, 23px);
}

.weekly-result-rewards i {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(245, 211, 109, .34);
  border-radius: 50%;
  color: #f5d36d;
  font-style: normal;
  font-weight: 900;
}

.weekly-result-rewards b {
  overflow-wrap: anywhere;
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: 18px;
  line-height: 1.05;
}

.weekly-result-empty-reward {
  grid-column: 1 / -1;
  display: flex !important;
  justify-content: center;
  color: rgba(244, 239, 231, .68);
  font-weight: 800;
}

.weekly-results-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 182, 111, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

body.collection-modal-open {
  overflow: hidden;
}

.collection-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.collection-modal.open {
  display: flex;
}

.collection-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 26%, rgba(196, 30, 30, .22), transparent 35%), rgba(2, 2, 5, .84);
  backdrop-filter: blur(16px);
}

.collection-modal-panel {
  --modal-image-ratio: 16/9;
  --modal-panel-width: min(1240px, calc(100vw - 56px));
  position: relative;
  width: var(--modal-panel-width);
  max-height: min(760px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .72fr);
  overflow: hidden;
  border: 1px solid rgba(245, 230, 163, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(23, 20, 27, .95), rgba(55, 9, 14, .82));
  box-shadow: 0 36px 130px rgba(0, 0, 0, .72), 0 0 80px rgba(196, 30, 30, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.collection-modal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 42, 42, .16), transparent 34%, rgba(201, 168, 76, .08)),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  mix-blend-mode: screen;
  opacity: .55;
}

.collection-modal-panel.is-wide {
  --modal-panel-width: min(1280px, calc(100vw - 56px));
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .7fr);
}

.collection-modal-panel.is-square {
  --modal-panel-width: min(1050px, calc(100vw - 56px));
  grid-template-columns: minmax(320px, .86fr) minmax(340px, 1fr);
}

.collection-modal-panel.is-portrait {
  --modal-panel-width: min(940px, calc(100vw - 56px));
  grid-template-columns: minmax(300px, .74fr) minmax(340px, 1fr);
}

.collection-modal-image {
  position: relative;
  width: 100%;
  aspect-ratio: var(--modal-image-ratio);
  max-height: calc(100vh - 112px);
  display: grid;
  place-items: center;
  align-self: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 168, 76, .12), transparent 44%),
    linear-gradient(135deg, rgba(7, 7, 12, .98), rgba(30, 8, 12, .92));
}

.collection-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(5, 5, 8, .34);
  filter: saturate(1.08) contrast(1.08);
}

.collection-modal-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 62%, rgba(5, 5, 8, .44));
  pointer-events: none;
}

.collection-modal-panel.is-square .collection-modal-image::after,
.collection-modal-panel.is-portrait .collection-modal-image::after {
  background: linear-gradient(90deg, transparent 70%, rgba(5, 5, 8, .36));
}

.collection-modal-panel.is-wide .collection-modal-image {
  align-self: stretch;
  aspect-ratio: auto;
  height: 100%;
  min-height: min(560px, calc(100vh - 112px));
  max-height: none;
  border-right: 1px solid rgba(245, 230, 163, .12);
  background: #050508;
}

.collection-modal-panel.is-wide .collection-modal-image img {
  object-fit: cover;
}

.collection-modal-panel.is-wide .collection-modal-image::after {
  background: linear-gradient(90deg, transparent 76%, rgba(5, 5, 8, .42));
}

.collection-modal-copy {
  position: relative;
  padding: 36px;
  align-self: center;
  max-height: min(760px, calc(100vh - 56px));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 230, 163, .34) rgba(255, 255, 255, .05);
}

.collection-modal-kicker {
  margin: 0 0 13px;
  color: #f5e6a3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.collection-modal-title {
  margin: 0 42px 10px 0;
  color: #f4efe7;
  font-family: Cinzel, serif;
  font-size: clamp(30px, 3.1vw, 52px);
  line-height: 1;
  text-shadow: 0 0 32px rgba(255, 42, 42, .18);
}

.collection-modal-subtitle {
  margin: 0 0 18px;
  color: #a9a0b4;
  font-size: 14px;
  line-height: 1.55;
}

.collection-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.collection-modal-meta > span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  background: rgba(255, 255, 255, .045);
  color: #c7bfcc;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.collection-modal-meta > span[hidden] {
  display: none !important;
}

.collection-modal-meta .chip-cost {
  gap: 7px;
  border-color: rgba(255, 42, 42, .48);
  background: linear-gradient(135deg, rgba(104, 16, 16, .72), rgba(224, 31, 37, .34));
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 42, 42, .18);
}

.collection-modal-meta .chip-cost strong,
.collection-modal-meta .chip-value strong {
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 14px;
  line-height: 1;
}

.collection-modal-meta .chip-cost .blood-icon {
  width: 13px;
  height: 16px;
}

.collection-modal-meta .chip-value {
  gap: 7px;
  border-color: rgba(201, 168, 76, .28);
  background: linear-gradient(135deg, rgba(201, 168, 76, .1), rgba(255, 255, 255, .035));
  color: #f5e6a3;
}

.collection-modal-meta .chip-value span {
  opacity: .82;
}

.collection-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin: 0 0 20px;
}

.collection-modal-actions.single-action {
  grid-template-columns: 1fr;
}

.collection-modal-actions .modal-profile.pacto-btn {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 42, 42, .48);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(117, 18, 18, .78), rgba(196, 30, 30, .2));
  box-shadow: 0 0 24px rgba(255, 42, 42, .1);
  color: #fff;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.collection-modal-actions .modal-profile[hidden] {
  display: none !important;
}

.collection-modal-text {
  display: grid;
  gap: 12px;
  color: #d4ceda;
  font-size: 14px;
  line-height: 1.72;
}

.collection-modal-text p {
  margin: 0;
}

.collection-modal-text p:empty,
.collection-modal-text p[hidden] {
  display: none;
}

.collection-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 42, 42, .42);
  border-radius: 0;
  background: rgba(42, 8, 11, .72);
  color: #ffb2b2;
  box-shadow: 0 0 24px rgba(255, 42, 42, .18);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.collection-modal-close:hover {
  background: rgba(139, 26, 26, .78);
  color: #fff;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero-mini-stats span {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  padding: 9px;
  text-align: center;
}

.hero-mini-stats b {
  display: inline-flex;
  margin: 0 0 3px;
  color: #fff4e6;
  font-size: 20px;
  text-align: center;
}

.hero-mini-stats > span {
  justify-content: center;
  text-align: center;
}

.identity-strip {
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) minmax(170px, .74fr) minmax(170px, .74fr) minmax(330px, 1.22fr) minmax(300px, 1.18fr);
  gap: 1px;
  margin-top: 14px;
  overflow: visible;
  background: var(--community-line);
}

.identity-strip > div,
.identity-profile {
  position: relative;
  min-width: 0;
  padding: 18px;
  background: rgba(11, 8, 8, .94);
}

.identity-profile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.identity-avatar {
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--rank-color, #c9a84c) 72%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .14), rgba(216, 182, 111, .08) 42%, rgba(0, 0, 0, .52));
  color: var(--community-gold);
  font-family: Cinzel, serif;
  font-size: 22px;
  font-weight: 900;
}

.identity-profile small {
  display: block;
  color: var(--community-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.identity-profile strong,
.identity-stat strong {
  display: block;
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-stat > span,
.identity-rank > span:not(.imm-rank-badge) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.identity-rank {
  display: grid;
  align-content: center;
  justify-items: stretch;
}

.identity-rank .imm-rank-badge {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: 1.35px;
}

.identity-sublegion {
  display: grid;
  align-content: center;
  gap: 9px;
}

.identity-sublegion-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.identity-sublegion-standard {
  width: 42px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--sublegion-accent) 54%, rgba(255, 255, 255, .08));
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 24%, color-mix(in srgb, var(--sublegion-accent) 24%, transparent), transparent 62%),
    rgba(255, 255, 255, .035);
  box-shadow: 0 0 24px color-mix(in srgb, var(--sublegion-accent) 12%, transparent), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.identity-sublegion-standard.is-empty::before {
  content: "";
  width: 12px;
  height: 15px;
  background: url('/assets/community/blood-drop.png') center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(255, 42, 42, .42));
  opacity: .68;
}

.identity-sublegion-banner {
  width: 35px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .58)) drop-shadow(0 0 10px color-mix(in srgb, var(--sublegion-accent) 30%, transparent));
}

.identity-sublegion-row strong {
  min-width: 0;
  margin: 0;
  color: #fff4e6;
  font-size: 22px;
  line-height: 1.05;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.identity-sublegion-pledged {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  border: 1px solid color-mix(in srgb, var(--sublegion-accent) 42%, rgba(255, 255, 255, .08));
  border-radius: 6px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sublegion-accent) 12%, rgba(255, 255, 255, .045)), rgba(255, 255, 255, .025));
  padding: 0 10px;
  color: #f4d89b;
  white-space: nowrap;
}

.identity-sublegion-pledged small {
  color: var(--community-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.identity-sublegion-pledged b {
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: 16px;
  line-height: 1;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  margin-top: 16px;
}

.forum-panel,
.side-panel,
.project-section,
.sublegion-section {
  padding: clamp(18px, 2.2vw, 28px);
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 6px 0 0;
  font-size: 38px;
  line-height: 1;
}

.panel-heading p {
  max-width: 850px;
  margin: 10px 0 0;
  color: var(--community-muted);
  line-height: 1.55;
}

.panel-heading.compact h2 {
  font-size: 24px;
}

.forum-panel .panel-heading h2 {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.05;
}

.hall-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.hall-card {
  min-height: 74px;
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-content: center;
  align-items: center;
  padding: 13px 13px 13px 15px;
  border: 1px solid var(--community-line-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hall-accent) 18%, transparent), rgba(255, 255, 255, .025));
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.hall-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--hall-accent);
  box-shadow: 0 0 22px var(--hall-accent);
}

.hall-card > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 182, 111, .24);
  border-radius: 5px;
  color: var(--community-gold);
  font-family: Cinzel, serif;
  font-weight: 900;
}

.hall-card:hover,
.hall-card.is-active {
  border-color: color-mix(in srgb, var(--hall-accent) 68%, white);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hall-accent) 28%, transparent), rgba(255, 255, 255, .035));
  transform: translateY(-1px);
}

.hall-card h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.18;
}

.hall-card p {
  display: none;
}

.hall-card p,
.thread-copy p,
.project-card p,
.sublegion-copy p {
  color: var(--community-muted);
  font-size: 12px;
  line-height: 1.55;
}

.forum-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: stretch;
  margin-top: 12px;
}

.forum-search label {
  display: block;
  min-width: 0;
}

.forum-search input,
.forum-search .quiet-button {
  min-height: 42px;
}

.forum-create-toggle {
  width: 100%;
  min-height: 58px;
  margin-top: 16px;
  justify-content: center;
  font-size: 13px;
}

.compose-box {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(216, 182, 111, .14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0, rgba(216, 182, 111, .08), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.compose-box[hidden] {
  display: none;
}

.compose-intro {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.compose-intro h3 {
  margin: 5px 0 0;
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.08;
  text-transform: uppercase;
}

.compose-intro p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--community-muted);
  font-size: 13px;
  line-height: 1.5;
}

.compose-active-hall {
  flex: 0 0 auto;
  min-width: 220px;
  display: grid;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--hall-accent) 40%, rgba(255, 255, 255, .09));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hall-accent) 17%, transparent), rgba(0, 0, 0, .16));
  padding: 12px 14px;
  box-shadow: inset 3px 0 0 var(--hall-accent);
}

.compose-active-hall small,
.compose-field > span,
.compose-submit-row span {
  color: var(--community-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.compose-active-hall strong {
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: 17px;
  line-height: 1.1;
}

.compose-field {
  min-width: 0;
  display: block;
}

.community-composer-field {
  grid-column: 1 / -1;
  min-width: 0;
}

.editor-shell {
  grid-column: 1 / -1;
  border: 1px solid var(--community-line-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--community-line-soft);
  background: rgba(255, 255, 255, .025);
}

.editor-toolbar span {
  color: var(--community-muted);
  font-size: 12px;
  line-height: 1.4;
}

.rich-editor {
  min-height: 104px;
  padding: 13px;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  outline: none;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, .42);
}

.editor-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--community-line-soft);
}

.editor-media-card {
  position: relative;
  min-width: 0;
}

.editor-media-card > button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  cursor: pointer;
}

.compose-box select,
.compose-box input,
.forum-search input,
.thread-actions textarea,
.project-form input {
  width: 100%;
  border: 1px solid var(--community-line-soft);
  border-radius: 6px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  padding: 11px 12px;
  font: inherit;
  outline: none;
}

.forum-search input {
  padding: 9px 11px;
}

.compose-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.compose-submit-row span {
  color: rgba(220, 207, 198, .68);
  letter-spacing: 1px;
}

.compose-submit-row b {
  color: #fff4e6;
}

.compose-submit-row .blood-button {
  min-width: 220px;
}

.compose-box select:focus,
.compose-box input:focus,
.forum-search input:focus,
.thread-actions textarea:focus,
.project-form input:focus {
  border-color: rgba(255, 58, 58, .55);
  box-shadow: 0 0 0 3px rgba(255, 58, 58, .08);
}

.thread-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.forum-thread {
  position: relative;
  padding: 18px;
  border: 1px solid var(--community-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, .027);
  overflow: hidden;
}

.forum-thread::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--thread-accent, var(--community-blood));
  box-shadow: 0 0 22px var(--thread-accent, var(--community-blood));
}

.thread-topline,
.thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thread-topline > span,
.thread-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(216, 182, 111, .16);
  border-radius: 999px;
  background: rgba(216, 182, 111, .05);
  padding: 0 9px;
}

.thread-topline > span {
  color: #f0d28e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.thread-channel-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f4d89b;
  text-decoration: none;
}

.thread-channel-mark span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--hall-accent) 46%, rgba(216, 182, 111, .2));
  border-radius: 5px;
  background: color-mix(in srgb, var(--hall-accent) 10%, rgba(0, 0, 0, .22));
  color: var(--community-gold);
  font-family: Cinzel, serif;
  font-size: 14px;
  font-weight: 900;
}

.thread-channel-mark strong {
  color: #f4d89b;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.thread-title {
  margin: 12px 0 0;
  font-size: 20px;
}

.thread-title a {
  color: inherit;
  text-decoration: none;
}

.thread-title a:hover,
.thread-title a:focus {
  color: #fff3d6;
}

.thread-copy {
  margin: 8px 0 0;
}

.thread-copy--teaser,
.reply-preview.is-faded p {
  position: relative;
  overflow: hidden;
}

.thread-copy--teaser.is-faded {
  max-height: 7.1em;
}

.thread-copy--teaser.is-faded::after,
.reply-preview.is-faded p::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3.4em;
  background: linear-gradient(180deg, transparent, rgba(13, 10, 11, .96));
  pointer-events: none;
}

.thread-copy p {
  margin: 0;
}

.thread-copy p + p {
  margin-top: 8px;
}

.thread-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.thread-inline-media {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.thread-inline-media .thread-media-grid {
  margin-top: 0;
}

.thread-inline-media .thread-media-grid--quote {
  grid-template-columns: 1fr;
}

.thread-full-copy .thread-inline-media,
.thread-reply-copy .thread-inline-media {
  width: 100%;
}

.thread-inline-media figcaption {
  color: rgba(244, 229, 214, .82);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.thread-media-frame {
  position: relative;
  min-width: 0;
  min-height: 132px;
}

.thread-media {
  min-height: 132px;
  border: 1px solid rgba(216, 182, 111, .16);
  border-radius: 8px;
  background: rgba(0, 0, 0, .32);
  overflow: hidden;
}

.thread-media.image,
.thread-media.link {
  display: grid;
  place-items: center;
}

.thread-media img,
.thread-media.video {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.thread-media-quote {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  min-height: 0;
  padding: 8px 10px;
  border-color: rgba(216, 182, 111, .32);
  background: rgba(10, 7, 8, .82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .26);
  color: #f4d89b;
  font-size: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease;
}

.thread-media-frame:hover .thread-media-quote,
.thread-media-frame:focus-within .thread-media-quote {
  opacity: 1;
  transform: translateY(0);
}

.quote-selection-button {
  position: fixed;
  z-index: 120;
  width: 96px;
  min-height: 0;
  padding: 8px 10px;
  border-color: rgba(216, 182, 111, .42);
  background: rgba(12, 8, 9, .94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .36), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  color: #f8df9c;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

.quote-selection-button[hidden] {
  display: none;
}

@media (hover: none) {
  .thread-media-quote {
    opacity: 1;
    transform: none;
  }
}

iframe.thread-media.video {
  aspect-ratio: 16 / 9;
  border: 0;
}

.thread-media.link {
  color: #f4d89b;
  padding: 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.thread-meta {
  margin-top: 14px;
}

.thread-meta b {
  margin-right: 4px;
  color: #fff;
}

.thread-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.thread-hashtags a {
  border: 1px solid rgba(216, 182, 111, .16);
  border-radius: 999px;
  background: rgba(216, 182, 111, .045);
  color: #f4d89b;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.thread-author-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .055);
}

.thread-author-line time {
  flex: 0 0 auto;
  color: var(--community-muted);
  font-size: 12px;
  font-weight: 800;
}

.community-user-card--thread-card {
  min-width: 0;
}

.reply-preview-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.reply-preview {
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: rgba(255, 255, 255, .026);
  padding: 10px 12px;
}

.reply-preview strong {
  color: #f4d89b;
  font-size: 12px;
}

.reply-preview p {
  margin: 4px 0 0;
  color: var(--community-muted);
  font-size: 13px;
  line-height: 1.45;
}

.reply-preview-actions,
.thread-card-moderation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reply-preview-actions {
  margin-top: 9px;
}

.thread-card-moderation {
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .055);
}

.reply-preview.is-faded p {
  max-height: 4.5em;
}

.thread-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.thread-cta-row span {
  color: var(--community-muted);
  font-size: 12px;
  line-height: 1.45;
}

.thread-open-button {
  flex: 0 0 auto;
  min-width: 170px;
}

.thread-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 14px;
}

.thread-actions textarea {
  min-height: 44px;
  max-height: 140px;
  background-color: rgba(0, 0, 0, .38) !important;
  color: #fff !important;
  resize: vertical;
}

.thread-actions textarea::placeholder {
  color: rgba(255, 255, 255, .46);
}

.like-button {
  position: relative;
  color: #f4d89b;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.like-button::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 58, 58, .45);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.like-button::before {
  content: attr(data-like-float);
  position: absolute;
  left: 50%;
  top: -9px;
  z-index: 2;
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 58, 58, .85), 0 6px 18px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translate(-50%, 8px) scale(.86);
  pointer-events: none;
}

.like-button.is-liked {
  border-color: rgba(216, 182, 111, .42);
  background:
    radial-gradient(circle at 18% 0, rgba(216, 182, 111, .2), transparent 48%),
    rgba(199, 37, 45, .18);
  color: #fff3d6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 24px rgba(216, 182, 111, .09);
}

.like-button.is-like-confirmed {
  border-color: rgba(255, 76, 76, .72);
  background: rgba(199, 37, 45, .24);
  color: #fff4e6;
  box-shadow: 0 0 0 3px rgba(255, 58, 58, .1), 0 0 28px rgba(255, 58, 58, .22);
  animation: community-like-pop .42s cubic-bezier(.2, .85, .28, 1);
}

.like-button.is-like-confirmed::after {
  animation: community-like-ripple .52s ease-out;
}

.like-button.is-like-delta::before {
  animation: community-like-delta .82s cubic-bezier(.2, .78, .3, 1);
}

[data-thread-likes].is-counter-pulse {
  animation: community-counter-pulse .52s cubic-bezier(.2, .85, .28, 1);
}

@keyframes community-like-pop {
  0% { transform: translateY(0) scale(1); }
  42% { transform: translateY(-1px) scale(1.045); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes community-like-ripple {
  0% { opacity: .55; transform: translate(-50%, -50%) scale(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(9); }
}

@keyframes community-like-delta {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.86); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -30px) scale(1.06); }
}

@keyframes community-counter-pulse {
  0% { color: #fff; text-shadow: none; transform: scale(1); }
  45% { color: #ffdddd; text-shadow: 0 0 16px rgba(255, 58, 58, .72); transform: scale(1.16); }
  100% { color: #fff; text-shadow: none; transform: scale(1); }
}

.community-thread-page {
  background:
    radial-gradient(circle at 70% 0%, color-mix(in srgb, var(--thread-accent) 28%, transparent), transparent 26rem),
    radial-gradient(circle at 8% 58%, rgba(216, 182, 111, .11), transparent 24rem),
    linear-gradient(180deg, rgba(5, 4, 5, .9), #050405 34rem),
    url('/assets/characters/personajes-hero-dark-lord.webp') center top / cover no-repeat fixed;
}

.community-thread-main {
  width: min(1560px, calc(100% - 32px));
}

.thread-detail-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--community-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(11, 8, 9, .97), rgba(31, 16, 17, .88) 58%, rgba(12, 10, 11, .92)),
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--thread-accent) 18%, transparent), transparent 22rem);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.thread-detail-hero-copy {
  min-width: 0;
}

.thread-channel-link,
.thread-channel-link:visited {
  color: inherit;
  text-decoration: none;
}

.thread-channel-link:hover,
.thread-channel-link:focus {
  color: #fff3d6;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.thread-hero-message {
  max-width: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.thread-detail-hero h1 {
  max-width: 780px;
  margin: 8px 0 0;
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 12px 30px #000, 0 0 22px color-mix(in srgb, var(--thread-accent) 24%, transparent);
}

.thread-detail-author-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 182, 111, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .026);
}

.thread-detail-toolbar {
  display: grid;
  gap: 12px;
  min-width: 0;
  position: sticky;
  top: 92px;
}

.thread-detail-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  min-width: 0;
}

.thread-detail-controls > .quiet-button,
.thread-detail-controls > .blood-button {
  width: 100%;
}

.thread-media-grid--hero {
  margin-top: 16px;
}

.community-user-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.community-user-card--thread-author {
  grid-template-columns: 42px minmax(0, 1fr);
  flex: 1 1 420px;
}

.community-user-card--reply {
  grid-template-columns: 38px minmax(0, 1fr);
}

.community-user-avatar {
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
}

.community-user-card--thread-author .community-user-avatar {
  width: 42px;
  height: 42px;
}

.community-user-card--reply .community-user-avatar {
  width: 38px;
  height: 38px;
}

.community-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.community-user-body {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 5px;
}

.community-user-card--thread-author .community-user-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 9px;
}

.community-user-card--thread-author .community-user-name {
  flex: 0 1 auto;
}

.community-user-name {
  max-width: 100%;
  display: block;
  overflow: hidden;
  color: #fff4e6;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-user-name:hover,
.community-user-name:focus {
  color: var(--community-gold);
  text-decoration: none;
}

.community-user-rank {
  max-width: 100%;
  justify-self: start;
  min-height: 22px;
  padding: 4px 7px;
  font-size: 8px;
  letter-spacing: .8px;
}

.community-user-rank .imm-rank-badge__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-user-sublegion {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--sublegion-accent) 34%, rgba(255, 255, 255, .09));
  border-radius: 5px;
  background: color-mix(in srgb, var(--sublegion-accent) 10%, rgba(255, 255, 255, .025));
  color: #d9d1cb;
  padding: 3px 7px 3px 5px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.community-user-sublegion img {
  width: 13px;
  height: 18px;
  object-fit: contain;
}

.community-user-sublegion span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-detail-meta,
.thread-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.thread-detail-meta span,
.thread-action-bar span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(216, 182, 111, .16);
  border-radius: 999px;
  background: rgba(216, 182, 111, .05);
  color: #dccfc6;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
}

.thread-detail-meta b,
.thread-action-bar b {
  margin-right: 4px;
  color: #fff;
}

.thread-jump-button {
  width: auto;
  min-width: 104px;
  min-height: 34px;
  padding: 0 14px;
}

.thread-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 14px;
  margin-top: 14px;
}

.thread-detail-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.thread-detail-panel {
  border: 1px solid var(--community-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 14, 15, .93), rgba(8, 6, 7, .96));
  box-shadow: 0 18px 62px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04);
  padding: clamp(14px, 1.65vw, 20px);
}

.thread-detail-panel .panel-heading {
  margin-bottom: 14px;
}

.thread-detail-panel .panel-heading h2,
.thread-side-panel .panel-heading h2 {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.04;
}

.thread-detail-panel .panel-heading p {
  max-width: 780px;
  margin-top: 8px;
  color: var(--community-muted);
  font-size: 13px;
  line-height: 1.5;
}

.thread-full-copy {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.thread-full-copy p,
.thread-reply-copy p {
  margin: 0;
  color: #d8d0ca;
  font-size: 14px;
  line-height: 1.62;
}

.thread-full-copy h3,
.thread-reply-copy h3 {
  margin: 2px 0 0;
  color: #fff4e6;
  font-family: Cinzel, serif;
  font-size: 17px;
  line-height: 1.18;
  text-transform: uppercase;
}

.thread-full-copy blockquote,
.thread-reply-copy blockquote {
  margin: 2px 0;
  border-left: 3px solid color-mix(in srgb, var(--thread-accent) 72%, var(--community-gold));
  border-radius: 0 7px 7px 0;
  background: linear-gradient(90deg, rgba(216, 182, 111, .09), rgba(255, 255, 255, .025));
  padding: 10px 12px;
}

.thread-full-copy blockquote p,
.thread-reply-copy blockquote p {
  color: #f0dfc1;
  font-size: 13px;
}

.thread-full-copy ul,
.thread-reply-copy ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #d8d0ca;
  font-size: 14px;
  line-height: 1.55;
}

.thread-full-copy li::marker,
.thread-reply-copy li::marker {
  color: var(--community-gold);
}

.thread-full-copy a,
.thread-reply-copy a {
  color: #f4d89b;
  font-weight: 800;
  text-decoration: none;
}

.thread-full-copy a:hover,
.thread-full-copy a:focus,
.thread-reply-copy a:hover,
.thread-reply-copy a:focus {
  color: #fff4e6;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.community-mention {
  display: inline-block;
  border-radius: 6px;
  color: #f5d792;
  font-weight: 900;
  scroll-margin-top: 110px;
  text-decoration: none;
}

.community-mention--rich {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: min(100%, 310px);
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--rank-color, #c9a84c) 42%, rgba(255, 255, 255, .1));
  border-radius: 7px;
  background:
    radial-gradient(circle at 17% 50%, color-mix(in srgb, var(--rank-color, #c9a84c) 20%, transparent), transparent 44%),
    linear-gradient(135deg, color-mix(in srgb, var(--rank-color, #c9a84c) 12%, rgba(255, 255, 255, .035)), rgba(0, 0, 0, .2)),
    rgba(18, 18, 27, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 7px 18px rgba(0, 0, 0, .24);
  color: #fff4e6;
  line-height: 1;
  margin: 1px 8px 1px 0;
  padding: 5px 8px 5px 6px;
  text-decoration: none !important;
  vertical-align: middle;
  white-space: nowrap;
}

.community-mention--rich:hover,
.community-mention--rich:focus {
  border-color: color-mix(in srgb, var(--rank-color, #c9a84c) 72%, #fff4e6);
  color: #fff;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.community-mention--rich + .community-mention--rich {
  margin-left: 2px;
}

.thread-full-copy a.community-mention--rich,
.thread-full-copy a.community-mention--rich:hover,
.thread-full-copy a.community-mention--rich:focus,
.thread-reply-copy a.community-mention--rich,
.thread-reply-copy a.community-mention--rich:hover,
.thread-reply-copy a.community-mention--rich:focus {
  color: #fff4e6;
  text-decoration: none !important;
}

.community-mention-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--rank-color, #c9a84c) 54%, rgba(255, 255, 255, .16));
  border-radius: 999px;
  background: rgba(0, 0, 0, .32);
  color: #f5d792;
  font-family: Cinzel, serif;
  font-size: 11px;
  font-weight: 900;
}

.community-mention--rich .community-mention-avatar::before {
  inset: -3px;
  opacity: .36;
}

.community-mention--rich .community-mention-avatar::after {
  inset: -8px;
  opacity: .34;
  filter: blur(7px);
}

.community-mention-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-mention-standard {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 16px;
  height: 23px;
  filter: drop-shadow(0 6px 9px rgba(0, 0, 0, .5)) drop-shadow(0 0 8px color-mix(in srgb, var(--sublegion-accent, #c9a84c) 28%, transparent));
}

.community-mention-standard img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}

.community-mention-copy {
  display: grid;
  grid-template-areas:
    "name"
    "rank";
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}

.community-mention-copy strong {
  grid-area: name;
  overflow: hidden;
  color: inherit;
  font-family: Cinzel, serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.08;
  max-width: 155px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-mention-meta {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}

.community-mention-token,
.community-mention-sublegion {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 16px;
  overflow: hidden;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .55px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.community-mention-rank {
  grid-area: rank;
  justify-self: start;
  min-width: 0;
  max-width: 165px;
  min-height: 16px;
  padding: 3px 6px;
  border-radius: 5px;
  flex-wrap: nowrap;
  font-size: 6.8px;
  gap: 0;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.community-mention-rank .imm-rank-badge__name {
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.community-mention-sublegion {
  grid-area: sublegion;
  justify-self: start;
  flex: 0 1 auto;
  max-width: 92px;
  border: 1px solid color-mix(in srgb, var(--sublegion-accent, #c9a84c) 34%, rgba(255, 255, 255, .1));
  background: color-mix(in srgb, var(--sublegion-accent, #c9a84c) 12%, rgba(255, 255, 255, .025));
  color: #d9d1cb;
}

.community-mention.is-mentioned-target {
  background: linear-gradient(90deg, rgba(255, 58, 58, .22), rgba(216, 182, 111, .24));
  box-shadow: 0 0 0 3px rgba(216, 182, 111, .13);
  color: #fff4e6;
  padding: 0 3px;
}

.mention-suggestion-menu {
  position: fixed;
  z-index: 160;
  display: grid;
  gap: 4px;
  max-height: 286px;
  overflow: auto;
  border: 1px solid rgba(216, 182, 111, .22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(42, 30, 29, .98), rgba(13, 11, 12, .98)),
    #151111;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .045);
  padding: 6px;
}

.mention-suggestion-menu[hidden] {
  display: none;
}

.mention-suggestion-menu button {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #f2e3cf;
  cursor: pointer;
  padding: 6px 8px;
  text-align: left;
}

.mention-suggestion-menu button:hover,
.mention-suggestion-menu button:focus,
.mention-suggestion-menu button.is-active {
  border-color: rgba(216, 182, 111, .2);
  background: rgba(216, 182, 111, .075);
}

.mention-suggestion-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rank-color, #c9a84c) 54%, rgba(255, 255, 255, .16));
  border-radius: 999px;
  background: rgba(0, 0, 0, .32);
  color: #f5d792;
  font-size: 10px;
  font-weight: 900;
}

.mention-suggestion-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mention-suggestion-standard {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 21px;
  height: 28px;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .45)) drop-shadow(0 0 10px color-mix(in srgb, var(--sublegion-accent, #c9a84c) 28%, transparent));
}

.mention-suggestion-standard img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}

.mention-suggestion-copy {
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mention-suggestion-copy strong,
.mention-suggestion-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-suggestion-copy strong {
  color: #fff4e6;
  font-size: 13px;
  font-weight: 900;
}

.mention-suggestion-copy span {
  color: var(--community-muted);
  font-size: 11px;
  font-weight: 800;
}

.mention-suggestion-rank {
  justify-self: start;
  max-width: 100%;
}

.mention-suggestion-rank .imm-rank-badge__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-media-grid--detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thread-media-grid--reply {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4px;
}

.thread-media-grid--quote {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.thread-media-grid--quote .thread-media,
.thread-media-grid--quote .thread-media img,
.thread-media-grid--quote .thread-media.video,
.thread-media-grid--quote .thread-media-frame {
  min-height: 104px;
}

.thread-action-bar {
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.thread-action-bar .like-button {
  margin-left: auto;
}

.thread-reply-list,
.related-thread-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.thread-reply,
.related-thread {
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  background: rgba(255, 255, 255, .027);
  padding: 14px;
}

.thread-reply {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-left: 3px solid color-mix(in srgb, var(--thread-accent) 72%, #d8b66f);
  scroll-margin-top: 110px;
}

.thread-reply.is-linked-target,
.reply-preview.is-linked-target,
.community-thread-main.is-linked-target {
  border-color: rgba(216, 182, 111, .42);
  box-shadow:
    0 0 0 1px rgba(255, 58, 58, .26),
    0 0 34px rgba(216, 182, 111, .16),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: community-linked-target-pulse 1.9s ease both;
}

@keyframes community-linked-target-pulse {
  0% {
    box-shadow:
      0 0 0 3px rgba(255, 58, 58, .34),
      0 0 46px rgba(216, 182, 111, .28),
      inset 0 1px 0 rgba(255, 255, 255, .07);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 58, 58, .26),
      0 0 34px rgba(216, 182, 111, .16),
      inset 0 1px 0 rgba(255, 255, 255, .06);
  }
}

.thread-reply-head {
  display: grid;
  gap: 8px;
  margin: 0;
}

.thread-reply-meta {
  display: grid;
  gap: 9px;
  align-items: start;
}

.thread-reply-head span,
.related-thread span {
  color: var(--community-muted);
  font-size: 11px;
  font-weight: 800;
}

.thread-moderation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.thread-moderation-actions--reply {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.moderation-button {
  min-height: 28px;
  padding: 0 9px;
  border-color: rgba(216, 182, 111, .18);
  background: rgba(216, 182, 111, .045);
  color: #f2dfb6;
  font-size: 9px;
  letter-spacing: .8px;
}

.moderation-button.danger {
  border-color: rgba(255, 58, 58, .32);
  background: rgba(199, 37, 45, .12);
  color: #ffd6d6;
}

.moderation-editor {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(216, 182, 111, .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 182, 111, .07), rgba(199, 37, 45, .05)),
    rgba(0, 0, 0, .2);
}

.thread-detail-hero > .moderation-editor--thread {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0;
}

.community-thread-main.is-editing .thread-detail-hero-copy,
.community-thread-main.is-editing .thread-detail-toolbar {
  display: none;
}

.moderation-editor--thread .reply-rich-editor {
  min-height: clamp(360px, 44vw, 640px);
}

.thread-reply > .moderation-editor--reply {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: 0;
}

.thread-reply.is-editing .thread-reply-copy {
  display: none;
}

.thread-reply > .moderation-editor--reply .reply-editor-shell {
  border-color: color-mix(in srgb, var(--thread-accent) 52%, rgba(216, 182, 111, .22));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .36),
    0 0 34px color-mix(in srgb, var(--thread-accent) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .055);
}

.thread-reply > .moderation-editor--reply .reply-rich-editor,
.thread-reply > .moderation-editor--reply .reply-editor-preview {
  min-height: clamp(240px, 28vw, 460px);
}

.thread-reply > .moderation-editor--reply .reply-editor-preview:not([hidden]) {
  border-top: 1px solid rgba(216, 182, 111, .13);
}

.moderation-editor input,
.moderation-editor textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: rgba(0, 0, 0, .38);
  color: #fff4e6;
  padding: 11px 12px;
  font: inherit;
}

.moderation-editor textarea {
  min-height: 132px;
  resize: vertical;
}

.moderation-editor--reply textarea {
  min-height: 110px;
}

.moderation-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .22), color-mix(in srgb, var(--thread-accent) 10%, rgba(0, 0, 0, .16)));
}

.thread-reply-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 100%;
  align-content: start;
  border-left: 1px solid rgba(255, 255, 255, .07);
  padding-left: 18px;
}

.thread-quote-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.reply-quote-tray {
  padding: 12px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .055);
  background:
    linear-gradient(90deg, rgba(255, 58, 58, .08), rgba(216, 182, 111, .035) 42%, transparent),
    rgba(0, 0, 0, .08);
}

.reply-quote-tray[hidden] {
  display: none;
}

.thread-quote-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 182, 111, .16);
  border-left: 4px solid color-mix(in srgb, var(--thread-accent) 78%, #f0cf83);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(199, 37, 45, .035)),
    rgba(0, 0, 0, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  padding: 11px 12px 10px;
}

.thread-quote-card[draggable="true"] {
  cursor: grab;
}

.thread-quote-card.is-dragging {
  opacity: .58;
  cursor: grabbing;
  outline: 1px dashed rgba(216, 182, 111, .55);
  outline-offset: -5px;
}

.thread-quote-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 19, 20, 0), rgba(20, 19, 20, .92));
  opacity: 1;
  transition: opacity .18s ease;
}

.thread-quote-card.is-expanded::after,
.thread-quote-card.is-compact::after {
  opacity: 0;
}

.thread-quote-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.thread-quote-head strong {
  color: #f3dfb6;
  font-family: Cinzel, serif;
  font-size: 13px;
  line-height: 1.15;
}

.thread-quote-head a,
.thread-quote-toggle,
.thread-quote-remove,
.thread-quote-move-controls button {
  border: 0;
  background: transparent;
  color: #d8b66f;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.thread-quote-head a:hover,
.thread-quote-head a:focus,
.thread-quote-toggle:hover,
.thread-quote-toggle:focus,
.thread-quote-remove:hover,
.thread-quote-remove:focus,
.thread-quote-move-controls button:hover,
.thread-quote-move-controls button:focus {
  color: #fff4e6;
  text-decoration: none;
}

.thread-quote-move-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  border: 1px solid rgba(216, 182, 111, .15);
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  padding: 3px;
}

.thread-quote-move-controls button {
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  touch-action: manipulation;
}

.thread-quote-move-controls button:disabled {
  cursor: default;
  opacity: .32;
}

.thread-quote-remove {
  color: #ffb3ad;
  font-size: 13px;
  letter-spacing: 0;
}

.thread-quote-text {
  position: relative;
  z-index: 1;
  display: block;
  max-height: 6.7em;
  overflow: hidden;
  margin: 0;
  color: #d8d0ca;
  font-size: 13px;
  line-height: 1.48;
}

.thread-quote-text > * + * {
  margin-top: 8px;
}

.thread-quote-card.is-expanded .thread-quote-text {
  display: block;
  overflow: visible;
  max-height: none;
}

.thread-quote-card.is-compact {
  padding-bottom: 11px;
}

.thread-quote-card.is-compact .thread-quote-text {
  overflow: visible;
  max-height: none;
}

.thread-quote-card.is-compact .thread-quote-toggle {
  display: none;
}

.thread-quote-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 9px;
  padding: 0;
}

.thread-reply-copy p {
  overflow-wrap: anywhere;
}

.thread-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.thread-detail-reply-form {
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-top: 18px;
}

.rich-reply-composer {
  gap: 0;
}

.reply-editor-shell {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--thread-accent) 36%, rgba(216, 182, 111, .16));
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% -12%, color-mix(in srgb, var(--thread-accent) 18%, transparent), transparent 24rem),
    radial-gradient(circle at 88% 112%, rgba(216, 182, 111, .08), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .3));
  overflow: hidden;
  box-shadow:
    0 18px 52px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

.reply-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(90deg, rgba(216, 182, 111, .045), rgba(255, 255, 255, .012));
}

.reply-editor-title {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.reply-editor-title > span {
  color: var(--community-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.reply-editor-tabs {
  display: inline-flex;
  border: 1px solid rgba(216, 182, 111, .18);
  border-radius: 999px;
  background: rgba(0, 0, 0, .24);
  padding: 3px;
}

.reply-editor-tabs button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 216, 155, .72);
  padding: 0 11px;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.reply-editor-tabs button.is-active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--thread-accent) 42%, rgba(216, 182, 111, .18)), rgba(216, 182, 111, .12));
  color: #fff4e6;
  box-shadow: 0 0 18px color-mix(in srgb, var(--thread-accent) 22%, transparent);
}

.reply-editor-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.reply-editor-dropzone {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 0;
  transition: background .18s ease, box-shadow .18s ease;
}

.reply-editor-dropzone[hidden],
.reply-editor-preview[hidden],
.reply-editor-media[hidden] {
  display: none;
}

.reply-editor-dropzone.is-dragging {
  background: rgba(216, 182, 111, .07);
  box-shadow: inset 0 0 0 2px rgba(216, 182, 111, .24);
}

.reply-rich-editor {
  display: block;
  min-height: 176px;
  padding: 18px;
  line-height: 1.65;
}

.reply-rich-editor .reply-editor-quote-card {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  height: auto !important;
  min-height: 0 !important;
  max-height: none;
  margin: 6px 0;
  cursor: grab;
  user-select: none;
}

.reply-rich-editor .reply-editor-quote-card.is-compact {
  padding: 8px 10px;
}

.reply-rich-editor .reply-editor-quote-card.is-compact .thread-quote-head {
  margin-bottom: 5px;
}

.reply-rich-editor .reply-editor-quote-card.is-compact .thread-quote-text {
  line-height: 1.35;
}

.reply-rich-editor .reply-editor-quote-card:focus-within {
  outline: 1px solid rgba(216, 182, 111, .36);
  outline-offset: 3px;
}

.reply-rich-editor .reply-editor-text-spacer {
  min-height: 1.65em;
}

.reply-rich-editor .reply-editor-text-spacer:empty::before {
  content: "\00a0";
}

.reply-rich-editor > .thread-quote-card + .reply-editor-text-spacer {
  margin-top: 4px;
}

.reply-rich-editor .reply-editor-media-card {
  display: grid;
  gap: 9px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(216, 182, 111, .2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--thread-accent) 16%, transparent), transparent 15rem),
    rgba(0, 0, 0, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  user-select: text;
}

.reply-rich-editor .reply-editor-media-card.is-dragging,
.reply-rich-editor .reply-editor-quote-card.is-dragging {
  opacity: .58;
}

.reply-editor-media-frame {
  min-width: 0;
  cursor: grab;
  user-select: none;
}

.reply-editor-media-frame:active {
  cursor: grabbing;
}

.reply-editor-media-frame .thread-media-grid,
.reply-editor-media-frame .thread-media-frame {
  margin: 0;
}

.reply-editor-media-frame .thread-media {
  max-height: 360px;
}

.reply-editor-media-caption {
  width: 100%;
  min-height: 38px;
  resize: vertical;
  border: 1px solid rgba(216, 182, 111, .16);
  border-radius: 6px;
  background: rgba(0, 0, 0, .28);
  color: #f6eadc;
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  outline: none;
  cursor: text;
  user-select: text;
}

.reply-editor-media-caption:focus {
  border-color: color-mix(in srgb, var(--thread-accent) 56%, rgba(216, 182, 111, .38));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--thread-accent) 16%, transparent);
}

.reply-editor-media-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.reply-editor-media-actions button {
  min-width: 30px;
  height: 28px;
  border: 1px solid rgba(216, 182, 111, .2);
  border-radius: 5px;
  background: rgba(255, 255, 255, .045);
  color: #f4d89b;
  cursor: pointer;
  font-weight: 900;
}

.reply-editor-media-actions button:disabled {
  opacity: .38;
  cursor: default;
}

.reply-editor-dropzone > p {
  margin: 0;
  padding: 0 14px 13px;
  color: rgba(220, 207, 198, .62);
  font-size: 12px;
  line-height: 1.45;
}

.reply-editor-media {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(0, 0, 0, .18);
}

.reply-editor-preview {
  min-height: 176px;
  border-left: 0;
  border-top: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(0, 0, 0, .18));
}

.reply-editor-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .28), color-mix(in srgb, var(--thread-accent) 12%, rgba(0, 0, 0, .18)));
}

.reply-editor-foot span {
  color: rgba(220, 207, 198, .66);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.4;
  text-transform: uppercase;
}

.reply-editor-foot .blood-button {
  min-width: 190px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--thread-accent) 18%, transparent);
}

.related-thread {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.related-thread:hover,
.related-thread:focus {
  border-color: color-mix(in srgb, var(--thread-accent) 62%, rgba(255, 255, 255, .08));
  background: rgba(199, 37, 45, .08);
  text-decoration: none;
}

.related-thread strong {
  color: #fff3d6;
  font-family: Cinzel, serif;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.quiet-button:hover,
.blood-button:hover,
.sublegion-card.is-current .quiet-button {
  border-color: var(--community-red-hot);
  background: rgba(199, 37, 45, .18);
  color: #fff;
  text-decoration: none;
}

.community-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.sublegion-ranking,
.member-list {
  display: grid;
  gap: 10px;
}

.rank-row,
.member-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--community-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, .028);
}

.rank-row {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--rank-accent) 28%, rgba(255, 255, 255, .07));
  background:
    radial-gradient(circle at 18% 50%, color-mix(in srgb, var(--rank-accent) 22%, transparent), transparent 38%),
    linear-gradient(90deg, color-mix(in srgb, var(--rank-accent) 10%, rgba(255, 255, 255, .04)), rgba(255, 255, 255, .026));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 34px rgba(0, 0, 0, .22);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.rank-row::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rank-accent), transparent);
  box-shadow: 0 0 18px var(--rank-accent);
  opacity: .82;
}

.rank-row > * {
  position: relative;
  z-index: 1;
}

.rank-row > span {
  color: var(--rank-accent);
  font-family: Cinzel, serif;
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 54px;
  height: 68px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5));
}

.rank-row strong,
.member-row strong {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row small,
.member-row small {
  display: block;
  margin-top: 2px;
  color: var(--community-muted);
  font-size: 11px;
}

.rank-row b,
.member-row b {
  color: var(--community-gold);
  font-family: Cinzel, serif;
}

.member-row {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.member-rank-badge {
  margin-top: 6px;
  justify-content: flex-start;
}

.member-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 182, 111, .24);
  border-radius: 50%;
  background: rgba(216, 182, 111, .07);
  color: var(--community-gold);
  font-family: Cinzel, serif;
  font-weight: 900;
  overflow: hidden;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-section,
.sublegion-section {
  margin-top: 16px;
  border: 1px solid var(--community-line);
  border-radius: 8px;
  background: rgba(5, 4, 5, .64);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-card {
  position: relative;
  overflow: visible;
  padding: 20px 62px 20px 20px;
}

.project-info-help {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 8;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 182, 111, .42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0, rgba(245, 230, 163, .28), transparent 64%),
    linear-gradient(145deg, rgba(216, 182, 111, .14), rgba(196, 30, 30, .06));
  color: #f5e6a3;
  font-family: Cinzel, serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 24px rgba(216, 182, 111, .1);
}

.project-info-help::after {
  content: attr(data-project-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 48px));
  padding: 11px 12px;
  border: 1px solid rgba(245, 230, 163, .24);
  border-radius: 7px;
  background: rgba(10, 7, 8, .98);
  color: #f3ece4;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .2px;
  text-align: left;
  text-transform: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .46), 0 0 24px rgba(196, 30, 30, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

.project-info-help::before {
  content: "";
  position: absolute;
  top: calc(100% + 5px);
  right: 12px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(245, 230, 163, .22);
  border-top: 1px solid rgba(245, 230, 163, .22);
  background: rgba(10, 7, 8, .98);
  opacity: 0;
  transform: rotate(45deg) translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

.project-info-help:hover,
.project-info-help:focus-visible {
  border-color: rgba(245, 230, 163, .68);
  color: #fff4d0;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 30px rgba(216, 182, 111, .24);
}

.project-info-help:hover::after,
.project-info-help:focus-visible::after,
.project-info-help:hover::before,
.project-info-help:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.project-info-help:hover::before,
.project-info-help:focus-visible::before {
  transform: rotate(45deg) translateY(0);
}

.project-kind {
  width: fit-content;
  min-height: 26px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(111, 169, 216, .26);
  border-radius: 999px;
  background: rgba(111, 169, 216, .08);
  color: #b8d6ee;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 18px 0 0;
  font-size: 22px;
}

.project-meter {
  height: 10px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}

.project-meter span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: linear-gradient(90deg, var(--community-blood), var(--community-gold));
  box-shadow: 0 0 22px rgba(199, 37, 45, .48);
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-stats span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  padding: 0 9px;
}

.project-stats b {
  margin-right: 4px;
  color: #fff;
}

.project-stat-unlimited {
  border-color: rgba(216, 182, 111, .2) !important;
  background: linear-gradient(135deg, rgba(216, 182, 111, .1), rgba(196, 30, 30, .055)) !important;
  color: #f5e6a3;
  font-weight: 900;
}

.project-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.sublegion-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.sublegion-card {
  position: relative;
  min-height: 480px;
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto;
  border-color: color-mix(in srgb, var(--sublegion-accent) 34%, rgba(255, 255, 255, .08));
  background:
    radial-gradient(circle at 50% 21%, color-mix(in srgb, var(--sublegion-accent) 24%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--sublegion-accent) 13%, rgba(18, 14, 14, .92)), rgba(8, 6, 6, .94));
  box-shadow: 0 18px 62px rgba(0, 0, 0, .34), 0 0 44px color-mix(in srgb, var(--sublegion-accent) 10%, transparent), inset 0 1px 0 rgba(255, 255, 255, .04);
  padding: 14px;
  overflow: hidden;
}

.sublegion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--sublegion-accent) 18%, transparent), transparent 42%),
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--sublegion-accent) 8%, transparent), transparent);
  pointer-events: none;
}

.sublegion-banner-link {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 250px;
  display: grid;
  place-items: end center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.sublegion-card.is-current {
  border-color: color-mix(in srgb, var(--sublegion-accent) 74%, white);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sublegion-accent) 42%, transparent), 0 18px 62px rgba(0, 0, 0, .34);
}

.sublegion-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .72));
  transform: scale(1.08);
  transform-origin: center bottom;
}

.sublegion-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  justify-items: stretch;
  text-align: center;
}

.sublegion-copy h3 {
  font-family: 'Cinzel Decorative', Cinzel, serif;
  grid-column: 1 / -1;
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .4px;
  text-align: center;
}

.sublegion-copy p {
  grid-column: 1 / -1;
  min-height: 40px;
  margin: 0;
}

.sublegion-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sublegion-stats span {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--community-line-soft);
  border-radius: 6px;
  background: rgba(0, 0, 0, .22);
  padding: 8px;
  text-align: center;
}

.sublegion-stats b {
  color: var(--community-gold);
  font-family: Cinzel, serif;
  font-size: 18px;
}

.realtime-counter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4ch;
  transform: translateZ(0);
  will-change: transform, color, text-shadow;
}

.realtime-counter.is-counter-increase {
  animation: realtime-counter-rise .72s cubic-bezier(.18, .86, .28, 1);
  color: #dfffe8 !important;
  text-shadow: 0 0 18px rgba(70, 255, 146, .55), 0 0 36px rgba(48, 201, 105, .28);
}

.realtime-counter.is-counter-increase::before,
.realtime-counter.is-counter-increase::after {
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.realtime-counter.is-counter-increase::before {
  content: "▲";
  top: -18px;
  color: #61ff9a;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 14px rgba(79, 255, 147, .72);
  animation: realtime-counter-arrow .82s ease-out both;
}

.realtime-counter.is-counter-increase::after {
  content: attr(data-counter-delta);
  top: -28px;
  border: 1px solid rgba(97, 255, 154, .38);
  border-radius: 999px;
  background: rgba(12, 42, 22, .72);
  box-shadow: 0 0 24px rgba(44, 220, 104, .22);
  color: #caffe0;
  padding: 2px 7px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .4px;
  line-height: 1.2;
  animation: realtime-counter-delta .82s ease-out both;
}

@keyframes realtime-counter-rise {
  0% { transform: translateY(0) scale(1); }
  36% { transform: translateY(-7px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes realtime-counter-arrow {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.82); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -7px) scale(1); }
}

@keyframes realtime-counter-delta {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.88); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -10px) scale(1); }
}

.empty-state {
  color: var(--community-muted);
}

.toast,
.community-toast {
  position: fixed;
  right: 22px;
  top: 92px;
  z-index: 100;
  display: none;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 182, 111, .28);
  border-radius: 8px;
  background: rgba(10, 7, 7, .96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.community-toast.is-visible,
.toast.is-visible {
  animation: community-toast-rise .22s ease-out;
}

@keyframes community-toast-rise {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.sublegion-copy h3 a,
.sublegion-copy h3 a:visited,
.sublegion-copy h3 a:hover,
.sublegion-copy h3 a:focus {
  color: #f8f0e8;
  text-decoration: none;
  text-shadow: 0 8px 18px rgba(0, 0, 0, .52), 0 0 18px color-mix(in srgb, var(--sublegion-accent) 22%, transparent);
}

.sublegion-link {
  width: 100%;
  margin-right: 0;
  text-decoration: none;
}

.sublegion-copy > .quiet-button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
}

.sublegion-detail-page {
  background:
    radial-gradient(circle at 50% 14%, color-mix(in srgb, var(--sublegion-accent) 34%, transparent), transparent 28rem),
    radial-gradient(circle at 10% 70%, rgba(199, 37, 45, .18), transparent 26rem),
    linear-gradient(180deg, rgba(5, 4, 5, .92), #050405 34rem),
    url('/assets/characters/personajes-hero-dark-lord.webp') center top / cover no-repeat fixed;
}

.sublegion-main {
  width: min(1680px, calc(100% - 32px));
}

.sublegion-back-link {
  margin-bottom: 18px;
  text-decoration: none;
}

.sublegion-hero-detail {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  place-items: center;
  padding: clamp(34px, 6vw, 86px);
  border: 1px solid color-mix(in srgb, var(--sublegion-accent) 42%, rgba(255, 255, 255, .08));
  border-radius: 10px;
  background:
    linear-gradient(115deg, rgba(3, 3, 5, .93), rgba(25, 10, 12, .78) 52%, color-mix(in srgb, var(--sublegion-accent) 17%, rgba(5, 4, 5, .72))),
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: auto, 58px 58px, 58px 58px;
  box-shadow: 0 34px 120px rgba(0, 0, 0, .58), 0 0 90px color-mix(in srgb, var(--sublegion-accent) 18%, transparent);
  overflow: hidden;
}

.sublegion-hero-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--sublegion-accent) 20%, transparent), transparent),
    radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--sublegion-accent) 26%, transparent), transparent 38%);
  opacity: .78;
  pointer-events: none;
}

.sublegion-hero-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(48vw, 620px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--sublegion-accent) 28%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 120px color-mix(in srgb, var(--sublegion-accent) 20%, transparent), inset 0 0 70px rgba(255, 255, 255, .035);
  opacity: .82;
}

.sublegion-hero-aura::before,
.sublegion-hero-aura::after {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--sublegion-accent) 26%, transparent);
  animation: sublegion-standard-turn 22s linear infinite;
}

.sublegion-hero-aura::after {
  inset: 24%;
  animation-direction: reverse;
  animation-duration: 15s;
}

.sublegion-war-standard {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(760px, 100%);
  display: grid;
  place-items: center;
  min-height: 530px;
}

.sublegion-war-standard > span {
  position: absolute;
  width: min(84%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--sublegion-accent) 30%, transparent) 0 2deg, transparent 2deg 13deg);
  mask: radial-gradient(circle, transparent 0 55%, #000 56% 58%, transparent 59%);
  animation: sublegion-standard-turn 18s linear infinite reverse;
}

.sublegion-war-standard img {
  position: relative;
  z-index: 2;
  width: min(72%, 450px);
  max-height: 560px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 34px 56px rgba(0, 0, 0, .74)) drop-shadow(0 0 42px color-mix(in srgb, var(--sublegion-accent) 42%, transparent));
  animation: sublegion-standard-rise .9s cubic-bezier(.16, 1, .3, 1) both, sublegion-standard-float 4.8s ease-in-out .9s infinite;
}

.sublegion-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  max-width: 980px;
  margin-top: -52px;
  text-align: center;
}

.sublegion-hero-copy h1 {
  margin: 12px 0 0;
  font-family: 'Cinzel Decorative', Cinzel, serif;
  font-size: clamp(58px, 8vw, 142px);
  line-height: .82;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 10px 0 rgba(0, 0, 0, .58), 0 0 46px color-mix(in srgb, var(--sublegion-accent) 42%, transparent);
}

.sublegion-hero-copy p {
  min-width: 0;
  max-width: 720px;
  color: #d8ced0;
  font-size: 16px;
  line-height: 1.72;
  overflow-wrap: break-word;
}

.sublegion-motto {
  margin: 22px 0 10px;
  color: #fff3d6 !important;
  font-size: clamp(22px, 2.3vw, 38px) !important;
  font-family: Cinzel, serif;
  line-height: 1.05 !important;
}

.sublegion-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.sublegion-lock-note {
  margin-top: 14px;
  color: #f2d9a0 !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sublegion-war-clock,
.sublegion-score-band {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.sublegion-war-clock {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sublegion-war-clock span,
.sublegion-score-band article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .05), color-mix(in srgb, var(--sublegion-accent) 10%, rgba(0, 0, 0, .42)));
  padding: 16px;
}

.sublegion-score-band article {
  cursor: help;
}

.sublegion-score-band article::after {
  content: attr(data-metric-tooltip);
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  padding: 9px 10px;
  border: 1px solid rgba(245, 230, 163, .22);
  border-radius: 6px;
  background: rgba(5, 5, 8, .9);
  color: #fff3d6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .42);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .2s ease;
}

.sublegion-score-band article:hover::after,
.sublegion-score-band article:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.sublegion-war-clock b,
.sublegion-score-band strong {
  display: block;
  font-family: Cinzel, serif;
  color: #fff;
  line-height: 1;
}

.sublegion-war-clock b {
  font-size: 24px;
}

.sublegion-war-clock span,
.sublegion-score-band span,
.sublegion-member-row small,
.sublegion-history-row small {
  color: var(--community-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sublegion-score-band {
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
}

.sublegion-score-band strong {
  font-size: clamp(34px, 3.4vw, 58px);
  text-shadow: 0 0 24px color-mix(in srgb, var(--sublegion-accent) 24%, transparent);
}

.sublegion-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 18px;
  margin-top: 18px;
}

.sublegion-primary-column,
.sublegion-secondary-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sublegion-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(9, 8, 10, .86), color-mix(in srgb, var(--sublegion-accent) 10%, rgba(32, 10, 12, .74)));
  padding: clamp(18px, 2.5vw, 30px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .34);
}

.sublegion-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--sublegion-accent) 72%, white), transparent);
}

.sublegion-member-table,
.sublegion-history-list,
.sublegion-rivals {
  display: grid;
  gap: 10px;
}

.sublegion-history-summary {
  display: grid;
  gap: 10px;
}

.sublegion-history-summary article {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sublegion-accent) 14%, rgba(255, 255, 255, .035)), rgba(0, 0, 0, .2)),
    rgba(255, 255, 255, .028);
  padding: 14px;
}

.sublegion-history-summary strong {
  color: #fff3d6;
  font-family: Cinzel, serif;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 22px color-mix(in srgb, var(--sublegion-accent) 26%, transparent);
}

.sublegion-history-summary span {
  color: var(--community-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sublegion-member-row {
  display: grid;
  grid-template-columns: 48px 62px minmax(210px, 1fr) repeat(3, minmax(110px, .48fr));
  gap: 12px;
  align-items: center;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  color: inherit;
  padding: 10px 12px;
  text-decoration: none;
}

.sublegion-member-row:hover {
  border-color: color-mix(in srgb, var(--sublegion-accent) 50%, rgba(255, 255, 255, .1));
  background: color-mix(in srgb, var(--sublegion-accent) 9%, rgba(255, 255, 255, .035));
}

.sublegion-viewer-row {
  border-color: color-mix(in srgb, var(--sublegion-accent) 62%, rgba(245, 230, 163, .22));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--sublegion-accent) 18%, rgba(5, 5, 8, .62)), rgba(255, 255, 255, .035)),
    rgba(255, 255, 255, .04);
  box-shadow: 0 0 34px color-mix(in srgb, var(--sublegion-accent) 13%, transparent), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.sublegion-viewer-row.has-oath-standard {
  grid-template-columns: 48px 62px minmax(250px, .68fr) 64px repeat(3, minmax(112px, .45fr));
  gap: 14px;
}

.sublegion-member-place {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--sublegion-accent) 42%, rgba(255, 255, 255, .08));
  border-radius: 50%;
  color: #fff;
  font-family: Cinzel, serif;
  font-weight: 900;
}

.sublegion-member-name strong,
.sublegion-rival strong,
.sublegion-history-row strong {
  display: block;
  color: #fff;
}

.sublegion-member-name em {
  display: block;
  margin-bottom: 4px;
  color: #f5e6a3;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1.9px;
  text-transform: uppercase;
}

.sublegion-member-rank-badge {
  justify-content: flex-start;
  margin-top: 7px;
}

.sublegion-member-legacy {
  display: block;
  margin-top: 7px;
  color: #d7c9b9 !important;
}

.sublegion-member-oath {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 48px;
  max-width: 48px;
  min-height: 52px;
  margin-left: 10px;
  line-height: 1;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.sublegion-member-oath-standard {
  display: inline-block !important;
  flex: 0 0 36px;
  width: 36px !important;
  min-width: 0 !important;
  max-width: 36px !important;
  height: 48px !important;
  min-height: 0 !important;
  max-height: 48px !important;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)) drop-shadow(0 0 12px color-mix(in srgb, var(--sublegion-accent) 34%, transparent));
  transform: none !important;
  vertical-align: middle;
}

.sublegion-member-avatar {
  width: 48px;
  height: 48px;
}

.sublegion-member-row b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 24px;
  line-height: 1;
}

.blood-value .blood-drop-icon {
  width: .82em;
  height: .82em;
  filter: drop-shadow(0 0 8px rgba(255, 42, 42, .45));
}

.sublegion-member-score b {
  color: #fff3d6;
  text-shadow: 0 0 18px color-mix(in srgb, var(--sublegion-accent) 32%, transparent);
}

.sublegion-trend-panel {
  padding: clamp(22px, 2.2vw, 34px);
}

.sublegion-trend-panel .panel-heading {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
}

.sublegion-trend-panel .panel-heading h2 {
  max-width: 820px;
  font-size: clamp(28px, 2.25vw, 42px);
  line-height: 1.02;
  letter-spacing: .02em;
}

.sublegion-trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  width: 100%;
  max-width: 1240px;
  gap: 16px;
  align-items: stretch;
  margin: 0 auto;
}

.sublegion-trend-legend {
  width: 100%;
  max-width: 1240px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 18px;
}

.sublegion-trend-legend span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: #efe7df;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.sublegion-trend-legend i {
  width: 22px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255, 58, 58, .22);
}

.trend-legend-blood {
  background: linear-gradient(90deg, #c7252d, #ff8b78);
}

.trend-legend-members {
  background: linear-gradient(90deg, #355a72, #f5e6a3);
}

.sublegion-trend-week {
  position: relative;
  min-width: 0;
  min-height: 218px;
  display: grid;
  grid-template-rows: minmax(112px, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .2)),
    color-mix(in srgb, var(--sublegion-accent) 8%, rgba(5, 5, 8, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
  outline: none;
}

.sublegion-trend-week::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 18px;
  bottom: 86px;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 100% 33.33%, 50% 100%;
  opacity: .64;
  pointer-events: none;
}

.sublegion-trend-week::after {
  content: attr(data-metric-tooltip);
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  z-index: 5;
  padding: 9px 10px;
  border: 1px solid rgba(245, 230, 163, .28);
  border-radius: 7px;
  background: rgba(5, 5, 8, .94);
  color: #fff3d6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 1.35;
  text-transform: uppercase;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .48), 0 0 18px color-mix(in srgb, var(--sublegion-accent) 18%, transparent);
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.sublegion-trend-week:hover,
.sublegion-trend-week:focus {
  border-color: color-mix(in srgb, var(--sublegion-accent) 46%, rgba(255, 255, 255, .14));
  box-shadow: 0 0 26px color-mix(in srgb, var(--sublegion-accent) 15%, transparent), inset 0 1px 0 rgba(255, 255, 255, .075);
}

.sublegion-trend-week:hover::after,
.sublegion-trend-week:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.trend-bars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
  min-height: 112px;
  padding: 8px 4px 0;
}

.trend-bars span {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  height: 100%;
}

.trend-bars span::after {
  content: "";
  position: absolute;
  inset: auto 10% 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.trend-bars i {
  position: relative;
  z-index: 1;
  width: min(38px, 76%);
  height: max(8px, var(--bar));
  border-radius: 9px 9px 3px 3px;
  background: linear-gradient(180deg, #ff8b78 0%, #c7252d 70%, #6d1015 100%);
  box-shadow: 0 0 18px rgba(255, 58, 58, .26);
}

.trend-bars .members i {
  background: linear-gradient(180deg, #f5e6a3 0%, #86b5c8 64%, #355a72 100%);
  box-shadow: 0 0 18px rgba(111, 169, 216, .22);
}

.trend-week-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  text-align: center;
}

.trend-week-copy strong {
  display: block;
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 22px;
  line-height: 1;
}

.trend-week-copy span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  color: var(--community-muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.22;
  text-transform: uppercase;
}

.trend-week-copy b {
  color: #fff3d6;
  font-size: 15px;
  letter-spacing: .3px;
  text-align: center;
}

.weekly-trophy {
  width: min(100%, 320px);
  display: block;
  margin: 8px auto 18px;
  border-radius: 12px;
  filter: drop-shadow(0 22px 45px rgba(0, 0, 0, .6)) drop-shadow(0 0 28px rgba(216, 182, 111, .2));
}

.weekly-medal-list {
  display: grid;
  gap: 12px;
}

.weekly-medal {
  --medal-color: var(--community-gold);
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--medal-color) 34%, rgba(255, 255, 255, .08));
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--medal-color) 9%, rgba(255, 255, 255, .035)), rgba(0, 0, 0, .14)),
    rgba(255, 255, 255, .026);
  padding: 14px 16px;
  color: var(--community-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.weekly-medal-rank {
  min-width: 52px;
  min-height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-right: 1px solid color-mix(in srgb, var(--medal-color) 32%, rgba(255, 255, 255, .08));
  padding-right: 14px;
}

.weekly-medal-rank b {
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 0 16px color-mix(in srgb, var(--medal-color) 38%, transparent);
}

.weekly-medal-rank span,
.weekly-medal-copy small,
.weekly-reward-pill small {
  color: var(--community-muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.weekly-medal-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.weekly-medal-copy strong {
  display: block;
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 17px;
  letter-spacing: 1.25px;
  line-height: 1.08;
  text-transform: uppercase;
}

.weekly-reward-detail {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  align-items: center;
  min-width: 0;
  border-top: 1px solid color-mix(in srgb, var(--medal-color) 18%, rgba(255, 255, 255, .07));
  padding-top: 10px;
}

.weekly-reward-pill {
  min-width: 0;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.weekly-reward-pill b {
  min-width: 0;
  overflow: hidden;
  color: #fff3d6;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-reward-pill-blood {
  display: inline-flex;
}

.weekly-reward-pill-blood .blood-drop-icon {
  align-self: center;
  width: 11px;
  height: 15px;
}

.weekly-medal-gold { --medal-color: #f5d36d; }
.weekly-medal-silver { --medal-color: #dfe3ea; }
.weekly-medal-bronze { --medal-color: #c9874e; }

.sublegion-rival {
  position: relative;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px 50px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  color: inherit;
  padding: 8px 10px;
  text-decoration: none;
}

.sublegion-rival::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  width: var(--rival-score);
  background: var(--rival-accent);
  box-shadow: 0 0 18px var(--rival-accent);
}

.sublegion-rival.is-current {
  border-color: color-mix(in srgb, var(--rival-accent) 62%, white);
}

.sublegion-rival span {
  color: #fff;
  font-family: Cinzel, serif;
  font-weight: 900;
}

.sublegion-rival img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--rival-accent) 34%, transparent));
}

.sublegion-rival b {
  color: #fff3d6;
}

.sublegion-history-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  padding: 10px;
}

.sublegion-history-row > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--sublegion-accent) 34%, rgba(255, 255, 255, .08));
  border-radius: 50%;
  color: #fff;
  font-family: Cinzel, serif;
  font-weight: 900;
}

.sublegion-history-row b {
  color: #fff3d6;
  font-family: Cinzel, serif;
}

.sublegion-history-values {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}

.sublegion-history-values span {
  display: grid;
  gap: 2px;
}

.sublegion-history-values small {
  color: var(--community-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

@keyframes sublegion-standard-turn {
  to { transform: rotate(360deg); }
}

@keyframes sublegion-standard-rise {
  from { opacity: 0; transform: translateY(30px) scale(.88); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: drop-shadow(0 34px 56px rgba(0, 0, 0, .74)) drop-shadow(0 0 42px color-mix(in srgb, var(--sublegion-accent) 42%, transparent)); }
}

@keyframes sublegion-standard-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 1180px) {
  .community-summary,
  .community-layout,
  .sublegion-hero-detail,
  .sublegion-detail-layout,
  .thread-detail-layout {
    grid-template-columns: 1fr;
  }

  .community-summary {
    grid-template-areas:
      "kicker"
      "score"
      "rewards";
  }

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

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

  .project-grid,
  .sublegion-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-side {
    grid-template-columns: 1fr 1fr;
  }

  .sublegion-score-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sublegion-trend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .weekly-medal {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .weekly-reward-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  main {
    width: calc(100% - 20px);
    max-width: 760px;
    padding-top: 168px;
  }

  .community-summary {
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .hero-copy,
  .hero-community-scoreboard,
  .forum-panel,
  .side-panel,
  .project-section,
  .sublegion-section {
    min-width: 0;
  }

  .panel-heading h2 {
    font-size: 30px;
  }

  .hero-rewards {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-weekly-rewards {
    padding: 14px;
    overflow: visible;
  }

  .hero-weekly-grid {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .hero-weekly-head {
    position: static;
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
    gap: 12px;
    pointer-events: auto;
  }

  .hero-weekly-head::after {
    display: none;
  }

  .hero-weekly-head > div:first-child {
    min-width: 0;
    padding: 0;
  }

  .hero-countdown {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .weekly-prize-top {
    min-height: 0;
    place-items: center;
  }

  .weekly-trophy-stage {
    width: 76px;
    height: 76px;
  }

  .weekly-trophy-image {
    width: 54px;
    height: 54px;
  }

  .weekly-prize-place {
    top: 4px;
    right: 4px;
    left: auto;
    order: -1;
  }

  .weekly-prize {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 0;
    padding: 10px;
  }

  .weekly-prize-gold,
  .weekly-prize-silver,
  .weekly-prize-bronze {
    grid-column: auto;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .weekly-prize-silver .weekly-trophy-stage,
  .weekly-prize-bronze .weekly-trophy-stage {
    width: 76px;
    height: 76px;
  }

  .weekly-prize-silver .weekly-trophy-image,
  .weekly-prize-bronze .weekly-trophy-image {
    width: 54px;
    height: 54px;
  }

  .weekly-prize-rewards {
    grid-template-columns: 1fr;
  }

  .weekly-prize-rewards,
  .weekly-prize-silver .weekly-prize-rewards,
  .weekly-prize-bronze .weekly-prize-rewards {
    flex-direction: column;
    gap: 9px;
  }

  .weekly-reward-copy small {
    letter-spacing: .8px;
    line-height: 1.08;
  }

  .weekly-reward-copy b {
    overflow-wrap: normal;
    word-break: normal;
  }

  .weekly-prize strong {
    font-size: 16px;
    text-align: left;
  }

  .weekly-collectible-tooltip {
    left: 0;
    right: 0;
  }

  .sublegion-podium {
    min-height: 0;
  }

  .podium-card,
  .podium-card-1,
  .podium-card-2,
  .podium-card-3 {
    min-height: 0;
    order: initial;
  }

  .podium-card img,
  .podium-card-1 img {
    height: 150px;
  }

  .identity-strip,
  .hall-grid,
  .sublegion-podium,
  .hero-mini-stats,
  .editor-media,
  .thread-media-grid,
  .thread-media-grid--detail,
  .project-grid,
  .sublegion-grid,
  .community-side {
    grid-template-columns: 1fr;
  }

  .compose-box,
  .forum-search,
  .thread-actions {
    grid-template-columns: 1fr;
  }

  .project-form {
    grid-template-columns: 1fr;
  }

  .project-form .quiet-button {
    grid-column: 1 / -1;
  }

  .compose-intro,
  .compose-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .compose-active-hall {
    min-width: 0;
  }

  .compose-field--title {
    grid-column: auto;
  }

  .compose-submit-row .blood-button {
    width: 100%;
    min-width: 0;
  }

  .thread-cta-row,
  .thread-author-line,
  .thread-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .thread-detail-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .thread-detail-toolbar {
    position: static;
  }

  .thread-detail-author-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .community-user-card--thread-author {
    flex: 0 1 auto;
  }

  .reply-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .reply-editor-title {
    align-items: stretch;
    flex-direction: column;
  }

  .reply-editor-tabs {
    width: 100%;
  }

  .reply-editor-tabs button {
    flex: 1 1 0;
  }

  .reply-editor-tools {
    min-width: 0;
    justify-content: flex-start;
  }

  .reply-editor-tools .moderation-button {
    flex: 0 1 auto;
  }

  .reply-editor-dropzone > p,
  .related-thread strong {
    overflow-wrap: anywhere;
  }

  .reply-editor-media {
    grid-template-columns: 1fr;
  }

  .reply-editor-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .reply-editor-foot .blood-button {
    width: 100%;
    min-width: 0;
  }

  .thread-open-button,
  .thread-jump-button,
  .thread-action-bar .like-button {
    width: 100%;
    margin-left: 0;
  }

  .thread-detail-hero h1 {
    font-size: clamp(24px, 8vw, 34px);
    overflow-wrap: anywhere;
  }

  .thread-reply {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .thread-reply > .moderation-editor--reply {
    grid-column: 1;
  }

  .thread-moderation-actions {
    grid-template-columns: 1fr;
  }

  .thread-reply-copy {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 12px 0 0;
  }

  .sublegion-card {
    min-height: 0;
  }

  .sublegion-card img {
    min-height: 260px;
    max-height: 360px;
  }

  .sublegion-hero-detail {
    min-height: 0;
    padding: 28px 18px;
  }

  .sublegion-main,
  .sublegion-hero-detail,
  .sublegion-panel,
  .sublegion-hero-copy,
  .panel-heading {
    min-width: 0;
    max-width: 100%;
  }

  .sublegion-main {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    overflow: hidden;
  }

  .sublegion-hero-aura {
    left: 50%;
    top: 170px;
    width: min(86vw, 340px);
    transform: translate(-50%, -50%);
  }

  .sublegion-war-standard {
    min-height: 320px;
  }

  .sublegion-war-standard > span {
    width: min(90%, 310px);
  }

  .sublegion-war-standard img {
    width: min(82%, 290px);
    max-height: 330px;
  }

  .sublegion-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(36px, 12.5vw, 48px);
    line-height: .88;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-shadow: 0 7px 0 rgba(0, 0, 0, .58), 0 0 34px color-mix(in srgb, var(--sublegion-accent) 42%, transparent);
  }

  .sublegion-motto {
    font-size: 22px !important;
  }

  .sublegion-hero-copy p {
    max-width: min(100%, calc(100vw - 78px));
    font-size: 14px;
    line-height: 1.58;
    overflow-wrap: anywhere;
  }

  .panel-heading h2 {
    max-width: 100%;
    font-size: clamp(28px, 8.6vw, 34px);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .panel-heading p {
    max-width: min(100%, calc(100vw - 78px));
    overflow-wrap: anywhere;
  }

  .sublegion-war-clock,
  .sublegion-score-band,
  .sublegion-member-row {
    grid-template-columns: 1fr;
  }

  .sublegion-viewer-row.has-oath-standard {
    grid-template-columns: 1fr;
  }

  .sublegion-member-row {
    text-align: left;
  }

  .sublegion-member-oath {
    justify-self: start;
    margin-left: 0;
  }

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

  .weekly-medal {
    grid-template-columns: 1fr;
  }

  .weekly-medal-rank {
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: start;
    place-items: center start;
    min-height: 52px;
    padding: 0 12px;
  }

  .weekly-medal-rank b {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .identity-sublegion-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
  }

  .identity-sublegion-standard {
    width: 38px;
    height: 42px;
  }

  .identity-sublegion-banner {
    width: 31px;
    height: 38px;
  }

  .identity-sublegion-row strong {
    font-size: 18px;
  }

  .identity-sublegion-pledged {
    grid-column: 2;
    min-height: 31px;
    gap: 4px;
    justify-self: start;
    padding: 0 7px;
  }

  .identity-sublegion-pledged .blood-drop-icon {
    width: 10px;
    height: 13px;
    flex-basis: 10px;
  }

  .identity-sublegion-pledged small {
    font-size: 9px;
    letter-spacing: .5px;
  }

  .identity-sublegion-pledged b {
    font-size: 14px;
  }

  .sublegion-hero-copy p,
  .panel-heading p {
    max-width: 280px;
  }

  .sublegion-panel {
    padding-right: 22px;
  }

  .sublegion-trend-grid {
    grid-template-columns: 1fr;
  }

  .sublegion-trend-week {
    min-height: 226px;
  }
}

@media (max-width: 980px) {
  .weekly-results-main {
    width: min(calc(100% - 28px), 720px);
    padding-top: 184px;
  }

  .weekly-results-hero,
  .weekly-results-week-head {
    align-items: start;
    flex-direction: column;
  }

  .weekly-results-hero > div {
    min-width: 0;
    width: 100%;
  }

  .weekly-results-grid {
    grid-template-columns: 1fr;
  }

  .weekly-result-card,
  .weekly-result-card-1 {
    min-height: auto;
  }

  .collection-modal-panel,
  .collection-modal-panel.is-wide,
  .collection-modal-panel.is-square,
  .collection-modal-panel.is-portrait {
    --modal-panel-width: min(100%, calc(100vw - 32px));
    grid-template-columns: 1fr;
    max-height: calc(100vh - 56px);
    overflow: auto;
  }

  .collection-modal-panel .collection-modal-image,
  .collection-modal-panel.is-wide .collection-modal-image {
    height: auto;
    min-height: 0;
    max-height: 58vh;
    aspect-ratio: var(--modal-image-ratio);
    border-right: 0;
    border-bottom: 1px solid rgba(245, 230, 163, .12);
  }

  .collection-modal-panel .collection-modal-image::after {
    background: linear-gradient(180deg, transparent 68%, rgba(5, 5, 8, .46));
  }
}

@media (max-width: 620px) {
  .weekly-results-hero {
    padding-top: 0;
  }

  .weekly-results-hero h1 {
    display: block !important;
    position: static !important;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 6px;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7;
    font-size: clamp(32px, 10vw, 40px);
    line-height: 1;
    transform: none !important;
    opacity: 1 !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .weekly-results-hero p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .weekly-results-week-head,
  .weekly-results-grid,
  .weekly-result-card {
    padding: 16px;
  }

  .weekly-result-rewards {
    grid-template-columns: 1fr;
  }

  .weekly-result-standard {
    width: min(240px, 78%);
  }

  .weekly-result-trophy {
    width: 56px;
  }

  .collection-modal {
    padding: 14px;
  }

  .collection-modal-copy {
    padding: 20px;
  }

  .collection-modal-title {
    margin-right: 34px;
    font-size: clamp(28px, 10vw, 38px);
  }

  .collection-modal-meta,
  .collection-modal-actions {
    grid-template-columns: 1fr;
  }

  .hero-weekly-head--podium {
    align-items: stretch;
  }
}
