:root {
  --bg: #050303;
  --bg-soft: #110808;
  --panel: rgba(8, 5, 5, 0.92);
  --panel-strong: rgba(13, 8, 8, 0.97);
  --panel-glass: rgba(28, 15, 12, 0.88);
  --line: rgba(167, 116, 73, 0.28);
  --line-strong: rgba(201, 148, 92, 0.56);
  --line-soft: rgba(255, 226, 185, 0.09);
  --gold: #d6b07a;
  --gold-soft: #f0d1a4;
  --ember: #d94b1f;
  --ember-bright: #ff7a32;
  --crimson: #7f120d;
  --ink: #160d0b;
  --text: #f4e8d5;
  --text-soft: rgba(244, 232, 213, 0.78);
  --text-faint: rgba(244, 232, 213, 0.52);
  --shadow-xl: 0 32px 90px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --radius-sm: 14px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 95, 29, 0.38), transparent 13%),
    linear-gradient(90deg, rgba(8, 5, 5, 0.22), rgba(8, 5, 5, 0.02) 44%, rgba(8, 5, 5, 0.14)),
    linear-gradient(180deg, rgba(8, 5, 5, 0), rgba(8, 5, 5, 0.24) 58%, rgba(8, 5, 5, 0.9) 100%),
    url("/static/images/background.png") center top / cover fixed no-repeat,
    #050303;
  display: block;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -30;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 160px 160px;
  opacity: 0.15;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.realm-site-shell {
  width: 100%;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  backdrop-filter: none;
}

.realm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background:
    linear-gradient(180deg, rgba(19, 8, 6, 0.96), rgba(5, 4, 4, 0.86)),
    radial-gradient(circle at 12% 0%, rgba(142, 33, 18, 0.28), transparent 42%);
  border-top: 1px solid rgba(190, 136, 83, 0.58);
  border-bottom-color: rgba(190, 136, 83, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 185, 0.04),
    0 16px 44px rgba(0, 0, 0, 0.25);
}

.realm-header-inner {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  transform: translateX(clamp(-150px, -6vw, -48px));
}

.realm-brand,
.realm-nav-link {
  background: transparent;
}

.realm-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  border-right-color: rgba(165, 110, 61, 0.28);
  min-width: 318px;
  min-height: 116px;
  padding-inline: 44px 28px;
  border-right: 1px solid rgba(165, 110, 61, 0.28);
}

.realm-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  overflow: visible;
  box-shadow: none;
}

.realm-brand-mark img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.realm-brand-copy {
  display: grid;
  gap: 4px;
}

.realm-brand-copy strong,
.realm-footer-brand strong {
  font-family: "Marcellus SC", serif;
  letter-spacing: 0.04em;
  font-size: clamp(1.9rem, 2.1vw, 2.6rem);
  color: var(--gold-soft);
}

.realm-brand-copy span,
.realm-footer-brand span {
  color: rgba(214, 176, 122, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.76rem;
}

.realm-nav {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  min-width: 0;
  overflow: visible;
  scrollbar-width: none;
}

.realm-nav::-webkit-scrollbar {
  display: none;
}

.realm-nav-link,
.realm-mobile-link {
  position: relative;
  display: inline-flex;
  min-width: 106px;
  min-height: 116px;
  padding: 14px 10px 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  border-left: 1px solid rgba(165, 110, 61, 0.22);
  background: transparent;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.realm-nav-link:hover,
.realm-mobile-link:hover,
.realm-nav-link.is-active {
  color: #ffe8ca;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 122, 50, 0.24), transparent 44%),
    linear-gradient(180deg, rgba(126, 20, 11, 0.82), rgba(39, 10, 8, 0.72));
  box-shadow:
    inset 0 -2px 0 rgba(255, 133, 67, 0.72),
    inset 0 0 28px rgba(255, 80, 30, 0.12);
}

.realm-nav-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: rgba(214, 176, 122, 0.82);
}

.realm-nav-icon svg,
.realm-btn-icon svg,
.realm-panel-icon svg,
.realm-footer-socials svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.realm-nav-caret {
  position: absolute;
  right: 7px;
  bottom: 27px;
  color: rgba(244, 232, 213, 0.86);
  font-size: 0.58rem;
}

.realm-nav-dropdown {
  position: relative;
  z-index: 60;
}

.realm-dropdown-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  width: 250px;
  z-index: 75;
  background:
    linear-gradient(180deg, rgba(20, 11, 11, 0.98), rgba(6, 5, 5, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.realm-nav-dropdown:hover .realm-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.realm-nav-dropdown:focus-within .realm-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.realm-dropdown-link {
  display: block;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
}

.realm-dropdown-link:hover {
  background: rgba(255, 122, 50, 0.08);
  color: var(--gold-soft);
}

.realm-mobile-toggle {
  display: none;
  align-self: center;
  justify-self: end;
  margin-right: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  background: rgba(65, 20, 14, 0.7);
  font-family: "Marcellus SC", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.realm-mobile-nav {
  border-top: 1px solid var(--line);
  background: rgba(10, 6, 6, 0.96);
}

.realm-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.realm-mobile-link {
  min-height: auto;
  padding: 18px;
  font-size: 1rem;
}

.realm-main {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  flex: 1 0 auto;
}

.realm-main:has(.realm-home-reference) {
  width: 100%;
  margin: 0;
  padding: 0;
}

.realm-page {
  display: grid;
  gap: 18px;
}

.realm-page-hero,
.realm-frame,
.ek-panel,
.ek-card,
.eclipse-shop-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(30, 14, 12, 0.84), rgba(8, 5, 5, 0.96)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.realm-page-hero::before,
.realm-frame::before,
.ek-panel::before,
.ek-card::before,
.eclipse-shop-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 228, 189, 0.05);
  pointer-events: none;
}

.realm-page-hero {
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 122, 50, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(40, 12, 10, 0.98), rgba(11, 7, 7, 0.98));
}

.realm-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}

