:root {
  color-scheme: dark;
  --bg: #120f1f;
  --bg-2: #1a1530;
  --panel: #241d3f;
  --panel-soft: #2d2550;
  --text: #f6f0ea;
  --muted: #cec2e6;
  --accent: #9b6dff;
  --accent-2: #c7a8ff;
  --line: rgba(173, 132, 255, 0.2);
  --line-soft: rgba(173, 132, 255, 0.1);
  --radius: 12px;
  --header-h: 92px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(155, 109, 255, 0.14), transparent 30rem),
    linear-gradient(180deg, rgba(14, 9, 8, 0.82), rgba(14, 9, 8, 0.96)),
    url("assets/runeveil-background.png") center top / cover fixed,
    var(--bg);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.55;
  padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
}

.social-link[href=""] {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(26, 17, 14, 0.9);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(100%, var(--max));
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand-mark {
  display: grid;
  grid-template-columns: 56px auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.brand-word {
  min-width: 0;
  display: grid;
  line-height: 1;
}

.brand-word strong {
  font-size: clamp(1.5rem, 2.1vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff6ee;
}

.brand-word em {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  color: #e0c6b2;
  margin-left: 2px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #e9d6c7;
  padding: 8px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-2);
  outline: none;
}

.nav-discord,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-discord,
.button-primary {
  background: #7a57c8;
  color: #fff8f0;
  border-color: #9b6dff;
}

.button-secondary,
.button-small,
.collapse-toggle {
  background: #211a34;
  color: var(--accent-2);
  border-color: var(--line);
}

.nav-discord:hover,
.nav-discord:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: #8963de;
  transform: translateY(-1px);
  outline: none;
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-small:hover,
.button-small:focus-visible,
.collapse-toggle:hover,
.collapse-toggle:focus-visible {
  background: #2a2142;
  border-color: rgba(173, 132, 255, 0.36);
  transform: translateY(-1px);
  outline: none;
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 22px 40px;
}

.hero {
  position: relative;
  min-height: clamp(500px, calc(100vh - 150px), 700px);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow:
    0 0 0 1px var(--line-soft) inset,
    0 18px 48px rgba(0, 0, 0, 0.4);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(1.05) contrast(1.02) blur(1.2px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 13, 11, 0.9), rgba(20, 13, 11, 0.6) 52%, rgba(20, 13, 11, 0.24)),
    linear-gradient(180deg, rgba(20, 13, 11, 0.24), rgba(20, 13, 11, 0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 740px);
  padding: clamp(44px, 8vw, 88px);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 62ch;
  color: #e5d5c7;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.hero-sublead {
  color: #d7c2b2;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section {
  margin-top: 36px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 2%, rgba(155, 109, 255, 0.14), transparent 20rem),
    linear-gradient(180deg, rgba(39, 30, 66, 0.95), rgba(30, 24, 52, 0.96));
  box-shadow:
    0 0 0 1px var(--line-soft) inset,
    0 14px 34px rgba(0, 0, 0, 0.32);
  padding: clamp(24px, 4.5vw, 42px);
}

.section-title h2 {
  font-size: clamp(1.45rem, 3.1vw, 2.3rem);
}

.section-title p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 66ch;
}

.realm-grid,
.steps-grid,
.feature-grid,
.info-grid,
.banned-grid,
.hub-grid {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.realm-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.banned-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.realm-card,
.steps-grid article,
.feature-grid article,
.info-grid article,
.banned-card,
.hub-card,
.detail-copy,
.detail-list {
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}

.realm-card {
  overflow: hidden;
}

.realm-image-wrap {
  aspect-ratio: 16 / 9;
}

.realm-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.realm-body {
  padding: 18px;
  display: grid;
  gap: 11px;
}

.realm-body h3 {
  font-size: clamp(1.18rem, 1.9vw, 1.6rem);
}

.realm-body p,
.steps-grid article p,
.feature-grid article p,
.info-grid article p,
.banned-card p,
.detail-copy p,
.detail-list p,
.hub-card p,
.empty-state {
  margin: 0;
  color: #d8c6b8;
}

.server-ip {
  padding: 10px;
  border-radius: 8px;
  background: var(--panel-soft);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}

.server-ip span {
  display: block;
  color: var(--accent-2);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.server-ip code {
  font-family: Consolas, "Courier New", monospace;
  color: #fff3e8;
  overflow-wrap: anywhere;
}

.realm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.7rem;
}

.copy-status {
  min-height: 18px;
  margin: 0;
  color: #c7a8ff;
  font-size: 0.82rem;
}

.steps-grid article,
.feature-grid article,
.info-grid article,
.banned-card,
.hub-card,
.detail-copy,
.detail-list {
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.steps-grid article span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(155, 109, 255, 0.2);
  color: var(--accent-2);
  font-weight: 700;
}

.banned-summary {
  margin-top: 20px;
  padding: 20px;
  border-radius: 10px;
  background: var(--panel-soft);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.collapse-toggle {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

.toggle-mark {
  margin-left: 8px;
}

.banned-content {
  margin-top: 12px;
}

.banned-content[hidden] {
  display: none;
}

.banned-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.banned-item {
  padding: 10px;
  border-radius: 8px;
  background: #221b38;
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}

.banned-item-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.banned-item h4 {
  margin: 0;
  font-size: 0.92rem;
}

.banned-item-meta,
.banned-item-reason,
.banned-item-note {
  margin: 6px 0 0;
  color: #cec2e2;
  font-size: 0.88rem;
}

.restriction-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 0.68rem;
  color: var(--accent-2);
  background: rgba(155, 109, 255, 0.2);
  text-transform: uppercase;
}

.threshold-panel {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.page-hero {
  padding: clamp(28px, 5vw, 44px);
}

.page-hero h1 {
  font-size: clamp(2.05rem, 5.2vw, 3.8rem);
}

.detail-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 26px);
  align-items: stretch;
}

.detail-split.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.detail-split.reverse .detail-image {
  order: 2;
}

.detail-split.reverse .detail-copy,
.detail-split.reverse .detail-list {
  order: 1;
}

.detail-image {
  min-height: 280px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.realm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 24px);
}

