/* MansoryPW — обычный CSS, не extra.less.
   Кладите файл в styles/hollypw/ рядом с картинками. */

:root {
  --ink: #f7f1ff;
  --muted: #d7c6ea;
  --gold: #ecd9a0;
  --wrap: 1260px;
  --serif: Cinzel, "Cormorant Garamond", serif;
  --body: "Cormorant Garamond", Georgia, serif;
  --sans: Montserrat, "Segoe UI", sans-serif;
}

html {
  background: #120418;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

body {
  color: #f7f1ff;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 600;
  background: #120418;
}

.p-pageWrapper {
  position: relative;
  min-height: 100vh;
  overflow: visible;
  background: #160826;
}

.wrap,
.p-body-inner,
.p-footer-inner {
  width: min(1260px, calc(100% - 48px));
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Painted nav buttons (HTML pattern: img + span) ——— */
.ui-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: visible;
  color: #fff;
  border: 0;
  background: transparent;
  text-decoration: none;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, .4));
  transition: filter .2s, transform .2s;
}
.ui-btn:hover {
  filter: drop-shadow(0 0 18px rgba(232, 180, 255, .9));
  transform: translateY(-2px) scale(1.03);
}
.ui-btn:active { transform: translateY(1px) scale(.98); }
.ui-btn > img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  display: block;
}
.ui-btn > span {
  grid-area: 1 / 1;
  z-index: 1;
  padding: 8px 24px 0;
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 0 #1a0618, 0 2px 4px #000;
  -webkit-text-stroke: .3px rgba(255, 255, 255, .55);
  white-space: nowrap;
  color: #fff;
}
.ui-btn--nav {
  width: 210px;
  height: 75px;
  justify-self: end;
  flex: 0 0 auto;
  grid-column: 3;
}
.ui-btn--nav > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1;
  padding: 7px 16px 0;
  white-space: nowrap;
}
.ui-btn--menu {
  width: 132px;
  height: 47px;
  flex: 0 0 auto;
}
.ui-btn--menu > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  padding: 6px 6px 0;
}
.nav .ui-btn.is-active {
  filter: drop-shadow(0 0 14px rgba(232, 180, 255, .95));
}

/* ——— Header over hero ——— */
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  overflow: visible;
  animation: hp-fade-down .7s ease both;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}