.realm-page-hero-register::after {
  background-image:
    linear-gradient(90deg, rgba(8, 5, 5, 0.9), rgba(8, 5, 5, 0.34), rgba(8, 5, 5, 0.9)),
    url("/static/images/1.png");
}

.realm-page-hero-download::after {
  background-image:
    linear-gradient(90deg, rgba(8, 5, 5, 0.85), rgba(8, 5, 5, 0.24), rgba(8, 5, 5, 0.88)),
    url("/static/images/3.png");
}

.realm-page-hero-rankings::after {
  background-image:
    linear-gradient(90deg, rgba(8, 5, 5, 0.88), rgba(8, 5, 5, 0.2), rgba(8, 5, 5, 0.9)),
    url("/static/images/2.png");
}

.realm-page-hero-quest::after {
  background-image:
    linear-gradient(90deg, rgba(8, 5, 5, 0.92), rgba(8, 5, 5, 0.3), rgba(8, 5, 5, 0.92)),
    url("/static/images/shot3.jpg");
}

.realm-page-hero-plain::after {
  display: none;
}

.realm-page-kicker,
.ek-pageeyebrow,
.eclipse-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(214, 176, 122, 0.26);
  background: rgba(99, 31, 18, 0.38);
  color: var(--gold-soft);
  font-family: "Marcellus SC", serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.realm-page-hero h1,
.ek-pagehead h1,
.ek-pagehead h2,
.eclipse-shop-copy h1 {
  margin: 0;
  font-family: "Marcellus SC", serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.96;
  color: #f7ead3;
  text-transform: uppercase;
}

.realm-page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  max-width: 10ch;
}

.realm-page-hero p,
.ek-pagehead p,
.eclipse-shop-copy p {
  max-width: 60rem;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.8;
}

.realm-frame,
.ek-panel {
  padding: clamp(18px, 2.4vw, 28px);
}

.ek-pagehead {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.ek-pagehead h1,
.ek-pagehead h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

.ek-panel-title,
.ek-card-title {
  margin: 0;
  font-family: "Marcellus SC", serif;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
}

.ek-card-subtitle {
  margin-top: 8px;
  color: var(--text-faint);
  line-height: 1.75;
}

.ek-card {
  padding: 18px;
}

.ek-section-grid,
.realm-stack {
  display: grid;
  gap: 20px;
}

.ek-section-grid-2,
.realm-dual,
.realm-split {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.ek-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.realm-cta,
.ek-button,
.ek-iconbtn,
.ek-download,
.realm-footer-links a,
.eclipse-shop-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(190, 136, 83, 0.54);
  color: var(--gold-soft);
  font-family: "Marcellus SC", serif;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(57, 23, 17, 0.9), rgba(18, 10, 9, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 238, 212, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.realm-cta:hover,
.ek-button:hover,
.ek-iconbtn:hover,
.ek-download:hover,
.realm-footer-links a:hover {
  transform: translateY(-1px);
  color: #fff1da;
  border-color: rgba(255, 159, 90, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 238, 212, 0.09), 0 14px 34px rgba(0, 0, 0, 0.32);
}

.realm-cta-primary,
.ek-button {
  color: #ffe3bf;
  background:
    linear-gradient(180deg, rgba(140, 30, 16, 0.98), rgba(92, 18, 10, 0.98));
}

.realm-cta-secondary,
.ek-button-secondary,
.ek-iconbtn,
.ek-download {
  background:
    linear-gradient(180deg, rgba(38, 25, 19, 0.96), rgba(16, 10, 9, 0.98));
}

.realm-home-reference {
  position: relative;
}

.realm-home-stage {
  position: relative;
  overflow: hidden;
  min-height: 950px;
  padding: 54px clamp(22px, 6vw, 118px) 24px;
  background: transparent;
}

.realm-home-stage::before {
  display: none;
}

.realm-home-stage-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 34%, transparent 0 19%, rgba(4, 3, 3, 0.26) 42%),
    linear-gradient(180deg, rgba(10, 6, 6, 0), rgba(10, 6, 6, 0.32) 74%, rgba(10, 6, 6, 0.72) 100%);
}

.realm-home-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding-top: 0;
  text-align: center;
}

.realm-home-title-art {
  width: min(675px, 58vw);
  filter:
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(255, 72, 21, 0.12));
}

.realm-home-tagline {
  margin: 22px 0 0;
  color: #ecd9ba;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.realm-home-tagline-accent {
  margin-top: 12px;
  color: #a31e00;
}

.realm-home-actionbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
}