.realm-hero .detail-image {
  min-height: 330px;
}

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 20px 22px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: #baa897;
}

.footer-copy {
  color: #fff0e0;
  margin-right: 10px;
}

.site-footer a {
  color: #c7b4a3;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-2);
  outline: none;
}

.hero-content,
.section,
.realm-card,
.steps-grid article,
.feature-grid article,
.info-grid article,
.banned-summary,
.banned-card,
.threshold-panel,
.hub-card,
.detail-copy,
.detail-list,
.detail-image {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.realm-grid .realm-card:nth-child(2),
.feature-grid article:nth-child(2),
.info-grid article:nth-child(2),
.hub-card:nth-child(2) {
  transition-delay: 70ms;
}

.realm-grid .realm-card:nth-child(3),
.feature-grid article:nth-child(3),
.info-grid article:nth-child(3) {
  transition-delay: 140ms;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: minmax(220px, auto) 1fr;
  }

  .nav-discord {
    display: none;
  }

  .realm-grid,
  .steps-grid,
  .feature-grid,
  .info-grid,
  .banned-grid,
  .detail-split,
  .detail-split.reverse,
  .realm-hero {
    grid-template-columns: 1fr;
  }

  .detail-split.reverse .detail-image,
  .detail-split.reverse .detail-copy,
  .detail-split.reverse .detail-list {
    order: initial;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 126px;
  }

  body {
    background-attachment: scroll;
    padding-top: calc(var(--header-h) + 12px);
  }

  .header-inner {
    padding: 10px 12px;
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .brand-mark {
    justify-self: center;
  }

  .site-nav {
    justify-content: center;
    gap: 6px 12px;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  main,
  .site-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero {
    min-height: 440px;
  }

  .hero-content {
    padding: 30px 22px;
  }

  .hero-actions {
    display: grid;
    width: 100%;
  }

  .button,
  .button-small,
  .nav-discord {
    width: 100%;
  }

  .banned-summary {
    grid-template-columns: 1fr;
  }

  .threshold-panel {
    justify-items: stretch;
  }

  .detail-image,
  .realm-hero .detail-image {
    min-height: 210px;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    grid-template-columns: 46px auto;
    gap: 10px;
  }

  .brand-icon {
    width: 46px;
    height: 46px;
  }

  .brand-word strong {
    font-size: 1.34rem;
  }

  .brand-word em {
    letter-spacing: 0.28em;
  }

  h1 {
    font-size: clamp(1.95rem, 10.2vw, 2.6rem);
  }
}

.minimal-home {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    linear-gradient(180deg, rgba(16, 12, 27, 0.92), rgba(16, 12, 27, 0.97)),
    url("assets/runeveil-background.png") center top / cover fixed;
  overflow-x: hidden;
}

.brand-mark.text-only {
  grid-template-columns: 50px auto;
  gap: 12px;
  align-items: center;
}

.brand-favicon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: none;
}

.minimal-home .brand-word em {
  margin-left: 0;
}

.home-canvas {
  width: min(100%, var(--max));
  margin: 0 auto;
  min-height: auto;
  padding: 0 22px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.home-basic-inner {
  width: min(100%, 980px);
  margin: 0 auto;
  background: transparent;
  border: 0;
}

.home-basic {
  border: 0;
  background: transparent;
}

.home-basic {
  padding: 28px;
  text-align: center;
}

.home-basic-kicker {
  margin: 0;
  color: #c7a8ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-basic h1 {
  margin: 10px 0 0;
  color: #f2eaff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.home-basic-lead {
  margin: 14px 0 0;
  max-width: 60ch;
  color: #d7c8ed;
  line-height: 1.65;
  margin-left: auto;
  margin-right: auto;
}

.home-basic-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.home-feature-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-feature-card {
  border: 1px solid rgba(141, 105, 226, 0.22);
  background: rgba(29, 22, 47, 0.62);
  padding: 14px;
  text-align: left;
}

.home-feature-card h3 {
  margin: 0;
  color: #f2eaff;
  font-size: 1.06rem;
}

.home-feature-card p {
  margin: 8px 0 0;
  color: #d3c4ea;
  line-height: 1.6;
}

.design-nav {
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.design-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: #e3cdbb;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(56, 38, 30, 0.36);
}

.design-pill {
  display: inline-flex;
}

.minimal-footer {
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  border-top: 1px solid var(--line);
  background: rgba(25, 17, 14, 0.82);
  padding-top: 16px;
  padding-bottom: 20px;
}

.minimal-footer span {
  color: #ceb9aa;
  font-size: 0.88rem;
}

/* Header replication pass for design-only home */
.minimal-home {
  padding-top: 76px;
}

.minimal-home .site-header {
  height: 76px;
  border-bottom: 1px solid rgba(141, 105, 226, 0.42);
  background: rgba(23, 17, 39, 0.94);
}

.minimal-home .header-inner {
  width: min(100%, 1240px);
  padding: 0 20px;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  gap: 20px;
}

.brand-mark.logo-only {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-horizontal-logo {
  width: clamp(150px, 16vw, 220px);
  height: auto;
  object-fit: contain;
}

.minimal-home .brand-word strong {
  font-size: clamp(1.42rem, 1.9vw, 2rem);
  letter-spacing: 0;
}

.minimal-home .brand-word em {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
}

.design-nav {
  flex-wrap: nowrap;
  gap: 12px 32px;
}

.design-nav .nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: #c8b5e7;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
}

.design-nav .nav-item:hover,
.design-nav .nav-item:focus-visible {
  color: #e6d7ff;
  outline: none;
}

.design-nav .nav-item.active {
  color: #e6d7ff;
}

.nav-store {
  gap: 6px;
}

.store-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.design-pill {
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 176px;
  min-height: 46px;
  border-radius: 0;
  border: 1px solid #7359b0;
  background: #4d3a7d;
  color: #f2eaff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
  .minimal-home .header-inner {
    grid-template-columns: minmax(170px, auto) 1fr;
    gap: 14px;
  }

  .brand-horizontal-logo {
    width: clamp(140px, 22vw, 188px);
  }

  .design-nav {
    justify-content: flex-end;
    gap: 10px 16px;
  }

  .design-nav .nav-item {
    font-size: 0.75rem;
  }

  .design-pill {
    display: none;
  }
}

.discord-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discord-icon-solid {
  width: 17px;
  height: 17px;
  color: currentColor;
}

.minimal-footer {
  width: 100%;
  display: block;
  padding: 20px 0 22px;
  border-top: 1px solid rgba(173, 132, 255, 0.24);
  background: rgba(27, 20, 44, 0.92);
}

.footer-top-nav,
.footer-bottom {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 22px;
}

.footer-top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 30px;
}

.footer-single-line {
  flex-wrap: nowrap;
}

.footer-top-nav span,
.footer-top-nav a {
  color: #b8a696;
  font-size: 0.88rem;
}

.footer-top-nav a:hover,
.footer-top-nav a:focus-visible {
  color: #f3deca;
  outline: none;
}

.footer-copy {
  color: #8f7f73;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 8px;
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-left: 26px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  color: #efe2d8;
  background: transparent;
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  color: #fff8f0;
  outline: none;
}

@media (max-width: 760px) {
  .minimal-home {
    padding-top: 110px;
  }

  .minimal-home .site-header {
    height: 110px;
  }

  .minimal-home .header-inner {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .brand-horizontal-logo {
    width: clamp(150px, 46vw, 220px);
  }

  .design-nav {
    gap: 6px 18px;
  }

  .design-pill {
    min-width: 100%;
    min-height: 40px;
  }

  .minimal-footer {
    padding-bottom: 18px;
  }

  .footer-top-nav,
  .footer-bottom {
    padding: 0 12px;
  }

  .footer-single-line {
    flex-wrap: wrap;
  }

  .home-canvas {
    padding: 14px 12px 22px;
  }

  .home-basic {
    padding: 16px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* RuneVeil home page layout */
.rv-home {
  width: 100%;
  margin: 0;
  padding: 0 0 64px;
}

.rv-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 20px;
}

.rv-hero {
  padding: 26px 0 28px;
}

.rv-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.rv-hero-copy,
.rv-news-card,
.rv-news-poster,
.rv-feature-card,
.rv-network-features,
.rv-lore {
  border: 1px solid rgba(141, 105, 226, 0.25);
  background: linear-gradient(180deg, rgba(18, 13, 31, 0.9), rgba(18, 13, 31, 0.82));
}

.rv-hero-copy {
  padding: 34px;
}

.rv-version,
.rv-kicker {
  margin: 0;
  color: #c7a8ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rv-home h1,
.rv-home h2,
.rv-home h3 {
  margin: 0;
  color: #f2eaff;
  line-height: 1.12;
}

.rv-home h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.rv-home h2 {
  font-size: clamp(1.42rem, 2.5vw, 2.1rem);
}

.rv-home h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.34rem);
}

.rv-lead {
  margin: 16px 0 0;
  color: #e0d3f3;
  max-width: 62ch;
  line-height: 1.68;
}

.rv-lead-soft {
  color: #c9badf;
}

.rv-hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rv-hero-actions .button {
  min-width: 170px;
}

.rv-quick-start {
  padding: 0 0 14px;
}

.rv-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rv-quick-card {
  display: block;
  padding: 20px;
  border: 1px solid rgba(141, 105, 226, 0.25);
  background: linear-gradient(180deg, rgba(18, 13, 31, 0.9), rgba(18, 13, 31, 0.82));
}

.rv-quick-card h2 {
  font-size: 1.2rem;
}

.rv-quick-card p {
  margin: 8px 0 0;
  color: #d4c5ea;
  line-height: 1.62;
}

.rv-quick-card:hover,
.rv-quick-card:focus-visible {
  border-color: rgba(199, 168, 255, 0.45);
  background: linear-gradient(180deg, rgba(26, 18, 45, 0.94), rgba(20, 14, 35, 0.86));
  outline: none;
}

.rv-news {
  padding: 14px 0;
}

.rv-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.rv-news-card {
  padding: 30px;
}

.rv-news-card h2 {
  margin-top: 8px;
}

.rv-news-title {
  display: inline-block;
  margin-top: 14px;
  color: #f2eaff;
  font-size: 1.34rem;
  font-weight: 700;
}

.rv-news-title:hover,
.rv-news-title:focus-visible,
.rv-news-more:hover,
.rv-news-more:focus-visible {
  color: #d9c0ff;
  outline: none;
}

.rv-news-summary {
  margin: 10px 0 0;
  color: #d4c5ea;
  line-height: 1.65;
}

.rv-news-date {
  margin: 10px 0 0;
  color: #b9a8d4;
  font-size: 0.9rem;
}

.rv-news-more {
  display: inline-flex;
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #c7a8ff;
  font-weight: 600;
}

.rv-network-features {
  margin: 14px auto 0;
  padding: 30px;
}

.rv-network-features h2 {
  margin-bottom: 16px;
}

.rv-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.rv-feature-list article {
  position: relative;
  padding: 14px 14px 14px 24px;
  border: 1px solid rgba(141, 105, 226, 0.2);
  background: rgba(29, 22, 47, 0.62);
}

.rv-feature-list article::before {
  content: "✦";
  position: absolute;
  left: 10px;
  top: 12px;
  color: #c7a8ff;
}

.rv-feature-list p {
  margin: 7px 0 0;
  color: #d2c3e8;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .rv-hero-grid,
  .rv-news-grid,
  .rv-quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rv-shell {
    padding: 0 12px;
  }

  .rv-hero-copy,
  .rv-news-card,
  .rv-network-features,
  .rv-quick-card {
    padding: 18px;
  }

  .rv-feature-list {
    grid-template-columns: 1fr;
  }

  .rv-news-title {
    font-size: 1.1rem;
  }
}

.modpack-page {
  min-height: 100vh;
  padding-top: 76px;
  background:
    linear-gradient(180deg, rgba(17, 12, 28, 0.76), rgba(17, 12, 28, 0.96)),
    url("assets/runeveil-background.png") center top / cover fixed,
    #120f1f;
}

.modpack-page .site-header {
  height: 76px;
  border-bottom: 1px solid rgba(141, 105, 226, 0.42);
  background: rgba(23, 17, 39, 0.94);
}

.modpack-page .header-inner {
  width: min(100%, 1240px);
  padding: 0 20px;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  gap: 20px;
}

.modpack-page .design-nav {
  flex-wrap: nowrap;
  gap: 12px 32px;
}

.modpack-page .design-nav .nav-item {
  color: #c8b5e7;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.modpack-page .design-nav .nav-item:hover,
.modpack-page .design-nav .nav-item:focus-visible,
.modpack-page .design-nav .nav-item.active {
  color: #e6d7ff;
}

.modpack-page .design-pill {
  min-width: 176px;
  min-height: 46px;
  border: 1px solid #7359b0;
  background: #4d3a7d;
  color: #f2eaff;
}

.modpack-main {
  width: 100%;
  margin: 0;
  padding: 0 0 56px;
}

.modpack-inner {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 0 18px;
}

.modpack-hero {
  display: block;
  background:
    linear-gradient(180deg, rgba(12, 9, 22, 0.76), rgba(12, 9, 22, 0.78)),
    url("assets/runeveil-background.png") center 32% / cover fixed;
  border-bottom: 1px solid rgba(173, 132, 255, 0.2);
}

.modpack-hero .modpack-inner {
  padding-top: 46px;
  padding-bottom: 52px;
  display: grid;
  gap: 18px;
}

.modpack-intro {
  max-width: 920px;
  margin: 0 auto 4px;
  text-align: center;
}

.modpack-hero h1,
.modpack-hero h2,
.modpack-faq h2 {
  margin: 0;
  color: #f2eaff;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
}

.modpack-hero p,
.faq-item p {
  margin: 14px 0 0;
  color: #d3c4eb;
  line-height: 1.7;
}

.modpack-hero h2 {
  text-align: center;
  margin-bottom: 4px;
}

.modpack-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  background: rgba(15, 12, 26, 0.8);
  border: 1px solid rgba(173, 132, 255, 0.2);
  overflow: hidden;
}

.modpack-card-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.modpack-card-body {
  padding: clamp(18px, 3vw, 24px);
  display: grid;
  align-content: start;
  gap: 12px;
}

.modpack-card-body h3 {
  margin: 0;
  color: #f2eaff;
  font-size: clamp(1.25rem, 2.1vw, 1.56rem);
}

.modpack-card-body p {
  margin: 0;
  color: #d3c4eb;
}

.modpack-ip-row {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.modpack-ip-row span {
  color: #bba2e8;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modpack-ip-row code {
  color: #f2eaff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.94rem;
}

.modpack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modpack-actions .mini-action {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 0;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.modpack-card .copy-status {
  min-height: 18px;
  font-size: 0.8rem;
}

.modpack-download {
  margin: 26px auto 0;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #8a6ad0;
  background: #5b4691;
  color: #f2eaff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modpack-download img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.modpack-download:hover,
.modpack-download:focus-visible {
  background: #6a53a6;
  outline: none;
}

.modpack-faq {
  padding-top: clamp(34px, 5vw, 52px);
}

.modpack-faq {
  background:
    linear-gradient(180deg, rgba(19, 14, 31, 0.95), rgba(19, 14, 31, 0.9)),
    url("assets/runeveil-background.png") center 62% / cover fixed;
}

.modpack-faq .modpack-inner {
  display: grid;
  gap: 12px;
}

.modpack-faq h2 {
  text-align: center;
  margin-bottom: 8px;
}

.faq-item {
  border: 1px solid rgba(173, 132, 255, 0.18);
  background: rgba(15, 12, 26, 0.78);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  color: #f2eaff;
  font-size: 0.9rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  width: 16px;
  flex: 0 0 16px;
  color: #c7a8ff;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

.faq-item[open] summary::before {
  content: "-";
}

.faq-item summary img {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transform: rotate(-90deg);
  transition: transform 160ms ease;
  filter: brightness(0) saturate(100%) invert(91%) sepia(9%) saturate(1035%) hue-rotate(215deg) brightness(101%) contrast(93%);
}

.faq-item[open] summary img {
  transform: rotate(0deg);
}

.faq-item p {
  margin: 0;
  padding: 0 15px 15px;
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .modpack-page .header-inner {
    grid-template-columns: minmax(170px, auto) 1fr;
    gap: 14px;
  }

  .modpack-page .design-nav {
    justify-content: flex-end;
    gap: 10px 16px;
  }

  .modpack-page .design-nav .nav-item {
    font-size: 0.75rem;
  }

  .modpack-page .design-pill {
    display: none;
  }

  .modpack-card {
    grid-template-columns: 1fr;
  }

  .modpack-card-image {
    min-height: 180px;
    max-height: 220px;
  }
}

@media (max-width: 760px) {
  .modpack-page {
    padding-top: 110px;
  }

  .modpack-page .site-header {
    height: 110px;
  }

  .modpack-page .header-inner {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .modpack-page .brand-horizontal-logo {
    width: clamp(150px, 46vw, 220px);
  }
}

.rules-page {
  min-height: 100vh;
  padding-top: 88px;
  background:
    linear-gradient(180deg, rgba(16, 12, 27, 0.92), rgba(16, 12, 27, 0.97)),
    url("assets/runeveil-background.png") center top / cover fixed;
}

.rules-page .site-header {
  height: 76px;
  border-bottom: 1px solid rgba(141, 105, 226, 0.42);
  background: rgba(23, 17, 39, 0.94);
}

.rules-page .header-inner {
  width: min(100%, 1240px);
  padding: 0 20px;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  gap: 20px;
}

.rules-page .design-nav {
  flex-wrap: nowrap;
  gap: 12px 32px;
}

.rules-page .design-nav .nav-item {
  color: #c8b5e7;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.rules-page .design-nav .nav-item:hover,
.rules-page .design-nav .nav-item:focus-visible,
.rules-page .design-nav .nav-item.active {
  color: #e6d7ff;
}

.rules-page .design-pill {
  min-width: 176px;
  min-height: 46px;
  border: 1px solid #7359b0;
  background: #4d3a7d;
  color: #f2eaff;
}

.rules-main {
  width: 100%;
  margin: 0;
  padding: 24px 0 56px;
}

.rules-inner {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 0 18px;
}

.rules-intro,
.rules-section {
  margin-top: 18px;
}

.rules-intro h1,
.rules-section h2 {
  margin: 0;
  color: #f2eaff;
}

.rules-intro h1 {
  font-size: clamp(1.7rem, 2.9vw, 2.3rem);
}

.rules-section h2 {
  font-size: clamp(1.28rem, 2.3vw, 1.78rem);
}

.rules-intro p,
.rules-section > .rules-inner > p {
  margin: 12px 0 0;
  color: #ddd0f0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.rules-intro a {
  color: #c7a8ff;
  text-decoration: underline;
}

.rules-item {
  margin-top: 8px;
  border: 1px solid rgba(141, 105, 226, 0.6);
  background: rgba(95, 72, 153, 0.9);
}

.rules-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 16px;
  color: #f2eaff;
  font-size: 0.9rem;
  font-weight: 600;
}

.rules-item summary::after {
  content: "\2304";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
  color: #d1bbff;
  font-size: 1rem;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 160ms ease;
}

.rules-item[open] summary::after {
  transform: rotate(180deg);
}

.rules-item summary::-webkit-details-marker {
  display: none;
}

.rules-item-content {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(141, 105, 226, 0.65);
  background: rgba(36, 26, 47, 0.92);
  color: #ddd0f0;
}

.rules-item-content h3,
.rules-item-content h4 {
  margin: 8px 0 0;
  color: #f2eaff;
}

.rules-item-content h3 {
  font-size: 1.08rem;
}

.rules-item-content h4 {
  font-size: 0.95rem;
}

.rules-item-content p {
  margin: 8px 0 0;
}

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

.rules-banned-grid > section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(141, 105, 226, 0.34);
  background: rgba(18, 13, 31, 0.7);
}

.rules-banned-grid h4 {
  margin: 0 0 8px;
}

.rules-banned-grid .banned-item {
  padding: 10px 0;
  border-top: 1px solid rgba(141, 105, 226, 0.24);
}

.rules-banned-grid .banned-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.rules-banned-grid .banned-item h4,
.rules-banned-grid .banned-item p {
  margin: 0;
}

.restriction-badge {
  color: #d7b969;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.banned-item-meta,
.banned-item-note,
.empty-state {
  color: #ad9dc4;
  font-size: 0.78rem;
}

.rules-hide-list {
  color: #c7a8ff;
  font-weight: 600;
}

.rules-section-last {
  padding-bottom: 14px;
}

@media (max-width: 980px) {
  .rules-page .header-inner {
    grid-template-columns: minmax(170px, auto) 1fr;
    gap: 14px;
  }

  .rules-page .design-nav {
    justify-content: flex-end;
    gap: 10px 16px;
  }

  .rules-page .design-nav .nav-item {
    font-size: 0.75rem;
  }

  .rules-page .design-pill {
    display: none;
  }
}

@media (max-width: 760px) {
  .rules-page {
    padding-top: 120px;
  }

  .rules-page .site-header {
    height: 110px;
  }

  .rules-page .header-inner {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .rules-page .brand-horizontal-logo {
    width: clamp(150px, 46vw, 220px);
  }

  .rules-item summary {
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .rules-banned-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-basic h1 {
    font-size: 2rem;
  }

  .home-basic {
    padding: 12px 4px 18px;
  }

  .footer-top-nav {
    gap: 10px 16px;
  }
}

/* Expanded compact homepage */
.home-expanded-section {
  border-top: 1px solid rgba(173, 132, 255, 0.16);
  padding: 46px 0;
}

.home-expanded-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 18px;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 24px;
}

.home-section-heading.compact {
  margin-bottom: 20px;
}

.home-section-heading h2,
.home-community-copy h2 {
  margin: 8px 0 0;
  color: #f2eaff;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.home-section-heading > p,
.home-community-copy > p {
  margin: 0;
  color: #d3c4ea;
  line-height: 1.7;
}

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

.home-realm-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(141, 105, 226, 0.24);
  background: rgba(20, 15, 34, 0.82);
  transition: border-color 180ms ease, transform 180ms ease;
}

.home-realm-card:hover {
  border-color: rgba(173, 132, 255, 0.5);
  transform: translateY(-2px);
}

.home-realm-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(141, 105, 226, 0.2);
}

.home-realm-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.home-realm-card:hover .home-realm-image img {
  transform: scale(1.025);
}

.home-realm-body {
  padding: 16px;
}

.home-realm-type {
  margin: 0 0 6px;
  color: #b99de9;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-realm-body h3 {
  margin: 0;
  color: #f2eaff;
  font-size: 1.12rem;
}

.home-realm-body > p:not(.home-realm-type) {
  min-height: 76px;
  margin: 8px 0 12px;
  color: #cdbfe1;
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-text-link {
  color: #c7a8ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-text-link:hover,
.home-text-link:focus-visible {
  color: #eee3ff;
  outline: none;
}

.home-join-section {
  background: rgba(18, 13, 31, 0.52);
}

.home-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(141, 105, 226, 0.22);
  border-left: 1px solid rgba(141, 105, 226, 0.22);
  list-style: none;
}

.home-step-grid li {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid rgba(141, 105, 226, 0.22);
  border-bottom: 1px solid rgba(141, 105, 226, 0.22);
  background: rgba(24, 18, 40, 0.58);
}

.home-step-grid span {
  color: #b99de9;
  font-size: 0.7rem;
  font-weight: 700;
}

.home-step-grid h3 {
  margin: 18px 0 7px;
  color: #f2eaff;
  font-size: 1rem;
}

.home-step-grid p {
  margin: 0;
  color: #cdbfe1;
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-join-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(141, 105, 226, 0.24);
  background: rgba(14, 11, 24, 0.84);
}

.home-join-bar > div:first-child {
  display: grid;
  gap: 3px;
}

.home-join-bar span {
  color: #a994c7;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-join-bar code {
  color: #f2eaff;
  font-family: Consolas, "Courier New", monospace;
}

.home-join-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.home-join-actions .button {
  min-height: 38px;
  border-radius: 0;
  font-size: 0.72rem;
}

.home-join-bar .copy-status {
  position: absolute;
  right: 18px;
  bottom: -23px;
  margin: 0;
  color: #c7a8ff;
  font-size: 0.76rem;
}

.home-community-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.home-community-copy .button {
  margin-top: 20px;
  border-radius: 0;
}

.home-support-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid rgba(141, 105, 226, 0.22);
}

.home-support-links a {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border-right: 1px solid rgba(141, 105, 226, 0.22);
  border-bottom: 1px solid rgba(141, 105, 226, 0.22);
  border-left: 1px solid rgba(141, 105, 226, 0.22);
  background: rgba(25, 19, 42, 0.6);
  transition: background-color 180ms ease;
}

.home-support-links a:hover,
.home-support-links a:focus-visible {
  background: rgba(45, 35, 80, 0.72);
  outline: none;
}

.home-support-links strong {
  color: #f2eaff;
  font-size: 0.9rem;
}

.home-support-links span {
  color: #ad9fc0;
  font-size: 0.8rem;
}

.discord-widget-shell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(141, 105, 226, 0.3);
  background: #0d0a17;
}

.discord-live-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(141, 105, 226, 0.22);
  background: #151020;
}

.discord-live-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.discord-live-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.discord-live-title {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.discord-live-kicker {
  color: #b99de9;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.discord-live-title strong {
  overflow: hidden;
  color: #f2eaff;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-live-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #8dd9aa;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.discord-live-count::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4bc77b;
  content: "";
}

.discord-live-body {
  height: 286px;
  overflow-y: auto;
  padding: 10px 12px 14px;
  scrollbar-color: #554078 #0b0912;
  scrollbar-width: thin;
}

.discord-live-body::-webkit-scrollbar {
  width: 7px;
}

.discord-live-body::-webkit-scrollbar-thumb {
  background: #554078;
}

.discord-channel-list,
.discord-member-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.discord-channel-list {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.discord-channel {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(141, 105, 226, 0.14);
  color: #b9aec8;
  font-size: 0.76rem;
}

.discord-channel-mark {
  color: #c7a8ff;
  font-weight: 700;
}

.discord-role-group-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 6px;
  color: var(--role-color, #b99de9);
  font-size: 0.7rem;
  font-weight: 700;
}

.discord-role-mark,
.discord-role-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  object-fit: contain;
}

.discord-role-mark.dot,
.discord-role-icon.dot {
  border-radius: 50%;
  background: var(--role-color, #b99de9);
}

.discord-role-mark.text {
  width: auto;
  height: auto;
}

.discord-member-list {
  display: grid;
  gap: 3px;
}

.discord-member {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-left: 2px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.discord-member:hover {
  border-left-color: var(--member-color, #9b6dff);
  background: rgba(75, 56, 113, 0.25);
}

.discord-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.discord-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  overflow: hidden;
  border: 2px solid #0d0a17;
  border-radius: 50%;
  background: #68707e;
  color: transparent;
}

.discord-status.online {
  background: #43b581;
}

.discord-status.idle {
  background: #faa61a;
}

.discord-status.dnd {
  background: #f04747;
}

.discord-member-body,
.discord-member-line {
  display: flex;
  min-width: 0;
  align-items: center;
}

.discord-member-body {
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
}

.discord-member-line {
  width: 100%;
  gap: 5px;
}

.discord-member-name {
  overflow: hidden;
  color: var(--member-color, #eee6f7);
  font-size: 0.8rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-member-activity {
  width: 100%;
  overflow: hidden;
  color: #897e98;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-role-list {
  display: inline-flex;
}

.discord-role {
  display: inline-flex;
  align-items: center;
  color: var(--role-color, #b99de9);
}

.discord-role.compact {
  width: 14px;
  height: 14px;
}

.discord-role-emoji {
  font-size: 0.7rem;
}

.discord-live-footer {
  display: none;
}

.discord-widget-empty {
  margin: 0;
  padding: 24px;
  color: #a99db8;
  text-align: center;
}

.discord-live-icon.avatar-fallback,
.discord-avatar.avatar-fallback {
  display: inline-block;
  background: #2c2143;
}

.modpack-card[id] {
  scroll-margin-top: 96px;
}

@media (max-width: 760px) {
  .home-expanded-section {
    padding: 36px 0;
  }

  .home-section-heading,
  .home-community-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-realm-grid,
  .home-step-grid {
    grid-template-columns: 1fr;
  }

  .home-support-links {
    grid-template-columns: 1fr;
  }

  .home-realm-body > p:not(.home-realm-type) {
    min-height: 0;
  }

  .home-step-grid h3 {
    margin-top: 10px;
  }

  .home-join-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .home-join-actions {
    justify-content: flex-start;
  }

  .home-join-bar .copy-status {
    position: static;
    min-height: 1em;
  }
}

@media (max-width: 520px) {
  .home-expanded-inner {
    padding: 0 4px;
  }

  .home-join-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-join-actions .button,
  .home-community-copy .button {
    width: 100%;
  }

  .discord-live-head {
    align-items: flex-start;
  }

  .discord-live-count {
    margin-top: 4px;
  }
}

/* Server directory */
.servers-main {
  width: 100%;
  min-height: calc(100vh - 76px);
  background: rgba(13, 9, 23, 0.82);
}

.servers-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}

.servers-directory {
  padding: 48px 0 58px;
  border-bottom: 1px solid rgba(173, 132, 255, 0.18);
}

.servers-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  align-items: end;
  gap: 44px;
  margin-bottom: 28px;
}

.servers-intro h1,
.servers-section-heading h2 {
  margin: 7px 0 0;
  color: #f2eaff;
  line-height: 1.15;
}

.servers-intro h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.servers-intro > p {
  margin: 0;
  color: #cfc1e4;
  line-height: 1.7;
}

.servers-kicker {
  margin: 0;
  color: #c7a8ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.server-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.server-profile {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(141, 105, 226, 0.25);
  background: rgba(18, 13, 31, 0.92);
  scroll-margin-top: 96px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.server-profile:hover {
  border-color: rgba(173, 132, 255, 0.5);
  transform: translateY(-2px);
}

.magic-server {
  border-top-color: rgba(184, 132, 210, 0.58);
}

.mons-server {
  border-top-color: rgba(91, 164, 201, 0.65);
}

.prominence-server {
  border-top-color: rgba(178, 83, 99, 0.62);
}

.server-profile-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(141, 105, 226, 0.2);
}

.server-profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.server-profile:hover .server-profile-media img {
  transform: scale(1.025);
}

.server-profile-media span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border: 1px solid rgba(173, 132, 255, 0.32);
  background: rgba(13, 9, 23, 0.9);
  color: #dfd1f2;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-profile-body {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.server-profile-body header {
  min-height: 132px;
}

.server-profile-body h2 {
  margin: 0;
  color: #f2eaff;
  font-size: 1.45rem;
}

.server-profile-body header p {
  margin: 9px 0 0;
  color: #cdbfe1;
  font-size: 0.91rem;
  line-height: 1.6;
}

.server-system-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 66px;
  align-content: flex-start;
  margin: 4px 0 20px;
  padding: 0;
  list-style: none;
}

.server-system-list li {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(141, 105, 226, 0.22);
  background: rgba(45, 34, 72, 0.42);
  color: #c9b7e3;
  font-size: 0.7rem;
  line-height: 1.25;
}

.server-address {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 14px 0;
  border-top: 1px solid rgba(141, 105, 226, 0.18);
  border-bottom: 1px solid rgba(141, 105, 226, 0.18);
}

.server-address span {
  color: #a994c7;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.server-address code {
  color: #f2eaff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.server-profile-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8px;
  margin-top: 14px;
}

.server-profile-actions .button {
  min-width: 0;
  min-height: 40px;
  border-radius: 0;
  padding: 0 10px;
  font-size: 0.69rem;
  white-space: nowrap;
}

.server-profile-body .copy-status {
  min-height: 18px;
  margin: 7px 0 -7px;
  color: #c7a8ff;
  font-size: 0.75rem;
}

.servers-join,
.servers-faq {
  padding: 48px 0;
}

.servers-join {
  border-bottom: 1px solid rgba(173, 132, 255, 0.18);
  background: rgba(23, 17, 39, 0.66);
}

.servers-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 34px;
  margin-bottom: 22px;
}

.servers-section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.servers-section-heading > p {
  margin: 0;
  color: #cfc1e4;
}

.servers-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(141, 105, 226, 0.23);
  border-left: 1px solid rgba(141, 105, 226, 0.23);
  list-style: none;
}

.servers-step-grid li {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid rgba(141, 105, 226, 0.23);
  border-bottom: 1px solid rgba(141, 105, 226, 0.23);
  background: rgba(18, 13, 31, 0.68);
}

.servers-step-grid span {
  color: #b99de9;
  font-size: 0.68rem;
  font-weight: 700;
}

.servers-step-grid h3 {
  margin: 16px 0 7px;
  color: #f2eaff;
  font-size: 1rem;
}

.servers-step-grid p {
  margin: 0;
  color: #c6b8d9;
  font-size: 0.86rem;
  line-height: 1.55;
}

.servers-faq {
  background: rgba(13, 9, 23, 0.78);
}

.servers-faq .servers-section-heading {
  grid-template-columns: 1fr;
}

.servers-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.servers-faq-list .faq-item {
  align-self: start;
}

@media (max-width: 980px) {
  .server-profile-grid {
    grid-template-columns: 1fr;
  }

  .server-profile {
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  }

  .server-profile-media {
    height: 100%;
    min-height: 330px;
    aspect-ratio: auto;
    border-right: 1px solid rgba(141, 105, 226, 0.2);
    border-bottom: 0;
  }

  .server-profile-body header,
  .server-system-list {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .servers-main {
    min-height: auto;
  }

  .servers-directory,
  .servers-join,
  .servers-faq {
    padding: 36px 0;
  }

  .servers-intro,
  .servers-section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .server-profile {
    display: flex;
  }

  .server-profile-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid rgba(141, 105, 226, 0.2);
  }

  .servers-step-grid,
  .servers-faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .servers-inner {
    padding-right: 12px;
    padding-left: 12px;
  }

  .server-profile-body {
    padding: 16px;
  }

  .server-profile-actions {
    grid-template-columns: 1fr;
  }

  .server-profile-actions .button {
    width: 100%;
  }
}

/* Discord rules policy */
.policy-main {
  width: 100%;
  min-height: calc(100vh - 76px);
  background: rgba(13, 9, 23, 0.86);
}

.policy-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}

.policy-hero {
  padding: 54px 0 44px;
  border-bottom: 1px solid rgba(173, 132, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(18, 13, 31, 0.98), rgba(18, 13, 31, 0.72)),
    url("/assets/runeveil-background.png") center 30% / cover no-repeat;
}

.policy-kicker,
.policy-section-heading p {
  margin: 0;
  color: #c7a8ff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.policy-hero h1 {
  max-width: 760px;
  margin: 8px 0 0;
  color: #f2eaff;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
}

.policy-lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: #d5c9e5;
  font-size: 1rem;
  line-height: 1.7;
}

.policy-platform {
  display: flex;
  max-width: 860px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(141, 105, 226, 0.3);
  background: rgba(12, 9, 21, 0.82);
}

.policy-platform > div:first-child {
  display: grid;
  gap: 3px;
}

.policy-platform span {
  color: #a994c7;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.policy-platform strong {
  color: #f2eaff;
  font-size: 0.9rem;
}

.policy-platform-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.policy-platform-links a {
  padding: 7px 10px;
  border: 1px solid rgba(141, 105, 226, 0.3);
  color: #d8c5f3;
  font-size: 0.72rem;
  font-weight: 600;
}

.policy-platform-links a:hover,
.policy-platform-links a:focus-visible {
  border-color: #9b6dff;
  background: rgba(79, 57, 127, 0.42);
  color: #fff;
  outline: none;
}

.policy-warning {
  max-width: 860px;
  margin: 9px 0 0;
  color: #d8ad70;
  font-size: 0.78rem;
}

.policy-section {
  padding: 46px 0 52px;
  border-bottom: 1px solid rgba(173, 132, 255, 0.16);
}

.policy-section-shaded {
  background: rgba(25, 18, 42, 0.48);
}

.policy-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}

.policy-section-heading > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(141, 105, 226, 0.36);
  color: #c7a8ff;
  font-size: 0.68rem;
  font-weight: 700;
}

.policy-section-heading h2 {
  margin: 4px 0 0;
  color: #f2eaff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.policy-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(141, 105, 226, 0.2);
  border-left: 1px solid rgba(141, 105, 226, 0.2);
}

.policy-rule {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid rgba(141, 105, 226, 0.2);
  border-bottom: 1px solid rgba(141, 105, 226, 0.2);
  background: rgba(18, 13, 31, 0.72);
}

.policy-rule > span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(141, 105, 226, 0.28);
  color: #ad92da;
  font-size: 0.68rem;
  font-weight: 700;
}