.header.is-stuck {
  position: fixed;
  background: rgba(16, 5, 28, .9);
  backdrop-filter: blur(14px);
}
.hp-account {
  position: absolute;
  top: 92px;
  right: 16px;
  z-index: 32;
  display: flex;
  align-items: center;
  gap: 2px;
}
.p-navgroup--guest { display: none !important; }
.p-navSticky:has(.p-navgroup--guest) { display: none !important; }
.header__row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  height: 92px;
  min-height: 92px;
  gap: 12px;
  overflow: visible;
}
.logo {
  position: absolute;
  left: clamp(4px, 1.8vw, 28px);
  top: 2px;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(440px, 34vw);
  height: min(242px, 19vw);
  margin: 0;
  overflow: visible;
  line-height: 1;
  z-index: 34;
  transition: transform .28s ease;
}
.logo:hover { transform: scale(1.04); }
.logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  display: block;
  filter:
    drop-shadow(0 8px 16px rgba(8, 2, 16, .55))
    drop-shadow(0 0 12px rgba(236, 217, 160, .32))
    drop-shadow(0 0 20px rgba(255, 248, 230, .16));
  animation: hp-logo-breathe 5.6s ease-in-out infinite;
}
.logo::before {
  content: "";
  position: absolute;
  inset: 10% -22% -28% -22%;
  background: radial-gradient(ellipse 52% 48% at 50% 48%, rgba(255, 236, 210, .28), transparent 70%);
  filter: blur(26px);
  animation: hp-logo-aura 5.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .1) 42%, rgba(255, 255, 255, .75) 50%, rgba(255, 236, 200, .32) 56%, transparent 70%);
  background-size: 240% 100%;
  background-position: 130% 0;
  animation: hp-logo-sheen 5.2s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  -webkit-mask-image: url("ui-logo.png");
  mask-image: url("ui-logo.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.logo__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.logo__sparkles i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 236, 200, .7);
  animation: hp-logo-twinkle 2.6s ease-in-out infinite;
}
.logo__sparkles i:nth-child(1) { top: 4%; left: 50%; margin-left: -2px; }
.logo__sparkles i:nth-child(2) { bottom: 8%; left: 50%; margin-left: -2px; width: 4px; height: 4px; animation-delay: .7s; }
.logo__sparkles i:nth-child(3) { top: 42%; left: 14%; width: 3px; height: 3px; animation-delay: 1.2s; }
.logo__sparkles i:nth-child(4) { top: 42%; right: 14%; width: 3px; height: 3px; animation-delay: 1.9s; }

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  grid-column: 2;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(237, 213, 255, .4);
  background: rgba(40, 10, 70, .4);
  color: #fff;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ——— Hero ——— */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  overflow: hidden;
}
.hero--sub {
  min-height: 460px;
  padding: 140px 0 92px;
  align-items: flex-end;
}
.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  pointer-events: none;
  user-select: none;
  display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 42%, rgba(0, 0, 0, .5) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 42%, rgba(0, 0, 0, .5) 70%, transparent 100%);
}
.hero::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(215, 191, 122, .5), transparent);
  box-shadow: 0 0 16px rgba(192, 132, 252, .4), 0 -10px 28px rgba(76, 29, 122, .45);
}
.hero--sub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(22, 8, 38, .22) 18%, rgba(16, 6, 32, .82) 58%, #160826 100%),
    radial-gradient(70% 90% at 82% 108%, rgba(124, 58, 237, .32), transparent 58%);
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 3, 22, .34) 0%, rgba(12, 3, 22, .1) 26%, transparent 52%),
    linear-gradient(180deg, rgba(12, 3, 22, .1) 0%, transparent 28%, rgba(18, 6, 32, .45) 100%);
}
.hero__spark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 24%, rgba(255, 236, 255, .75), transparent),
    radial-gradient(1px 1px at 36% 62%, rgba(232, 180, 255, .6), transparent),
    radial-gradient(1.4px 1.4px at 70% 28%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 84% 70%, rgba(253, 224, 71, .4), transparent);
  animation: hp-spark-twinkle 4.5s ease-in-out infinite;
}
.hero__aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 50% 54% at 52% 46%, rgba(196, 140, 255, .08), transparent 66%);
  mix-blend-mode: screen;
  animation: hp-aura-breathe 5.5s ease-in-out infinite;
}
.hero__mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(105deg, transparent 32%, rgba(232, 180, 255, .025) 50%, transparent 68%);
  background-size: 220% 100%;
  animation: hp-mist-sweep 14s ease-in-out infinite;
}
.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  overflow: visible;
}
.hero__copy > * {
  animation: hp-rise-in .8s cubic-bezier(.22, 1, .36, 1) both;
}
.hero__copy > h1 {
  animation:
    hp-rise-in .8s cubic-bezier(.22, 1, .36, 1) .12s both,
    hp-title-sheen 9.5s ease-in-out 2.4s infinite;
}
.hero__copy > p { animation-delay: .4s; }
.hero h1 {
  margin: 0 0 12px;
  display: inline-block;
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image:
    linear-gradient(108deg, transparent 36%, rgba(255, 255, 255, .12) 44%, rgba(255, 255, 255, .95) 50%, rgba(236, 200, 255, .5) 55%, transparent 64%),
    linear-gradient(180deg, #fffef8 0%, #f4eeff 10%, #fff4d4 24%, #e8d19a 42%, #f0ddb0 54%, #c9a24a 72%, #9a7328 88%, #6e5018 100%);
  background-size: 240% 100%, 100% 100%;
  background-position: 140% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 1px 0 rgba(255, 248, 230, .4))
    drop-shadow(0 3px 0 rgba(72, 44, 12, .4))
    drop-shadow(0 8px 18px rgba(12, 2, 28, .85))
    drop-shadow(0 0 16px rgba(192, 132, 252, .42));
}
.hero p {
  margin: 0 0 22px;
  color: #f4e6c8;
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.55;
  text-shadow: 0 2px 12px #000, 0 0 14px rgba(192, 132, 252, 0.35);
}