.realm-home-btn,
.realm-home-panel-btn,
.realm-home-discord-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 42px;
  border: 1px solid rgba(190, 136, 83, 0.54);
  color: var(--gold-soft);
  font-family: "Marcellus SC", serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 212, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.22);
  clip-path: polygon(5% 0, 95% 0, 100% 22%, 100% 78%, 95% 100%, 5% 100%, 0 78%, 0 22%);
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.realm-home-btn::before,
.realm-home-panel-btn::before,
.realm-home-discord-btn::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 226, 185, 0.08);
  pointer-events: none;
}

.realm-home-btn:hover,
.realm-home-panel-btn:hover,
.realm-home-discord-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 169, 97, 0.76);
  filter: brightness(1.08);
}

.realm-home-btn {
  width: 280px;
  max-width: 100%;
}

.realm-btn-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.realm-home-btn-primary {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 126, 63, 0.26), transparent 42%),
    linear-gradient(180deg, rgba(158, 34, 18, 0.98), rgba(103, 18, 10, 0.98));
  color: #ffe1ba;
}

.realm-home-btn-secondary,
.realm-home-panel-btn {
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 176, 122, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(39, 27, 19, 0.98), rgba(14, 10, 9, 0.98));
}

.realm-home-discord-btn {
  background: linear-gradient(180deg, rgba(53, 63, 143, 0.98), rgba(39, 42, 109, 0.98));
  color: #f4f6ff;
}

.realm-home-panels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
  max-width: 1480px;
  margin-inline: auto;
}

.realm-home-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 328px;
  padding: 24px 26px 22px;
  border: 1px solid rgba(190, 136, 83, 0.48);
  background:
    radial-gradient(circle at 16% 10%, rgba(214, 176, 122, 0.09), transparent 30%),
    radial-gradient(circle at 78% 100%, rgba(176, 50, 18, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(16, 11, 10, 0.9), rgba(8, 5, 5, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 185, 0.04),
    0 22px 54px rgba(0, 0, 0, 0.44);
}

.realm-home-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 228, 189, 0.06);
  background:
    linear-gradient(90deg, rgba(214, 176, 122, 0.42) 0 18px, transparent 18px) left top / 58px 1px no-repeat,
    linear-gradient(180deg, rgba(214, 176, 122, 0.42) 0 18px, transparent 18px) left top / 1px 58px no-repeat,
    linear-gradient(270deg, rgba(214, 176, 122, 0.42) 0 18px, transparent 18px) right top / 58px 1px no-repeat,
    linear-gradient(180deg, rgba(214, 176, 122, 0.42) 0 18px, transparent 18px) right top / 1px 58px no-repeat,
    linear-gradient(90deg, rgba(214, 176, 122, 0.3) 0 18px, transparent 18px) left bottom / 58px 1px no-repeat,
    linear-gradient(0deg, rgba(214, 176, 122, 0.3) 0 18px, transparent 18px) left bottom / 1px 58px no-repeat,
    linear-gradient(270deg, rgba(214, 176, 122, 0.3) 0 18px, transparent 18px) right bottom / 58px 1px no-repeat,
    linear-gradient(0deg, rgba(214, 176, 122, 0.3) 0 18px, transparent 18px) right bottom / 1px 58px no-repeat;
  pointer-events: none;
}

.realm-home-panel h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  color: var(--gold-soft);
  font-family: "Marcellus SC", serif;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.realm-home-panel h2>span:last-child {
  white-space: nowrap;
}

.realm-home-panel h2::before {
  display: none;
}

.realm-panel-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  color: var(--gold-soft);
  border: 1px solid rgba(214, 176, 122, 0.42);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 122, 50, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(24, 17, 13, 0.98), rgba(5, 4, 4, 0.98));
  box-shadow: inset 0 0 0 2px rgba(255, 238, 212, 0.04), 0 10px 20px rgba(0, 0, 0, 0.28);
}

.realm-home-panel-info .realm-panel-icon {
  color: #74d8ff;
}

.realm-home-panel-player .realm-panel-icon {
  color: #e4c083;
}

.realm-home-panel-news .realm-panel-icon,
.realm-home-community .realm-panel-icon {
  color: #c9aa78;
}

.realm-home-panel .realm-info-list,
.realm-home-panel .realm-news-compact {
  gap: 7px;
}

.realm-home-panel .realm-info-row,
.realm-home-panel .realm-news-item {
  min-height: 28px;
  padding-bottom: 6px;
  border-bottom: 0;
  line-height: 1.25;
}

.realm-home-panel .realm-news-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
}

.realm-home-panel .realm-news-item a,
.realm-home-panel .realm-news-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realm-home-extra-row {
  display: none;
}

.realm-home-ordered {
  display: grid;
  gap: 8px;
}

.realm-home-order-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid rgba(214, 176, 122, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  line-height: 1.25;
}

.realm-home-order-row-rank-1 {
  border-color: rgba(238, 196, 106, 0.38);
  background:
    linear-gradient(90deg, rgba(120, 78, 20, 0.18), rgba(255, 255, 255, 0.03));
}

.realm-home-order-row-rank-2 {
  border-color: rgba(205, 213, 224, 0.24);
  background:
    linear-gradient(90deg, rgba(110, 118, 134, 0.16), rgba(255, 255, 255, 0.03));
}