.policy-rule h3,
.policy-summary-grid h3 {
  margin: 2px 0 8px;
  color: #f0e8f7;
  font-size: 0.96rem;
}

.policy-rule ul,
.policy-summary-grid ul,
.policy-final-notes ul {
  margin: 0;
  padding-left: 17px;
  color: #c8bad9;
  font-size: 0.84rem;
  line-height: 1.6;
}

.policy-rule li + li,
.policy-summary-grid li + li,
.policy-final-notes li + li {
  margin-top: 4px;
}

.policy-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.policy-summary-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(141, 105, 226, 0.22);
  background: rgba(18, 13, 31, 0.74);
}

.policy-summary-grid article > p:not(.policy-stop) {
  margin: 12px 0 0;
  color: #9f91b2;
  font-size: 0.78rem;
}

.policy-stop {
  margin: 15px 0 0;
  padding: 10px 12px;
  border-left: 2px solid #c06b78;
  background: rgba(107, 39, 53, 0.18);
  color: #edc6cc;
  font-size: 0.82rem;
  font-weight: 600;
}

.policy-final {
  padding: 48px 0 58px;
}

.policy-final-notes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 28px;
}

.policy-final-notes h2 {
  margin: 5px 0 0;
  color: #f2eaff;
  font-size: 1.55rem;
}