/* Hide default XF chrome replaced by MansoryPW header/hero */
.p-header { display: none !important; }

.p-staffBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(10, 2, 18, .55);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  color: #ecd9a0;
}

.p-navSticky,
.p-nav {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.p-navSticky {
  position: fixed !important;
  top: 12px;
  right: 16px;
  left: auto;
  width: auto;
  z-index: 40;
  margin: 0 !important;
}
.p-nav-inner {
  max-width: none;
  padding: 0 !important;
  background: none !important;
  min-height: 0 !important;
}
.p-nav-list,
.p-nav-smallLogo,
.p-nav-menuTrigger,
.p-sectionLinks,
.p-discovery {
  display: none !important;
}
.p-navgroup-link {
  color: #ecd9a0 !important;
  background: transparent !important;
}
.p-navgroup-linkText {
  font-size: 12px;
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-shadow: 0 1px 8px #140318, 0 0 10px rgba(192, 132, 252, 0.45);
}

/* ——— Page body like .page on the mock ——— */
.p-body {
  position: relative;
  z-index: 4;
  margin-top: -72px;
  padding: 28px 0 80px;
  background:
    linear-gradient(180deg, rgba(22, 8, 38, 0), #160826 88px),
    #160826;
}

body[data-template="forum_list"] .p-body-header { display: none; }

.hp-bar.xf-panel,
.hp-bar {
  position: relative;
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 14px 36px;
  margin-bottom: 32px;
}
.hp-bar .p-breadcrumbs {
  display: none !important;
}
.hp-socials {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  margin-right: auto;
  z-index: 3;
}
.hp-social {
  width: 132px;
  height: 47px;
  overflow: visible;
}
.hp-social > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 6px 8px 0;
}

.xf-actions {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
  overflow: visible;
  z-index: 3;
}
.xf-actions .xf-action {
  width: 132px;
  height: 47px;
  z-index: 3;
  overflow: visible;
}
.xf-actions .xf-action > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 6px 8px 0;
}

.p-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 2px 0 0 4px;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #5a3a18;
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.p-breadcrumbs > li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: none;
}
.p-breadcrumbs > li a { color: #4a1578; }
.p-breadcrumbs > li a:hover { color: #8a5a12; }
.p-breadcrumbs > li:after {
  content: "/";
  margin: 0;
  opacity: .45;
  color: #6a4a7c;
  font-weight: 400;
  font-size: 13px;
}
.p-breadcrumbs--bottom { display: none !important; }

.p-body-main,
.p-body-main--withSidebar,
.p-body-main--withSideNav,
.p-body-main--withSideNav.p-body-main--withSidebar {
  display: grid !important;
  width: 100% !important;
  table-layout: auto;
  gap: 32px;
  align-items: start;
}
.p-body-main--withSidebar {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.p-body-contentCol,
.p-body-sidebarCol,
.p-body-sideNavCol {
  display: none !important;
  width: 0 !important;
}
.p-body-content,
.p-body-sidebar,
.p-body-sideNav {
  display: block !important;
  width: auto !important;
  padding: 0 !important;
}
.p-body-sidebar {
  display: grid !important;
  gap: 42px;
}

/* ——— Parchment panels ——— */
.block-container,
.hp-bar {
  position: relative;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, .28), rgba(236, 214, 255, .12) 55%),
    url("panel-glass.png") center / cover no-repeat;
  border: 2px solid #d7bf7a;
  box-shadow:
    0 0 0 1px #6a4e18,
    inset 0 0 0 1px rgba(255, 248, 220, .55),
    inset 0 0 42px rgba(168, 85, 247, .1),
    0 16px 40px rgba(20, 0, 40, .28),
    0 0 28px rgba(192, 132, 252, .22);
  border-radius: 0;
  animation: hp-xf-glow 7.5s ease-in-out infinite;
}
.block-container { margin-bottom: 42px; }
.p-body-sidebar .block-container { margin-bottom: 0; }

.block-container::before,
.hp-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(110deg, transparent 36%, rgba(255, 248, 230, .32) 50%, transparent 64%);
  background-size: 220% 100%;
  background-position: 140% 0;
  animation: hp-xf-sheen 8s ease-in-out 1.6s infinite;
  mix-blend-mode: overlay;
}
.block-container::after,
.hp-bar::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(236, 217, 160, .42);
  pointer-events: none;
  z-index: 1;
}
.block-container > *,
.hp-bar > * {
  position: relative;
  z-index: 2;
}
.block-container > .jewel,
.hp-bar > .jewel,
.block-container > .xf-charm,
.hp-bar > .xf-charm {
  position: absolute;
  z-index: 4;
}