.realm-home-order-row-rank-3 {
  border-color: rgba(188, 125, 76, 0.24);
  background:
    linear-gradient(90deg, rgba(122, 63, 26, 0.16), rgba(255, 255, 255, 0.03));
}

.realm-home-rank-chip {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 176, 122, 0.24);
  color: var(--gold);
  background: rgba(15, 10, 10, 0.9);
  font-family: "Marcellus SC", serif;
}

.realm-home-rank-chip-1 {
  color: #1f1208;
  border-color: rgba(255, 230, 167, 0.56);
  background: linear-gradient(180deg, #f5d59a, #d8a245);
}

.realm-home-rank-chip-2 {
  color: #16181c;
  border-color: rgba(228, 233, 240, 0.52);
  background: linear-gradient(180deg, #edf3fb, #a6afbc);
}

.realm-home-rank-chip-3 {
  color: #24140c;
  border-color: rgba(214, 158, 107, 0.52);
  background: linear-gradient(180deg, #e0b283, #91552f);
}

.realm-home-order-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.realm-home-order-copy strong {
  color: #fff0da;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.realm-home-order-copy small {
  color: rgba(244, 232, 213, 0.56);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.realm-home-order-row em {
  color: #fff0da;
  font-style: normal;
  text-align: right;
}

.realm-home-panel-btn,
.realm-home-discord-btn {
  width: min(228px, 100%);
  min-height: 52px;
  margin: auto auto 0;
  padding-inline: 18px;
}

.realm-home-community {
  display: flex;
  flex-direction: column;
}

.realm-home-community-copy {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.realm-home-community p {
  margin: 0 auto 18px;
  max-width: 25ch;
  color: var(--text-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.38rem;
  line-height: 1.55;
  text-align: center;
}

.realm-home-community .realm-home-discord-btn {
  width: min(300px, 100%);
  background:
    linear-gradient(180deg, rgba(33, 45, 120, 0.98), rgba(20, 25, 75, 0.98));
}

.realm-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-family: "Marcellus SC", serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.realm-card-heading::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(214, 176, 122, 0.32);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 122, 50, 0.16), rgba(38, 17, 13, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 246, 232, 0.04);
}

.realm-info-list,
.realm-rank-list,
.realm-news-compact {
  display: grid;
  gap: 12px;
}

.realm-info-row,
.realm-rank-row,
.realm-news-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.realm-info-row span:first-child,
.realm-rank-row span:first-child,
.realm-news-item time {
  color: var(--gold);
}

.realm-info-row strong,
.realm-rank-row strong {
  color: #fff0da;
  text-align: right;
}

.realm-news-item {
  align-items: baseline;
}

.realm-news-item a,
.realm-news-item strong {
  color: #fff0da;
}

.eclipse-gallery-grid,
#mediaScreens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.eclipse-news-list {
  display: grid;
  gap: 18px;
}

.realm-news-archive {
  display: grid;
  gap: 18px;
}

.realm-news-archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.realm-news-archive-count {
  color: var(--gold);
  font-family: "Marcellus SC", serif;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.realm-news-accordion {
  display: grid;
  gap: 10px;
}

.realm-news-item-card {
  border: 1px solid rgba(214, 176, 122, 0.14);
  background:
    linear-gradient(180deg, rgba(31, 12, 10, 0.94), rgba(13, 8, 8, 0.98));
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.realm-news-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 176, 122, 0.24);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.realm-news-item-card[open] {
  border-color: rgba(214, 176, 122, 0.28);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.realm-news-item-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.realm-news-item-summary::-webkit-details-marker {
  display: none;
}

.realm-news-item-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.realm-news-item-copy strong,
.realm-news-detail-article h2 {
  margin: 0;
  color: #fff0da;
  font-family: "Marcellus SC", serif;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.realm-news-item-copy strong,
.realm-news-side-item strong {
  color: inherit;
}

.realm-news-item-copy strong,
.realm-news-side-item,
.realm-download-tab {
  text-decoration: none;
}

.realm-news-item-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(214, 176, 122, 0.22);
  color: var(--gold);
  background: rgba(97, 27, 17, 0.22);
  font-family: "Marcellus SC", serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.realm-news-item-summary time {
  color: rgba(244, 232, 213, 0.72);
  font-size: 0.82rem;
}

.realm-news-item-body {
  display: grid;
  gap: 14px;
  padding: 0 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.realm-news-item-body p,
.realm-news-lead,
.realm-news-detail-body p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.realm-news-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--gold);
  font-family: "Marcellus SC", serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.realm-news-read {
  width: fit-content;
  justify-content: center;
}

.realm-news-read-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.82rem;
}

.realm-news-detail-shell {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.realm-news-detail-hero {
  padding-block: 20px;
}

.realm-news-detail-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  line-height: 0.95;
}

.realm-news-detail-article {
  display: grid;
  gap: 22px;
}

.realm-news-detail-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.realm-news-back {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.realm-news-detail-core {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}

.realm-news-detail-copy {
  display: grid;
  gap: 16px;
}

.realm-news-detail-copy h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.realm-news-lead {
  padding: 16px 18px;
  border-left: 3px solid rgba(214, 176, 122, 0.42);
  background: rgba(255, 255, 255, 0.03);
}

.realm-news-detail-side {
  height: fit-content;
}

.realm-news-detail-body {
  display: grid;
  gap: 14px;
}

.realm-news-side-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.realm-news-side-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(214, 176, 122, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.realm-news-side-item:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 176, 122, 0.28);
  background:
    linear-gradient(180deg, rgba(57, 21, 15, 0.94), rgba(24, 12, 10, 0.98));
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18);
}

.realm-news-side-item span {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.realm-news-detail-panel {
  padding: 18px;
  border: 1px solid rgba(214, 176, 122, 0.14);
  background:
    linear-gradient(180deg, rgba(44, 17, 13, 0.9), rgba(13, 8, 8, 0.96));
}

.realm-news-detail-panel-label {
  color: var(--gold);
  font-family: "Marcellus SC", serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.realm-news-detail-points {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.9;
}

.ek-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(43, 18, 15, 0.92), rgba(11, 7, 7, 0.96));
  color: var(--gold);
  font-family: "Marcellus SC", serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ek-tab[aria-selected="true"],
.ek-tab:hover {
  color: #fff0da;
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(110, 24, 13, 0.96), rgba(37, 11, 9, 0.98));
}

.ek-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(214, 176, 122, 0.28);
  color: #fff0da;
  background: rgba(255, 255, 255, 0.05);
  font-family: "Marcellus SC", serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ek-badge-online {
  color: #7df0a8;
  border-color: rgba(110, 245, 169, 0.46);
}

.ek-badge-offline {
  color: #ff9d8b;
  border-color: rgba(255, 129, 104, 0.46);
}

.ek-badge-unknown {
  color: var(--gold-soft);
}

.ek-note,
.text-white\/60,
.text-white\/70 {
  color: var(--text-soft) !important;
}

.ek-alert {
  padding: 18px 20px;
  border: 1px solid rgba(214, 176, 122, 0.22);
  background: rgba(35, 16, 13, 0.85);
  color: var(--text);
}

.ek-alert-error {
  border-color: rgba(255, 104, 84, 0.42);
  color: #ffd5cf;
}

.ek-alert-success {
  border-color: rgba(138, 229, 174, 0.42);
  color: #d7ffe6;
}

.ek-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(214, 176, 122, 0.22);
  color: #fff0da;
  background:
    linear-gradient(180deg, rgba(32, 16, 13, 0.96), rgba(14, 9, 9, 0.98));
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ek-input::placeholder {
  color: rgba(244, 232, 213, 0.34);
}

.ek-input:focus {
  border-color: rgba(255, 142, 66, 0.62);
  box-shadow: 0 0 0 3px rgba(217, 75, 31, 0.14);
}

.ek-label {
  color: var(--gold);
  font-family: "Marcellus SC", serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ek-searchbar {
  position: relative;
}

.ek-searchbar .ek-input {
  min-width: min(420px, 100%);
  padding-left: 42px;
}

.realm-rankings-main .ek-searchbar .ek-input {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.realm-rankings-main .ek-searchbar {
  width: min(220px, 100%);
}

.ek-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(214, 176, 122, 0.14);
  background: rgba(7, 5, 5, 0.78);
}

.ek-table {
  width: 100%;
  border-collapse: collapse;
}

.ek-table thead tr {
  background: rgba(70, 24, 17, 0.58);
}

.ek-table th,
.ek-table td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.ek-table th {
  color: var(--gold-soft);
  font-family: "Marcellus SC", serif;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ek-table tbody tr:hover {
  background: rgba(255, 122, 50, 0.04);
}

.ek-bullet-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.9;
}

.ek-card-grid,
.ek-mirror-grid,
.eclipse-shop-packages {
  display: grid;
  gap: 18px;
}

.ek-mirror-grid,
.eclipse-shop-packages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.ek-download,
.ek-mirror-card,
.realm-mini-card {
  padding: 18px;
}

.eclipse-shop-hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.eclipse-shop-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.eclipse-shop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 6, 6, 0.9) 14%, rgba(10, 6, 6, 0.42) 55%, rgba(10, 6, 6, 0.9) 100%);
}

.eclipse-shop-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 0;
}

.eclipse-shop-copy h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.eclipse-shop-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.eclipse-shop-note {
  padding: 24px 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(39, 17, 14, 0.94), rgba(10, 6, 6, 0.98));
}