.policy-final-notes ul {
  min-width: 280px;
}

.policy-final blockquote {
  margin: 0;
  padding: 26px 28px;
  border: 1px solid rgba(199, 168, 255, 0.32);
  border-left: 3px solid #9b6dff;
  background: rgba(30, 22, 50, 0.82);
}

.policy-final blockquote span {
  color: #c7a8ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.policy-final blockquote p {
  margin: 8px 0 4px;
  color: #f2eaff;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 600;
}

.policy-final blockquote strong {
  color: #d8ad70;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .policy-main {
    min-height: auto;
  }

  .policy-hero,
  .policy-section,
  .policy-final {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .policy-platform,
  .policy-final-notes {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-platform-links {
    justify-content: flex-start;
  }

  .policy-rule-grid,
  .policy-summary-grid {
    grid-template-columns: 1fr;
  }

  .policy-final-notes ul {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .policy-inner {
    padding-right: 12px;
    padding-left: 12px;
  }

  .policy-rule {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 9px;
    padding: 14px;
  }

  .policy-rule > span {
    width: 24px;
    height: 24px;
  }

  .policy-platform {
    padding: 14px;
  }

  .policy-platform-links {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .policy-platform-links a {
    text-align: center;
  }

  .policy-final blockquote {
    padding: 20px;
  }
}