.jewel {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, .75));
  animation: hp-gem-pulse 2.8s ease-in-out infinite;
}
.jewel-tr { animation-delay: .35s; }
.jewel-bl { animation-delay: .7s; }
.jewel-br { animation-delay: 1.05s; }
.jewel-mid { animation-delay: .2s; }
.jewel-mid-b { animation-delay: .9s; }
.jewel-tl, .jewel-tr, .jewel-bl, .jewel-br {
  width: 46px;
  height: 46px;
}
.jewel-tl { top: -10px; left: -10px; }
.jewel-tr { top: -10px; right: -10px; transform: scaleX(-1); }
.jewel-bl { bottom: -10px; left: -10px; transform: scaleY(-1); }
.jewel-br { bottom: -10px; right: -10px; transform: scale(-1); }
.jewel-mid {
  width: 28px;
  height: 36px;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  mix-blend-mode: screen;
}
.jewel-mid-b {
  width: 24px;
  height: 30px;
  bottom: -16px;
  top: auto;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  mix-blend-mode: screen;
}

.xf-charm {
  position: absolute;
  inset: -2px;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
  --run-delay: 0s;
  --pulse-delay: 0s;
  --bead: 0s;
}
.xf-charm::before,
.xf-charm::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.xf-charm::before {
  border: 2px solid transparent;
  animation: hp-charm-pulse 16s ease-in-out infinite;
  animation-delay: var(--pulse-delay);
}
.xf-charm::after {
  animation: hp-charm-pulse-glow 16s ease-in-out infinite;
  animation-delay: var(--pulse-delay);
}
.xf-charm i {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  offset-path: inset(1px);
  offset-anchor: center;
  offset-rotate: 0deg;
  background: radial-gradient(circle at 35% 30%, #fffef8 0 24%, #ffe389 44%, #c4922a 64%, transparent 72%);
  box-shadow: 0 0 8px 2px rgba(255, 224, 140, .72);
  animation: hp-charm-run 13s linear infinite;
  animation-delay: calc(var(--run-delay) + var(--bead, 0s));
}
.xf-charm i:nth-child(2) {
  width: 9px;
  height: 9px;
  --bead: 0s;
  background: radial-gradient(circle at 35% 30%, #fffef8 0 22%, #ffe9a0 40%, #d4a017 62%, transparent 70%);
  box-shadow:
    0 0 10px 3px rgba(255, 236, 190, .95),
    0 0 18px 6px rgba(212, 175, 55, .55),
    0 0 26px 8px rgba(192, 132, 252, .22);
}
.xf-charm i:nth-child(3) {
  width: 6px;
  height: 6px;
  opacity: .62;
  --bead: .1s;
}
.xf-charm i:nth-child(4) {
  width: 4px;
  height: 4px;
  opacity: .28;
  filter: blur(.35px);
  --bead: .2s;
}
.xf-charm__streak {
  width: 28px;
  height: 5px;
  border-radius: 6px;
  --bead: .04s;
  offset-rotate: auto;
  offset-anchor: 100% 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 214, 120, .12) 28%, rgba(255, 224, 150, .55) 68%, #fff8e4 100%);
  box-shadow:
    0 0 8px 1px rgba(255, 220, 150, .45),
    -6px 0 10px rgba(192, 132, 252, .12);
}
.hp-bar .xf-charm { --run-delay: 0s; --pulse-delay: 0s; }
.p-body-content .block:nth-of-type(1) .xf-charm { --run-delay: -3.6s; --pulse-delay: -5s; }
.p-body-content .block:nth-of-type(2) .xf-charm { --run-delay: -7.4s; --pulse-delay: -9s; }
.p-body-sidebar .block:nth-of-type(1) .xf-charm { --run-delay: -10.2s; --pulse-delay: -2s; }
.p-body-sidebar .block:nth-of-type(2) .xf-charm { --run-delay: -12.1s; --pulse-delay: -12s; }

.block-header,
.block-minorHeader,
.block--category .block-header {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 26px 16px 14px 44px !important;
  text-align: left !important;
  background: linear-gradient(180deg, rgba(255, 248, 230, .55), rgba(236, 214, 255, .18));
  border: 0;
  border-bottom: 1px solid rgba(180, 140, 70, 0.38);
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4a2208;
  text-shadow:
    0 1px 0 #fff8e6,
    0 0 1px #4a2208;
  box-shadow: none;
}
.block-header > *,
.block-minorHeader > * {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 100%;
  display: inline-block !important;
  text-align: left !important;
  margin: 0 !important;
}
.block-header a,
.block-minorHeader a {
  color: #4a2208 !important;
  font-weight: 800;
  text-decoration: none !important;
}
.p-body-sidebar .block-header,
.p-body-sidebar .block-minorHeader {
  padding: 28px 14px 12px 22px !important;
  font-size: 15px;
  letter-spacing: .08em;
  line-height: 1.35;
}

.block-footer {
  background: rgba(10, 4, 20, .18);
  border-top: 1px solid rgba(180, 140, 70, 0.22);
  color: #5a3a72;
}

.p-staffBar ~ .header { top: 28px; }
.p-staffBar ~ .header.is-stuck { top: 0; }

.node-body {
  display: grid !important;
  table-layout: auto;
  width: 100%;
  grid-template-columns: 56px minmax(0, 1fr) auto minmax(120px, .8fr);
  gap: 12px;
  align-items: center;
  padding: 14px 18px 14px 20px;
  position: relative;
  overflow: visible;
  isolation: isolate;
  border-top: 1px solid rgba(180, 140, 70, 0.28);
  transition: background .26s ease, box-shadow .26s ease;
}
.node-icon,
.node-main,
.node-stats {
  display: block !important;
  float: none !important;
}
.node:first-child .node-body { border-top: 0; }
.node-body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 248, 230, .5) 48%, transparent 64%);
  background-size: 220% 100%;
  background-position: 130% 0;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity .26s ease, background-position .32s ease;
}
.node:hover .node-body {
  background: linear-gradient(180deg, rgba(255, 250, 242, .38), rgba(236, 214, 255, .14));
  box-shadow:
    inset 0 0 0 1px rgba(215, 191, 122, 0.62),
    inset 0 0 32px rgba(168, 85, 247, 0.14);
}
.node:hover .node-body::after {
  opacity: 1;
  background-position: -30% 0;
}
.node-icon,
.node-main,
.node-stats,
.node-extra { position: relative; z-index: 2; }
.node-icon i {
  color: #c084fc;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.80));
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), filter .26s ease;
}
.node:hover .node-icon i {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(192, 132, 252, 0.90));
}
.node-title {
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.node-title a,
.node-title a:link,
.node-title a:visited {
  color: #2a0a42 !important;
  text-decoration: none !important;
  transition: color .26s ease, text-shadow .26s ease;
}
.node-title a:hover,
.node:hover .node-title a {
  color: #6d28d9 !important;
  text-shadow: 0 0 14px rgba(192, 132, 252, 0.40);
}
.node-description,
.node-extra,
.node-stats,
.node-stats dt,
.node-stats dd {
  color: #2a1638 !important;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
}
.node-extra a,
.node-extra a:visited,
.node-stats a,
.node-stats a:visited {
  color: #2a0a42 !important;
  text-decoration: none !important;
}
.node:hover .node-description,
.node:hover .node-extra,
.node:hover .node-stats { color: #2a1638; }
.node-stats {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 84px;
  padding: 0 10px;
}
.node-stats .pairs:nth-child(n+2) {
  display: none !important;
}
.node-stats .pairs {
  display: flex !important;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  text-align: center;
}
.node-stats dt,
.node-stats dd {
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}
.node-stats dd {
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #2a0a42 !important;
}
.node-stats dt {
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5a3810 !important;
}
.node-extra {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  min-width: 210px;
  color: #2a1638 !important;
}
.node-extra-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.node-extra-row {
  grid-column: 2;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip;
  line-height: 1.35;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #2a1638 !important;
}
.node-extra-title {
  display: block;
  color: #2a0a42 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}
.node-extra-date,
.node-extra time,
.node-extra .u-dt,
.node-extra .listInline,
.node-extra .listInline > li {
  display: inline !important;
  color: #2a1638 !important;
  -webkit-text-fill-color: #2a1638 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.node-extra-user,
.node-extra-user a {
  color: #4a2208 !important;
  font-weight: 800 !important;
}
.contentRow-minor,
.contentRow-minor time,
.contentRow-minor .u-dt,
.structItem-minor,
.structItem-latestDate,
.structItem-cell--latest time {
  color: #2a1638 !important;
  -webkit-text-fill-color: #2a1638 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.structItem { border-top: 1px solid rgba(180, 140, 70, 0.28); }
.structItem-title a { color: #4a1578; }
.structItem-title a:hover { color: #6d28d9; }
.structItem-cell--meta,
.structItem-minor { color: #6a4a7c; }

.message-body,
.bbWrapper,
.p-body-pageContent {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.message-userArrow:after { border-right-color: rgba(255, 248, 240, 0.40); }
.message-name .username { color: #4a1578; }
.message-attribution,
.message-lastEdit { color: #6a4a7c; }
.bbWrapper { color: #3d2458; line-height: 1.65; }

.p-body-content a,
.p-body-content a:link,
.p-body-content a:visited,
.p-body-sidebar a,
.p-body-sidebar a:link,
.p-body-sidebar a:visited,
.p-body .block-body a,
.p-body .block-body a:link,
.p-body .block-body a:visited {
  color: #4a1578 !important;
  text-decoration: none !important;
}
.p-body-content a:hover,
.p-body-sidebar a:hover,
.p-body .block-body a:hover { color: #6d28d9 !important; }
.block-header a,
.block-minorHeader a,
.p-body-content .block-header a,
.p-body-sidebar .block-minorHeader a {
  color: #7a4310 !important;
}

/* XF action buttons: parchment, not stretched nav frames */
.button,
a.button {
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.button.button--primary,
a.button.button--primary,
.button.button--cta,
a.button.button--cta {
  background: linear-gradient(180deg, rgba(255, 248, 240, .28), rgba(236, 214, 255, .12)), url("panel-glass.png") center / cover no-repeat;
  border: 1px solid #d7bf7a;
  box-shadow: 0 0 0 1px #6a4e18, inset 0 0 0 1px rgba(255, 248, 220, .5), 0 0 14px rgba(192, 132, 252, .35);
  color: #4a1578;
  text-shadow: 0 1px 0 rgba(255, 248, 220, .55);
}

.input,
.inputGroup .input,
.fr-box.fr-basic {
  background: rgba(12, 6, 20, .55);
  border: 1px solid rgba(237, 213, 255, 0.28);
  color: #f7f1ff;
}
.input:focus {
  border-color: #c084fc;
  box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.25);
}

.tabs-tab { color: #d7c6ea; }
.tabs-tab.is-active {
  color: #ecd9a0;
  border-bottom-color: #d4af37;
}

.menu-content {
  background: #1a0b2e;
  border: 1px solid rgba(212, 175, 55, 0.40);
  color: #f7f1ff;
}
.menu-linkRow:hover { background: rgba(192, 132, 252, 0.14); }

.notice {
  background: rgba(107, 33, 168, 0.50);
  border: 1px solid rgba(212, 175, 55, 0.40);
  color: #f7f1ff;
}

.avatar img {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.40), 0 0 12px rgba(192, 132, 252, 0.40);
}

/* ——— Footer ——— */
.footer,
.p-footer {
  padding-top: 48px;
  background:
    radial-gradient(700px 220px at 50% 120%, rgba(168, 85, 247, .26), transparent 60%),
    linear-gradient(180deg, #160428, #0a0112);
  border-top: 0;
  color: #d7c6ea;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr .7fr .7fr .7fr;
  gap: 24px;
  padding-bottom: 36px;
}
.logo--foot {
  position: relative;
  left: auto;
  top: auto;
  width: 280px;
  height: 124px;
  margin: 0;
  z-index: 1;
}
.logo--foot:hover { transform: scale(1.03); }
.logo--foot img { height: 118px; max-width: 280px; }
.footer h4,
.p-footer h3 {
  margin-bottom: 12px;
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ecd9a0;
}
.footer ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.footer li a,
.p-footer a { color: #d7c6ea; font-size: 15px; font-weight: 600; }
.footer li a::before {
  content: "◆";
  margin-right: 8px;
  color: #c084fc;
  font-size: 8px;
  vertical-align: middle;
}
.footer li a:hover,
.p-footer a:hover { color: #fff; }
.copy,
.p-footer-copyright {
  padding: 16px 0 22px;
  text-align: center;
  color: #c4b0d8;
  font-size: 14px;
  font-weight: 600;
  border-top: 1px solid rgba(212, 175, 55, .28);
}

@media (max-width: 1180px) {
  .logo { width: 260px; height: 142px; left: 8px; top: 4px; }
  .header__row { grid-template-columns: minmax(160px, 1fr) auto auto; }
  .ui-btn--menu { width: 118px; height: 42px; }
  .ui-btn--menu > span { font-size: 9px; letter-spacing: .08em; }
  .hp-social { width: 112px; height: 40px; }
  .hp-account { top: 84px; right: 8px; }
}
@media (max-width: 1024px) {
  .p-body-main--withSidebar { grid-template-columns: 1fr; }
  .node-body { grid-template-columns: 48px 1fr; }
  .node-stats,
  .node-extra { display: none; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 0 20px;
    background: rgba(12, 6, 20, .95);
  }
  .nav.is-open { display: flex; }
  .nav .ui-btn--menu { width: 220px; }
  .nav .ui-btn--menu > span { font-size: 13px; font-weight: 800; }
  .header__row { grid-template-columns: auto 1fr auto; }
  .ui-btn--nav { grid-column: auto; width: 188px; height: 67px; }
  .ui-btn--nav > span { font-size: 9px; letter-spacing: .05em; padding: 6px 12px 0; }
  .logo { width: 168px; height: 92px; left: 8px; top: 4px; }
  .hp-account { top: 88px; right: 8px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hp-bar {
    justify-content: center;
    padding-left: 16px;
  }
  .hp-socials,
  .xf-actions {
    margin: 0 auto;
    justify-content: center;
  }
}

@keyframes hp-fade-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes hp-rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes hp-title-sheen {
  0%, 72% { background-position: 140% 0, 0 0; }
  86% { background-position: -48% 0, 0 0; }
  87%, 100% { background-position: 140% 0, 0 0; }
}
@keyframes hp-spark-twinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@keyframes hp-aura-breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes hp-mist-sweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes hp-logo-breathe {
  0%, 100% {
    filter:
      drop-shadow(0 8px 16px rgba(8, 2, 16, .55))
      drop-shadow(0 0 12px rgba(236, 217, 160, .32))
      drop-shadow(0 0 20px rgba(255, 248, 230, .16));
    transform: scale(1);
  }
  50% {
    filter:
      drop-shadow(0 10px 18px rgba(8, 2, 16, .4))
      drop-shadow(0 0 18px rgba(245, 228, 180, .48))
      drop-shadow(0 0 26px rgba(255, 252, 240, .22));
    transform: scale(1.012);
  }
}
@keyframes hp-logo-aura {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: .75; transform: scale(1.04); }
}
@keyframes hp-logo-sheen {
  0% { background-position: 130% 0; }
  40%, 100% { background-position: -50% 0; }
}
@keyframes hp-logo-twinkle {
  0%, 100% { opacity: .2; transform: scale(.55); }
  45% { opacity: 1; transform: scale(1.35); }
  70% { opacity: .35; transform: scale(.8); }
}
@keyframes hp-gem-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(192, 132, 252, .55)); opacity: .88; }
  50% { filter: drop-shadow(0 0 16px rgba(232, 180, 255, 1)); opacity: 1; }
}
@keyframes hp-charm-run {
  to { offset-distance: 100%; }
}
@keyframes hp-charm-pulse {
  0%, 86%, 100% { border-color: transparent; }
  89% { border-color: rgba(255, 248, 210, 1); }
  91.5% { border-color: rgba(255, 236, 180, .95); }
  94% { border-color: rgba(232, 196, 255, .7); }
  97% { border-color: transparent; }
}
@keyframes hp-charm-pulse-glow {
  0%, 86%, 100% { box-shadow: 0 0 0 0 transparent, inset 0 0 0 0 transparent; }
  89% {
    box-shadow:
      0 0 0 1px rgba(255, 244, 200, .7),
      0 0 28px 8px rgba(255, 214, 120, .72),
      0 0 54px 16px rgba(192, 132, 252, .42),
      inset 0 0 28px rgba(255, 236, 180, .35);
  }
  91.5% {
    box-shadow:
      0 0 22px 6px rgba(255, 220, 150, .5),
      0 0 40px 12px rgba(216, 170, 255, .38),
      inset 0 0 20px rgba(232, 196, 255, .2);
  }
  94% {
    box-shadow:
      0 0 14px 2px rgba(216, 170, 255, .22),
      inset 0 0 10px rgba(216, 170, 255, .08);
  }
  97% { box-shadow: 0 0 0 0 transparent, inset 0 0 0 0 transparent; }
}
@keyframes hp-xf-sheen {
  0%, 58% { background-position: 140% 0; opacity: 0; }
  68% { opacity: 1; }
  86%, 100% { background-position: -40% 0; opacity: 0; }
}
@keyframes hp-xf-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px #6a4e18,
      inset 0 0 0 1px rgba(255, 248, 220, .55),
      inset 0 0 42px rgba(168, 85, 247, .1),
      0 16px 40px rgba(20, 0, 40, .28),
      0 0 22px rgba(192, 132, 252, .16);
  }
  50% {
    box-shadow:
      0 0 0 1px #8a6a22,
      inset 0 0 0 1px rgba(255, 248, 220, .7),
      inset 0 0 48px rgba(192, 132, 252, .16),
      0 16px 40px rgba(20, 0, 40, .32),
      0 0 36px rgba(232, 180, 255, .38);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header, .hero__copy > *, .logo img, .logo::before, .logo::after, .jewel, .xf-charm i {
    animation: none !important;
  }
}

.p-body-sidebar .block-body,
.p-body-sidebar .contentRow-minor,
.pairs,
.pairs dt,
.pairs dd {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #2a1638;
}
.p-body-sidebar a { font-weight: 800; }

.ui-btn > span,
.ui-btn--menu > span,
.ui-btn--nav > span,
.hp-social > span,
.xf-action > span {
  color: #fff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 #140318, 0 2px 5px #000, 0 0 1px #fff !important;
}
.ui-btn--menu > span,
.hp-social > span,
.xf-action > span { font-size: 11px !important; letter-spacing: .06em !important; }
.ui-btn--nav > span { font-size: 12px !important; letter-spacing: .04em !important; }
.block-header,
.block-minorHeader,
.block-header a,
.block-minorHeader a {
  color: #4a2208 !important;
  font-weight: 800 !important;
}
.node-title a,
.node-title a:link,
.node-title a:visited {
  color: #2a0a42 !important;
  font-weight: 800 !important;
}
.p-body-content,
.bbWrapper,
.message-body {
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 600;
  color: #24102c;
}

html, body, *, *::before, *::after { cursor: auto !important; }
a, a *, button, button *, .ui-btn, .ui-btn *, .xf-btn, .xf-btn *,
.node, label, summary, [role="button"], .p-navgroup-link { cursor: pointer !important; }
input, textarea, select, [contenteditable="true"] { cursor: text !important; }
.magic-ui, .hp-cursor, #hp-cursor, .pw-cursor { display: none !important; }