.eclipse-shop-note span {
  color: var(--gold);
  font-family: "Marcellus SC", serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.eclipse-shop-note h2 {
  margin: 10px 0 8px;
  font-family: "Marcellus SC", serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  text-transform: uppercase;
}

.eclipse-shop-note p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.85;
}

.eclipse-shop-card {
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.realm-vote-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.realm-vote-card,
.realm-vote-secret-panel,
.realm-vote-shop-card {
  border: 1px solid rgba(214, 176, 122, 0.16);
  background:
    linear-gradient(180deg, rgba(35, 16, 13, 0.92), rgba(10, 6, 6, 0.98));
}

.realm-vote-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.realm-vote-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--gold);
  font-family: "Marcellus SC", serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.realm-vote-card-head strong {
  color: #fff0da;
  font-weight: 400;
}

.realm-vote-card h2,
.realm-vote-secret-copy h2,
.realm-vote-shop-head h2,
.realm-vote-shop-copy h3 {
  margin: 0;
  color: #fff0da;
  font-family: "Marcellus SC", serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.realm-vote-card p,
.realm-vote-secret-copy p,
.realm-vote-shop-head p,
.realm-vote-shop-copy p,
.realm-vote-shop-lock {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.realm-vote-metrics,
.realm-vote-balance-grid,
.realm-vote-shop-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.realm-vote-balance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.realm-vote-metrics div,
.realm-vote-balance-grid div,
.realm-vote-shop-meta div,
.realm-vote-meta div {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.realm-vote-metrics small,
.realm-vote-balance-grid small,
.realm-vote-shop-meta small,
.realm-vote-meta span,
.realm-vote-shop-balance small {
  display: block;
  margin-bottom: 6px;
  color: rgba(244, 232, 213, 0.52);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.realm-vote-metrics strong,
.realm-vote-balance-grid strong,
.realm-vote-shop-meta strong,
.realm-vote-meta strong,
.realm-vote-shop-balance strong {
  color: #fff0da;
  font-family: "Marcellus SC", serif;
  font-weight: 400;
}

.realm-vote-form {
  display: grid;
  gap: 16px;
}

.realm-vote-form-tight {
  align-content: start;
}

.realm-vote-secret-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.realm-vote-secret-copy span,
.realm-vote-shop-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: "Marcellus SC", serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.realm-vote-secret-box {
  min-width: 280px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 142, 66, 0.34);
  background: rgba(255, 122, 50, 0.08);
  color: #fff0da;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
}

.realm-vote-meta {
  display: grid;
  gap: 10px;
}

.realm-vote-shop-shell {
  display: grid;
  gap: 18px;
}

.realm-vote-shop-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.realm-vote-shop-balance {
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  text-align: right;
}

.realm-vote-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.realm-vote-shop-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.realm-vote-shop-thumb {
  min-height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
}

.realm-vote-shop-thumb img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  image-rendering: auto;
}

.realm-vote-shop-thumb-fallback {
  color: rgba(244, 232, 213, 0.45);
  font-family: "Marcellus SC", serif;
  font-size: 2rem;
}

.realm-vote-shop-copy {
  display: grid;
  gap: 10px;
}

.realm-vote-shop-copy h3 {
  font-size: 1.02rem;
  line-height: 1.35;
}

.realm-vote-shop-copy p {
  font-size: 0.95rem;
}

.realm-vote-buy[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}

.eclipse-shop-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.eclipse-shop-tier {
  color: rgba(214, 176, 122, 0.44);
  font-family: "Marcellus SC", serif;
  font-size: 3rem;
  line-height: 1;
}

.eclipse-shop-card h3 {
  margin: 20px 0 12px;
  font-family: "Marcellus SC", serif;
  color: #fff0da;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.3rem;
}

.eclipse-shop-coins {
  font-family: "Marcellus SC", serif;
  font-size: 2.6rem;
  color: var(--ember-bright);
}

.eclipse-shop-label {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eclipse-shop-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.eclipse-shop-meta strong {
  color: var(--gold-soft);
}

.eclipse-empty {
  padding: 26px;
  border: 1px dashed rgba(214, 176, 122, 0.3);
  color: var(--text-soft);
}

.realm-register-shell,
.realm-rankings-shell,
.realm-quest-shell {
  display: grid;
  gap: 18px;
}

.realm-quest-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.eclipse-tab-btn {
  background: rgba(10, 6, 6, 0.6);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.eclipse-tab-btn:hover {
  background: rgba(39, 17, 14, 0.4);
  border-color: var(--accent);
  color: var(--accent);
}

.eclipse-tab-btn.is-active {
  background: linear-gradient(90deg, rgba(39, 17, 14, 0.8), transparent);
  border-left: 3px solid var(--accent);
  color: var(--gold);
}

.realm-register-shell {
  grid-template-columns: 220px 1.2fr 0.7fr;
}

.realm-register-art,
.realm-rankings-art {
  min-height: 100%;
  border: 1px solid rgba(199, 148, 92, 0.16);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.36);
}

.realm-register-art {
  background:
    linear-gradient(180deg, rgba(8, 5, 5, 0.12), rgba(8, 5, 5, 0.88)),
    radial-gradient(circle at 50% 8%, rgba(255, 122, 50, 0.18), transparent 26%),
    url("/static/images/topknight.png") center bottom / contain no-repeat;
}

.realm-register-main,
.realm-rankings-main,
.realm-quest-main,
.realm-download-copy {
  min-width: 0;
}

.realm-register-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}

.realm-download-shell {
  display: grid;
  gap: 18px;
}

.realm-download-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.realm-download-tab,
.realm-quest-menu span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(199, 148, 92, 0.24);
  background: linear-gradient(180deg, rgba(30, 14, 12, 0.84), rgba(8, 5, 5, 0.96));
  color: var(--gold);
  font-family: "Marcellus SC", serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.realm-download-tab.is-active,
.realm-quest-menu .is-active {
  background: linear-gradient(180deg, rgba(110, 24, 13, 0.96), rgba(37, 11, 9, 0.98));
  color: #fff0da;
  border-color: var(--line-strong);
}

.realm-download-section {
  scroll-margin-top: 130px;
}

.realm-download-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.realm-download-visual {
  min-height: 250px;
  border: 1px solid rgba(199, 148, 92, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 5, 5, 0.08), rgba(8, 5, 5, 0.72)),
    url("/static/images/3.png") center center / cover no-repeat;
}

.realm-download-link {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.realm-download-link-stack {
  display: grid;
  gap: 10px;
}

.realm-download-guide-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.realm-download-guide-grid div {
  display: grid;
  gap: 8px;
}

.realm-download-guide-grid strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(214, 176, 122, 0.34);
  color: var(--gold-soft);
  font-family: "Marcellus SC", serif;
}

.realm-download-guide-grid span {
  color: var(--text-soft);
  line-height: 1.65;
}

.realm-rankings-shell {
  grid-template-columns: 300px 1fr;
  align-items: start;
}

.realm-rankings-art {
  position: sticky;
  top: 134px;
  min-height: 720px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(8, 5, 5, 0.1), rgba(8, 5, 5, 0.88)),
    radial-gradient(circle at 50% 12%, rgba(255, 122, 50, 0.16), transparent 24%);
}

.realm-rankings-spotlight {
  display: grid;
  align-content: stretch;
}

.realm-rankings-spotlight-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 100%;
}

.realm-rankings-spotlight-copy {
  display: grid;
  gap: 10px;
}

.realm-rankings-spotlight-copy span {
  color: var(--gold);
  font-family: "Marcellus SC", serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.realm-rankings-spotlight-copy strong {
  color: #fff0da;
  font-family: "Marcellus SC", serif;
  font-size: 2rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.realm-rankings-spotlight-copy p,
.realm-rankings-spotlight-copy small {
  color: var(--text-soft);
  line-height: 1.7;
}

.realm-rankings-spotlight-meta {
  display: grid;
  gap: 8px;
}

.realm-rankings-spotlight-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.realm-rankings-spotlight-meta strong {
  color: #fff0da;
  font-family: "Marcellus SC", serif;
  font-weight: 400;
}

.realm-rankings-spotlight-figure {
  min-height: 390px;
  border: 1px solid rgba(199, 148, 92, 0.16);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 122, 50, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(15, 8, 8, 0.14), rgba(8, 5, 5, 0.86));
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.realm-rankings-spotlight-figure img {
  max-width: 86%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.34));
}

.realm-rankings-spotlight-figure.is-castle {
  place-items: center;
}

.realm-rankings-spotlight-figure.is-castle img {
  max-width: 78%;
  max-height: 290px;
}

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

.realm-rankings-class-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.realm-rankings-class-figure {
  height: 176px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
}

.realm-rankings-class-figure img {
  max-height: 154px;
  width: auto;
  object-fit: contain;
}

.realm-rankings-class-card strong {
  color: #fff0da;
  font-family: "Marcellus SC", serif;
  font-weight: 400;
}

.realm-rankings-class-card span,
.realm-rankings-class-card small {
  color: var(--text-soft);
}

.realm-rank-progress {
  height: 8px;
  width: 132px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.realm-rank-progress-fill {
  height: 100%;
  min-width: 1%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 128, 50, 0.78), rgba(255, 188, 92, 0.98));
  box-shadow: 0 0 12px rgba(255, 122, 50, 0.24);
}

.realm-quest-shell {
  grid-template-columns: 260px 1fr;
}

.realm-quest-sidebar {
  display: grid;
  gap: 18px;
}

.realm-quest-menu {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.realm-quest-menu span {
  justify-content: flex-start;
  padding-inline: 14px;
}

.realm-quest-tips p {
  color: var(--text-soft);
  line-height: 1.8;
}

.realm-quest-table-card {
  background:
    linear-gradient(180deg, rgba(30, 14, 12, 0.86), rgba(8, 5, 5, 0.96)),
    url("/static/images/shot2.jpg") right center / 34% no-repeat;
}

.realm-quest-table-head,
.realm-quest-row {
  display: grid;
  grid-template-columns: 1.4fr 80px 120px 120px;
  gap: 14px;
  align-items: center;
}

.realm-quest-table-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--gold-soft);
  font-family: "Marcellus SC", serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.realm-quest-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.realm-quest-scenario {
  margin: 18px 0 6px;
  padding: 14px 0;
  border-top: 1px solid rgba(214, 176, 122, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.realm-quest-scenario:first-child {
  margin-top: 0;
}

.realm-quest-scenario h2 {
  margin: 0;
  color: var(--gold-soft);
  font-family: "Marcellus SC", serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.realm-quest-scenario h2 span {
  color: var(--gold);
  font-size: 0.9rem;
}

.realm-quest-scenario p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.realm-quest-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.realm-quest-row strong {
  display: block;
  color: var(--gold-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
}

.realm-quest-row p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.realm-quest-details {
  margin-top: 8px;
  color: var(--text-soft);
}

.realm-quest-details summary {
  cursor: pointer;
  width: max-content;
  color: var(--gold);
  font-family: "Marcellus SC", serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.realm-quest-details ol {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.7;
}

.realm-footer {
  position: relative;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8, 5, 5, 0.7), rgba(4, 3, 3, 0.94));
  border-top-color: rgba(165, 110, 61, 0.42);
  flex-shrink: 0;
}

.realm-footer-grid {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.realm-footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px clamp(28px, 7vw, 136px);
}

.realm-footer-socials {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.realm-footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: rgba(244, 232, 213, 0.48);
  transition: color 0.18s ease, transform 0.18s ease;
}

.realm-footer-socials a:hover {
  color: var(--gold-soft);
  transform: translateY(-1px);
}

.realm-footer-bar {
  padding: 0;
  border-top: 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 1.05rem;
}

.ek-skeleton {
  min-height: 60px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: ekshimmer 1.25s linear infinite;
}

@keyframes ekshimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 1200px) {

  .realm-home-panels,
  .realm-triple,
  .eclipse-gallery-grid,
  #mediaScreens,
  .eclipse-shop-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .realm-home-stage {
    min-height: auto;
    padding-inline: 24px;
  }

  .realm-home-title-art {
    width: min(560px, 74vw);
  }

  .realm-register-shell,
  .realm-rankings-shell,
  .realm-vote-shell,
  .realm-quest-shell,
  .realm-news-detail-shell,
  .realm-news-detail-core,
  .realm-download-feature,
  .realm-download-guide-grid {
    grid-template-columns: 1fr;
  }

  .realm-rankings-art {
    position: static;
    min-height: auto;
  }

  .realm-rankings-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .realm-vote-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .realm-register-side {
    min-height: 260px;
  }

  .realm-register-art,
  .realm-rankings-art {
    min-height: 280px;
  }
}

@media (max-width: 1480px) {
  .realm-brand {
    min-width: 300px;
    min-height: 92px;
    padding: 14px 20px 14px 34px;
    gap: 14px;
  }

  .realm-brand-mark {
    width: 62px;
    height: 62px;
  }

  .realm-brand-copy strong {
    font-size: 1.9rem;
  }

  .realm-brand-copy span {
    font-size: 0.68rem;
  }

  .realm-nav-link {
    min-width: 82px;
    min-height: 92px;
    padding-inline: 8px;
    font-size: 0.92rem;
  }

  .realm-nav-icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 1024px) {
  .realm-header-inner {
    width: 100%;
    transform: none;
    justify-content: space-between;
  }

  .realm-brand {
    min-height: 96px;
  }

  .realm-mobile-toggle {
    display: inline-flex;
  }

  .realm-nav {
    display: none;
  }

  .realm-dual,
  .realm-split,
  .ek-section-grid-2,
  .realm-footer-grid {
    grid-template-columns: 1fr;
  }

  .realm-news-archive-head,
  .realm-news-detail-topbar {
    display: grid;
    align-items: start;
  }

  .realm-news-item-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ek-card-grid,
  .ek-mirror-grid {
    grid-template-columns: 1fr;
  }

  .realm-download-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .realm-vote-secret-panel,
  .realm-vote-shop-head {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .realm-quest-table-head,
  .realm-quest-row {
    grid-template-columns: 1fr;
  }

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

  .realm-footer-grid,
  .realm-footer-socials {
    justify-items: center;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .realm-site-shell {
    width: 100%;
    margin: 0;
  }

  .realm-main {
    width: min(1480px, calc(100% - 20px));
    padding: 12px 0;
  }

  .realm-main:has(.realm-home-reference) {
    padding: 0;
  }

  .realm-brand {
    padding: 16px;
    gap: 12px;
  }

  .realm-brand-mark {
    width: 60px;
    height: 60px;
  }

  .realm-brand-copy strong {
    font-size: 1.45rem;
  }

  .realm-page-hero,
  .realm-frame,
  .ek-panel,
  .eclipse-shop-copy,
  .eclipse-shop-note {
    padding: 18px;
  }

  .realm-news-item-summary,
  .realm-news-item-body {
    padding-inline: 16px;
  }

  .realm-news-detail-hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .realm-home-panels,
  .realm-triple,
  .eclipse-gallery-grid,
  #mediaScreens,
  .eclipse-shop-packages {
    grid-template-columns: 1fr;
  }

  .realm-rankings-class-grid {
    grid-template-columns: 1fr;
  }

  .realm-vote-metrics,
  .realm-vote-balance-grid,
  .realm-vote-shop-meta,
  .realm-vote-shop-grid {
    grid-template-columns: 1fr;
  }

  .realm-vote-secret-box,
  .realm-vote-shop-balance {
    min-width: 0;
    text-align: left;
  }

  .realm-home-stage {
    padding: 28px 14px 18px;
  }

  .realm-home-center {
    padding-top: 58px;
  }

  .realm-home-title-art {
    width: min(360px, 88vw);
  }

  .realm-home-tagline {
    font-size: 1.2rem;
  }

  .realm-home-actionbar {
    gap: 12px;
    margin-top: 28px;
  }

  .realm-home-btn {
    width: 100%;
  }

  .realm-home-panel {
    min-height: auto;
    padding: 20px;
  }

  .realm-home-panel h2 {
    font-size: 1.2rem;
  }

  .realm-footer-grid {
    padding: 20px 18px;
  }

  .realm-footer-bar {
    padding: 0;
  }
}
