@font-face {
  font-family: 'MedievalSharp';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/MedievalSharp.ttf') format('truetype');
}

:root {
  --bg-main: #02050a;
  --bg-soft: #08111d;
  --panel: rgba(8, 18, 32, 0.84);
  --line: rgba(88, 197, 255, 0.32);
  --line-strong: rgba(88, 197, 255, 0.72);
  --text-main: #8fe7ff;
  --text-soft: #5ecfff;
  --text-bright: #d7f8ff;
  --shadow: 0 0 24px rgba(88, 197, 255, 0.16);
}

html {
  scrollbar-gutter: stable;
  background-color: #02050a;
  overscroll-behavior: none;
}

body {
  overscroll-behavior: none;
}

* {
  font-family: "MedievalSharp", cursive;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
}

body {
  position: relative;
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(132, 217, 255, 0.18), transparent 28%),
    radial-gradient(circle at 15% 20%, rgba(61, 120, 173, 0.16), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(34, 83, 135, 0.16), transparent 22%),
    radial-gradient(circle at 50% 120%, rgba(202, 238, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #122235 0%, #091420 34%, #04090f 68%, #010203 100%);
  overflow-x: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(176, 38, 63, 0.18), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(122, 20, 39, 0.22), transparent 30%),
    radial-gradient(circle at 18% 16%, rgba(125, 18, 39, 0.12), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(92, 12, 31, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(13, 5, 8, 0.985), rgba(5, 2, 4, 1));
  z-index: 9999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.site-loader::before,
.site-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-loader::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.18;
}

.site-loader::after {
  background:
    radial-gradient(circle at center, rgba(214, 70, 98, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.018));
  mix-blend-mode: screen;
  opacity: 0.68;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.site-loader__panel {
  position: relative;
  width: min(560px, 100%);
  padding: 32px 28px 26px;
  overflow: hidden;
  border: 1px solid rgba(150, 27, 48, 0.26);
  border-radius: 40px;
  background:
    radial-gradient(circle at 50% 18%, rgba(148, 26, 49, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(24, 9, 14, 0.98), rgba(7, 3, 5, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(88, 13, 26, 0.16),
    0 30px 80px rgba(0, 0, 0, 0.48);
}

.site-loader__panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(153, 39, 59, 0.12);
  border-radius: 30px;
  pointer-events: none;
}

.site-loader__panel::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 74, 97, 0.92), transparent 72%);
}

.site-loader__panel--rift {
  min-height: 520px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.site-loader__rift {
  position: relative;
  width: min(100%, 330px);
  height: 390px;
}

.site-loader__rift-halo,
.site-loader__rift-ring,
.site-loader__shard,
.site-loader__monolith,
.site-loader__glow,
.site-loader__fissure,
.site-loader__bar {
  position: absolute;
}

.site-loader__rift-halo {
  left: 50%;
  top: 48%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(173, 33, 59, 0.24), rgba(60, 11, 21, 0.14) 42%, transparent 72%);
  filter: blur(14px);
  animation: loaderHaloPulse 3.4s ease-in-out infinite;
}

.site-loader__rift-ring {
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(170, 46, 69, 0.22);
}

.site-loader__rift-ring--outer {
  width: 286px;
  height: 286px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 28px rgba(115, 21, 39, 0.16);
  animation: loaderOrbit 10s linear infinite;
}

.site-loader__rift-ring--inner {
  width: 212px;
  height: 212px;
  border-color: rgba(255, 209, 165, 0.14);
  opacity: 0.72;
  animation: loaderOrbitReverse 7.2s linear infinite;
}

.site-loader__shard {
  background:
    linear-gradient(180deg, rgba(255, 232, 237, 0.22), rgba(145, 30, 51, 0.4) 38%, rgba(22, 8, 12, 0.96));
  box-shadow:
    0 0 18px rgba(125, 25, 43, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0.8;
}

.site-loader__shard--left {
  left: 42px;
  top: 118px;
  width: 32px;
  height: 92px;
  clip-path: polygon(48% 0%, 100% 32%, 78% 100%, 12% 86%, 0% 28%);
  transform: rotate(-14deg);
  animation: loaderShardFloat 4.2s ease-in-out infinite;
}

.site-loader__shard--right {
  right: 46px;
  top: 102px;
  width: 36px;
  height: 110px;
  clip-path: polygon(42% 0%, 100% 18%, 82% 100%, 8% 76%, 0% 24%);
  transform: rotate(12deg);
  animation: loaderShardFloat 4.8s ease-in-out infinite reverse;
}

.site-loader__shard--top {
  left: 50%;
  top: 36px;
  width: 44px;
  height: 76px;
  clip-path: polygon(50% 0%, 100% 34%, 74% 100%, 18% 84%, 0% 28%);
  transform: translateX(-50%);
  animation: loaderShardFloat 3.9s ease-in-out infinite;
}

.site-loader__monolith {
  left: 50%;
  bottom: 26px;
  width: 132px;
  height: 276px;
  transform: translateX(-50%);
  border-radius: 72px 72px 28px 28px;
  background:
    linear-gradient(180deg, rgba(46, 14, 22, 0.42), rgba(16, 7, 10, 0) 22%),
    linear-gradient(180deg, rgba(24, 8, 13, 0.98), rgba(8, 4, 6, 1) 74%, rgba(4, 2, 3, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -24px 28px rgba(0, 0, 0, 0.3),
    0 24px 46px rgba(0, 0, 0, 0.42);
}

.site-loader__monolith::before {
  content: "";
  position: absolute;
  inset: 16px 18px 20px;
  border-radius: 60px 60px 18px 18px;
  border: 1px solid rgba(147, 37, 58, 0.1);
}

.site-loader__glow {
  left: 50%;
  bottom: 42px;
  width: 190px;
  height: 290px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 225, 175, 0.16), transparent 16%),
    radial-gradient(circle at 50% 48%, rgba(229, 89, 112, 0.22), transparent 28%),
    radial-gradient(circle at 50% 68%, rgba(108, 18, 35, 0.16), transparent 44%);
  filter: blur(12px);
  animation: loaderGlowFlicker 2.2s ease-in-out infinite;
}

.site-loader__fissure {
  left: 50%;
  bottom: 52px;
  width: 30px;
  height: 234px;
  transform: translateX(-50%);
  overflow: hidden;
  clip-path: polygon(50% 0%, 70% 10%, 58% 22%, 74% 38%, 44% 52%, 62% 66%, 34% 80%, 52% 100%, 0% 100%, 14% 78%, 8% 62%, 24% 46%, 12% 28%, 26% 12%);
  background:
    linear-gradient(180deg, rgba(10, 4, 6, 0.98), rgba(17, 7, 10, 0.98));
  box-shadow:
    0 0 18px rgba(214, 89, 114, 0.14),
    inset 0 0 12px rgba(0, 0, 0, 0.46);
}

.site-loader__bar {
  --loader-progress: 8%;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--loader-progress);
  background:
    linear-gradient(180deg, rgba(255, 231, 190, 0.98), rgba(244, 117, 131, 0.94) 34%, rgba(144, 25, 47, 0.9) 76%, rgba(60, 10, 20, 0.78));
  box-shadow:
    0 0 22px rgba(255, 204, 141, 0.22),
    0 0 32px rgba(213, 80, 105, 0.28);
  transition: height 0.22s ease;
}

.site-loader__bar::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 0;
  height: 12px;
  background: radial-gradient(circle, rgba(255, 242, 219, 0.9), rgba(255, 186, 103, 0.24) 58%, transparent 78%);
  filter: blur(3px);
}

.site-loader__caption {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  text-align: center;
}

.site-loader__caption-main {
  color: #fff2f5;
  font-size: 1.12rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow:
    0 0 16px rgba(218, 89, 112, 0.28),
    0 0 28px rgba(255, 204, 144, 0.1);
}

.site-loader__caption-sub {
  color: rgba(228, 205, 211, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

@keyframes loaderHaloPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.78;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
}

@keyframes loaderOrbit {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes loaderOrbitReverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes loaderGlowFlicker {
  0%,
  100% {
    opacity: 0.68;
    transform: translateX(-50%) scale(0.96);
  }
  38% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
  64% {
    opacity: 0.84;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes loaderShardFloat {
  0%,
  100% {
    margin-top: 0;
    opacity: 0.74;
  }
  50% {
    margin-top: -10px;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .site-loader {
    padding: 16px;
  }

  .site-loader__panel {
    padding: 22px 16px 20px;
    border-radius: 28px;
  }

  .site-loader__panel::before {
    inset: 12px;
    border-radius: 20px;
  }

  .site-loader__panel--rift {
    min-height: 430px;
  }

  .site-loader__rift {
    width: min(100%, 250px);
    height: 310px;
  }

  .site-loader__rift-halo {
    width: 230px;
    height: 230px;
  }

  .site-loader__rift-ring--outer {
    width: 226px;
    height: 226px;
  }

  .site-loader__rift-ring--inner {
    width: 164px;
    height: 164px;
  }

  .site-loader__monolith {
    width: 106px;
    height: 214px;
    bottom: 24px;
  }

  .site-loader__glow {
    width: 152px;
    height: 224px;
    bottom: 34px;
  }

  .site-loader__fissure {
    width: 24px;
    height: 184px;
    bottom: 42px;
  }

  .site-loader__shard--left {
    left: 28px;
    top: 90px;
    width: 26px;
    height: 74px;
  }

  .site-loader__shard--right {
    right: 32px;
    top: 84px;
    width: 28px;
    height: 86px;
  }

  .site-loader__shard--top {
    top: 26px;
    width: 34px;
    height: 60px;
  }

  .site-loader__caption-main {
    font-size: 0.92rem;
    letter-spacing: 0.24em;
  }

  .site-loader__caption-sub {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }
}

body.modal-open {
  overflow: hidden;
}

body.update-modal-open .site-header {
  display: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(88, 197, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 197, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.24;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, rgba(214, 242, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(170, 224, 255, 0.04), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.03));
  mix-blend-mode: screen;
  opacity: 0.7;
}

.blood-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blood-particles span {
  position: absolute;
  top: -10%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(178, 232, 255, 0.9) 55%, rgba(126, 197, 233, 0.18) 100%);
  filter: blur(0.2px);
  opacity: 0.8;
  box-shadow:
    0 0 10px rgba(196, 238, 255, 0.38),
    0 0 18px rgba(120, 205, 255, 0.2);
  animation: snowFall linear infinite;
}

.blood-particles span:nth-child(1) { left: 3%; width: 7px; height: 7px; animation-duration: 12s; animation-delay: -1s; }
.blood-particles span:nth-child(2) { left: 7%; width: 10px; height: 10px; animation-duration: 9s; animation-delay: -4s; }
.blood-particles span:nth-child(3) { left: 11%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: -7s; }
.blood-particles span:nth-child(4) { left: 15%; width: 9px; height: 9px; animation-duration: 10.5s; animation-delay: -2s; }
.blood-particles span:nth-child(5) { left: 19%; width: 12px; height: 12px; animation-duration: 15s; animation-delay: -5s; }
.blood-particles span:nth-child(6) { left: 23%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: -8s; }
.blood-particles span:nth-child(7) { right: 3%; width: 8px; height: 8px; animation-duration: 12.5s; animation-delay: -3s; }
.blood-particles span:nth-child(8) { right: 7%; width: 11px; height: 11px; animation-duration: 10s; animation-delay: -6s; }
.blood-particles span:nth-child(9) { right: 11%; width: 6px; height: 6px; animation-duration: 14.5s; animation-delay: -1.5s; }
.blood-particles span:nth-child(10) { right: 15%; width: 9px; height: 9px; animation-duration: 9.8s; animation-delay: -5.5s; }
.blood-particles span:nth-child(11) { right: 19%; width: 12px; height: 12px; animation-duration: 16s; animation-delay: -9s; }
.blood-particles span:nth-child(12) { right: 23%; width: 5px; height: 5px; animation-duration: 11.4s; animation-delay: -2.5s; }

header,
main {
  position: relative;
  z-index: 1;
}

header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(88, 197, 255, 0.18);
  border-radius: 0;
  transition:
    width 0.35s ease,
    top 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease,
    border-radius 0.35s ease;
  transform: translateX(0);
  z-index: 20;
}

.site-header.is-compact {
  top: 14px;
  width: min(1080px, calc(100% - 40px));
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(88, 197, 255, 0.24);
  border-radius: 18px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(88, 197, 255, 0.08);
  transform: translateX(-50%);
}

.site-loaded .site-header,
.site-loaded main,
.site-loaded .site-footer {
  animation: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(12, 28, 46, 0.95), rgba(3, 8, 15, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(88, 197, 255, 0.08),
    0 0 20px rgba(88, 197, 255, 0.12);
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: linear-gradient(180deg, #0b1c30, #050910);
}

.burger-button {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(88, 197, 255, 0.28);
  background: rgba(8, 18, 32, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(88, 197, 255, 0.06),
    0 0 20px rgba(88, 197, 255, 0.08);
  cursor: pointer;
}

.burger-button span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  box-shadow: 0 0 10px rgba(88, 197, 255, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.menu-open .burger-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .burger-button span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .burger-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
}

.menu {
  justify-content: center;
  flex: 1;
}

.actions {
  gap: 18px;
  margin-left: auto;
}

.header-play-entry {
  --play-progress: 0;
  flex: 0 0 132px;
  width: 132px;
  opacity: var(--play-progress);
  pointer-events: none;
  clip-path: inset(0 calc((1 - var(--play-progress)) * 100%) 0 0);
  transform:
    translate3d(calc((1 - var(--play-progress)) * 14px), calc((1 - var(--play-progress)) * 6px), 0)
    scale(calc(0.94 + (var(--play-progress) * 0.06)));
  filter: blur(calc((1 - var(--play-progress)) * 3px));
  transition:
    opacity 0.32s ease,
    clip-path 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.32s ease;
}

.header-play-entry .action-button {
  width: 132px;
  min-width: 132px;
}

.header-play-entry.is-visible {
  pointer-events: auto;
}

.action-button {
  width: 100%;
  min-width: 132px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  color: var(--text-main);
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  background: transparent;
  cursor: pointer;
}

.header-nav li {
  list-style: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.header-nav li:hover {
  color: var(--text-bright);
  transform: translateY(-1px);
  text-shadow: 0 0 14px rgba(88, 197, 255, 0.72);
}

.actions li {
  position: relative;
  overflow: visible;
}

.actions li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(130, 218, 255, 0.18), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.actions li:first-child .action-button {
  color: #031019;
  border-color: rgba(137, 229, 255, 0.9);
  background: linear-gradient(180deg, #9beeff 0%, #48cfff 100%);
  box-shadow:
    0 0 0 1px rgba(155, 238, 255, 0.22),
    0 0 24px rgba(72, 207, 255, 0.28),
    0 12px 30px rgba(0, 0, 0, 0.3);
}

.actions li:hover::before {
  opacity: 1;
}

.actions li:first-child .action-button:hover {
  color: #000d14;
  transform: none;
  text-shadow: none;
  box-shadow:
    0 0 0 1px rgba(155, 238, 255, 0.28),
    0 0 34px rgba(72, 207, 255, 0.42),
    0 18px 34px rgba(0, 0, 0, 0.34);
}

main,
.hero {
  min-height: calc(100vh - 87px);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  width: min(1120px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(101, 211, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(8, 18, 32, 0.88), rgba(0, 0, 0, 0.94));
  box-shadow:
    0 0 0 1px rgba(88, 197, 255, 0.06),
    0 25px 80px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(88, 197, 255, 0.12);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px 10px 18px 6px;
}

.hero-label {
  display: inline-flex;
  align-self: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(88, 197, 255, 0.32);
  background: rgba(9, 21, 36, 0.72);
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--text-main);
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 14px rgba(88, 197, 255, 0.35),
    0 0 34px rgba(88, 197, 255, 0.18);
}

.hero-copy p {
  max-width: 640px;
  margin-bottom: 28px;
  color: rgba(201, 234, 246, 0.84);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(10, 24, 39, 0.88);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-buttons a:first-child {
  color: #041018;
  background: linear-gradient(180deg, #9beeff 0%, #48cfff 100%);
  border-color: rgba(137, 229, 255, 0.86);
}

.hero-buttons a:hover {
  transform: translateY(-3px);
  border-color: rgba(137, 229, 255, 0.86);
  box-shadow:
    0 0 24px rgba(72, 207, 255, 0.18),
    0 18px 34px rgba(0, 0, 0, 0.3);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(88, 197, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(12, 24, 38, 0.96), rgba(3, 9, 18, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.hero-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-panel__top span,
.hero-panel__card span,
.hero-stats small {
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel__top strong {
  color: #b8fbff;
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(88, 197, 255, 0.35);
}

.hero-panel__line {
  height: 1px;
  margin: 18px 0 20px;
  background: linear-gradient(90deg, rgba(88, 197, 255, 0.55), transparent);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.hero-stats div {
  padding: 16px 12px;
  border: 1px solid rgba(88, 197, 255, 0.16);
  background: rgba(8, 18, 31, 0.72);
}

.hero-stats b {
  display: block;
  margin-top: 6px;
  color: var(--text-bright);
  font-size: 1.5rem;
}

.hero-panel__card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(88, 197, 255, 0.16);
  background: rgba(7, 16, 28, 0.84);
}

.hero-panel__card p {
  margin-top: 12px;
  color: rgba(201, 234, 246, 0.78);
  line-height: 1.65;
}

.lore-section {
  position: relative;
  padding: 28px 20px 80px;
}

.lore-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.lore-copy,
.lore-quote {
  border: 1px solid rgba(88, 197, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(7, 15, 27, 0.94), rgba(1, 5, 12, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 44px rgba(0, 0, 0, 0.28);
}

.lore-copy {
  padding: 34px 30px;
}

.lore-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(88, 197, 255, 0.24);
  background: rgba(10, 21, 35, 0.72);
  color: var(--text-soft);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lore-copy h2 {
  margin-bottom: 18px;
  color: var(--text-bright);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.lore-copy p {
  color: rgba(212, 233, 244, 0.82);
  font-size: 1.02rem;
  line-height: 1.8;
}

.lore-copy p + p {
  margin-top: 18px;
}

.lore-quote {
  position: relative;
  padding: 34px 28px;
  overflow: hidden;
}

.lore-quote::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(122, 9, 18, 0.2), transparent 68%);
  pointer-events: none;
}

.lore-quote__mark {
  display: inline-block;
  margin-bottom: 18px;
  color: #c85a68;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lore-quote blockquote {
  margin: 0;
  color: #f0f7fb;
  font-size: 1.18rem;
  line-height: 1.75;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
}

.lore-quote__author {
  margin-top: 22px;
  color: rgba(200, 216, 226, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

.world-slider-section {
  position: relative;
  padding: 0 20px 90px;
}

.world-slider-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 34px 30px 30px;
  border: 1px solid rgba(145, 34, 52, 0.28);
  background:
    radial-gradient(circle at 12% 0, rgba(164, 32, 57, 0.16), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(116, 18, 36, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(20, 8, 14, 0.96), rgba(7, 3, 6, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 44px rgba(0, 0, 0, 0.34);
}

.world-slider-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.world-slider-head__tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(145, 34, 52, 0.34);
  background: rgba(42, 11, 18, 0.76);
  color: #d98a98;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.world-slider-head h2 {
  max-width: 720px;
  color: var(--text-bright);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.04;
  text-transform: uppercase;
}

.world-slider-head__lead {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(239, 223, 229, 0.72);
  line-height: 1.72;
}

.world-slider-controls {
  display: flex;
  gap: 10px;
}

.world-slider-button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(145, 34, 52, 0.26);
  color: #f8eaf0;
  font: inherit;
  font-size: 1.1rem;
  background: rgba(32, 9, 15, 0.84);
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.world-slider-button:hover {
  border-color: rgba(213, 84, 107, 0.44);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(170, 28, 54, 0.18);
}

.world-slider-button:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.world-slider {
  overflow: hidden;
}

.world-slider__viewport {
  overflow: hidden;
}

.world-slider__track {
  display: flex;
  gap: 16px;
  will-change: transform;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.world-slide {
  flex: 0 0 calc((100% - 32px) / 3);
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(145, 34, 52, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(23, 8, 14, 0.94), rgba(8, 3, 6, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 16px 30px rgba(0, 0, 0, 0.32);
  isolation: isolate;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.world-slide:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 70, 94, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 38px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(134, 22, 43, 0.16);
}

.world-slider--dossier .world-slider__track {
  gap: 24px;
}

.world-slider--dossier .world-slide {
  flex-basis: 100%;
  min-height: 0;
  border-radius: 32px;
}

.world-slide__frame {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  min-height: 620px;
}

.world-slide__portrait {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(145, 34, 52, 0.18);
  background:
    radial-gradient(circle at 50% 8%, rgba(168, 26, 52, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(14, 5, 9, 0.84), rgba(6, 2, 4, 0.98));
}

.world-slide__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 50% 18%, rgba(164, 22, 45, 0.18), transparent 32%);
  pointer-events: none;
  z-index: 1;
}

.world-slide__portrait::after {
  content: "";
  position: absolute;
  inset: auto 26px 26px 26px;
  height: 120px;
  background:
    radial-gradient(circle at 50% 50%, rgba(156, 24, 47, 0.28), transparent 58%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 1;
}

.world-slide__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.72) contrast(1.05) brightness(0.56);
  transform: scale(1.02);
  transition: transform 0.55s ease, filter 0.4s ease;
}

.world-slide:hover .world-slide__portrait img {
  transform: scale(1.05);
  filter: saturate(0.8) contrast(1.08) brightness(0.61);
}

.world-slide__seal {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(192, 62, 86, 0.28);
  border-radius: 999px;
  background: rgba(40, 10, 16, 0.82);
  color: #f0c8d1;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(112, 18, 36, 0.18);
}

.world-slide__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 38px 36px;
  background:
    radial-gradient(circle at 88% 18%, rgba(137, 25, 46, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(20, 7, 12, 0.92), rgba(8, 3, 6, 0.98));
}

.world-slide__panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(145, 34, 52, 0.12);
  border-radius: 22px;
  pointer-events: none;
}

.world-slide__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.world-slide__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border: 1px solid rgba(145, 34, 52, 0.26);
  border-radius: 999px;
  background: rgba(40, 10, 16, 0.76);
  color: #d88b98;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.world-slide__index {
  color: rgba(231, 205, 213, 0.6);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.world-slide h3 {
  max-width: 620px;
  color: var(--text-bright);
  font-size: clamp(2rem, 4vw, 3.3rem);
  text-transform: uppercase;
  line-height: 0.94;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.44),
    0 0 12px rgba(115, 17, 34, 0.14);
}

.world-slide__description {
  max-width: 640px;
  color: rgba(241, 228, 232, 0.82);
  line-height: 1.74;
  font-size: 1rem;
}

.world-slide__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.world-slide__facts div {
  padding: 16px 14px;
  border: 1px solid rgba(145, 34, 52, 0.18);
  border-radius: 18px;
  background: rgba(37, 10, 16, 0.52);
}

.world-slide__facts small {
  display: block;
  margin-bottom: 10px;
  color: #d88b98;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.world-slide__facts strong {
  color: #f4e7eb;
  font-size: 0.96rem;
  line-height: 1.45;
}

.world-slide__quote {
  max-width: 620px;
  padding-left: 18px;
  border-left: 2px solid rgba(164, 36, 58, 0.34);
  color: rgba(230, 198, 206, 0.72);
  font-size: 1rem;
  line-height: 1.72;
}

.world-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.world-slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(145, 34, 52, 0.24);
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.world-slider-dot.is-active {
  background: #d5576e;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(170, 28, 54, 0.28);
}

.world-slider-shell--coverflow {
  width: min(1500px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.world-slider-head--center {
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.world-slider-head--center > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.world-slider-head--center h2 {
  max-width: 920px;
}

.world-slider-head--center .world-slider-head__lead {
  max-width: 840px;
}

.world-slider--coverflow {
  overflow: visible;
}

.world-slider--coverflow .world-slider__viewport {
  overflow: hidden;
}

.world-slider--coverflow .world-slider__track {
  align-items: center;
  gap: 18px;
  padding: 0 calc(22% - 96px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.world-slider--coverflow .world-slide {
  flex: 0 0 192px;
  min-height: 404px;
  border-radius: 24px;
  border: 1px solid rgba(128, 25, 43, 0.2);
  background: rgba(11, 4, 7, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 18px 34px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  opacity: 0;
  filter: saturate(0.46) brightness(0.5);
  transform: scale(0.72);
  pointer-events: none;
}

.world-slider--coverflow .world-slide:hover {
  transform: scale(0.9);
}

.world-slider--coverflow .world-slide.is-reachable {
  pointer-events: auto;
}

.world-slider--coverflow .world-slide.is-near.is-left {
  opacity: 0.62;
  filter: saturate(0.72) brightness(0.72);
  transform: translateY(10px) rotate(-5deg) scale(0.9);
}

.world-slider--coverflow .world-slide.is-near.is-right {
  opacity: 0.62;
  filter: saturate(0.72) brightness(0.72);
  transform: translateY(10px) rotate(5deg) scale(0.9);
}

.world-slider--coverflow .world-slide.is-mid.is-left {
  opacity: 0.34;
  filter: saturate(0.6) brightness(0.56);
  transform: translateY(20px) rotate(-8deg) scale(0.8);
}

.world-slider--coverflow .world-slide.is-mid.is-right {
  opacity: 0.34;
  filter: saturate(0.6) brightness(0.56);
  transform: translateY(20px) rotate(8deg) scale(0.8);
}

.world-slider--coverflow .world-slide.is-far {
  opacity: 0;
  transform: scale(0.68);
}

.world-slider--coverflow .world-slide.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1);
  border-color: rgba(155, 36, 57, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(155, 36, 57, 0.18),
    0 0 0 1px rgba(155, 36, 57, 0.14),
    0 26px 48px rgba(0, 0, 0, 0.42),
    0 0 38px rgba(125, 18, 37, 0.18);
  z-index: 4;
}

.world-slide--cover {
  position: relative;
  overflow: hidden;
}

.world-slide--cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 2, 4, 0.06), rgba(7, 2, 5, 0.16) 34%, rgba(6, 2, 4, 0.84) 100%),
    radial-gradient(circle at 50% 110%, rgba(128, 19, 36, 0.26), transparent 34%);
  z-index: 1;
  pointer-events: none;
}

.world-slide__cover-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.world-slide__cover-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.46);
  transform: scale(1.04);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.world-slider--coverflow .world-slide.is-active .world-slide__cover-media img {
  filter: saturate(0.84) brightness(0.66);
  transform: scale(1.08);
}

.world-slide__cover-copy {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.world-slider--coverflow .world-slide.is-active .world-slide__cover-copy {
  opacity: 1;
  transform: translateY(0);
}

.world-slide__cover-copy .world-slide__eyebrow {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid rgba(155, 36, 57, 0.82);
  border-radius: 0;
  background: transparent;
  color: #b79da4;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.world-slide__cover-copy h3 {
  max-width: none;
  color: #f4e9ed;
  font-size: 1.8rem;
  line-height: 1;
  text-transform: none;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.42);
}

.world-slide__cover-copy p {
  color: rgba(236, 223, 228, 0.82);
  font-size: 0.96rem;
  line-height: 1.5;
}

.world-slide--mirror .world-slide__cover-media img {
  transform: scaleX(-1) scale(1.04);
}

.world-slider--coverflow .world-slide--mirror.is-active .world-slide__cover-media img {
  transform: scaleX(-1) scale(1.08);
}

.world-slider--coverflow .world-slider-dots {
  display: none;
}

.world-features-section {
  position: relative;
  padding: 0 20px 90px;
}

.world-features-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 32px 30px;
  border: 1px solid rgba(88, 197, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(7, 15, 27, 0.94), rgba(1, 5, 12, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 44px rgba(0, 0, 0, 0.28);
}

.world-features-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.world-features-head__tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(88, 197, 255, 0.24);
  background: rgba(10, 21, 35, 0.72);
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.world-features-head h2 {
  color: var(--text-bright);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  text-transform: uppercase;
}

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

.world-feature-card {
  padding: 22px 18px;
  border: 1px solid rgba(88, 197, 255, 0.14);
  background: rgba(8, 18, 31, 0.62);
}

.world-feature-card h3 {
  margin-bottom: 12px;
  color: var(--text-bright);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.world-feature-card p {
  color: rgba(208, 233, 244, 0.82);
  line-height: 1.75;
  font-size: 1rem;
}

.entities-section {
  position: relative;
  padding: 0 20px 110px;
}

.entities-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 34px 30px;
  border: 1px solid rgba(88, 197, 255, 0.18);
  background:
    radial-gradient(circle at top center, rgba(101, 211, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(7, 15, 27, 0.95), rgba(1, 5, 12, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 44px rgba(0, 0, 0, 0.28);
}

.entities-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.entities-head__tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(88, 197, 255, 0.24);
  background: rgba(10, 21, 35, 0.72);
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entities-head h2 {
  color: var(--text-bright);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  text-transform: uppercase;
}

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

.entity-card {
  position: relative;
  min-height: 100%;
  padding: 24px 20px;
  border: 1px solid rgba(88, 197, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(9, 20, 34, 0.82), rgba(5, 10, 18, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.entity-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(88, 197, 255, 0.62), transparent);
}

.entity-card__class {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entity-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(137, 229, 255, 0.52);
  background: rgba(88, 197, 255, 0.12);
  color: var(--text-bright);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(155, 238, 255, 0.08),
    0 0 18px rgba(72, 207, 255, 0.1);
}

.entity-card h3 {
  margin-bottom: 12px;
  color: var(--text-bright);
  font-size: 1.18rem;
  text-transform: uppercase;
}

.entity-card p {
  color: rgba(208, 233, 244, 0.8);
  line-height: 1.8;
  font-size: 1rem;
}

.entity-card--new {
  border-color: rgba(137, 229, 255, 0.34);
  background:
    radial-gradient(circle at top right, rgba(101, 211, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(10, 24, 40, 0.88), rgba(5, 10, 18, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(155, 238, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(72, 207, 255, 0.08);
}

.entity-card--new::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(137, 229, 255, 0.86), transparent);
}

@keyframes snowFall {
  0% {
    transform: translate3d(0, -12vh, 0) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  50% {
    transform: translate3d(10px, 52vh, 0) scale(1);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(-14px, 112vh, 0) scale(1.08);
    opacity: 0;
  }
}

@keyframes pageReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 16px);
    margin: 10px auto 0;
    padding: 12px 16px;
    border-radius: 20px;
    overflow: visible;
    transform: none;
  }

  .burger-button {
    display: inline-flex;
  }

  .logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 80px);
    padding: 6px 12px 6px 8px;
    gap: 10px;
  }

  .logo > span:last-child {
    font-size: 0.86rem;
    letter-spacing: 0.18em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 8px;
    right: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 0;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    border: 1px solid rgba(118, 21, 38, 0.32);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 8, 12, 0.98), rgba(6, 4, 6, 0.99));
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.55),
      0 0 24px rgba(118, 21, 38, 0.18);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
  }

  .site-header.menu-open .header-nav {
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding: 14px;
  }

  .header-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .actions {
    margin-left: 0;
  }

  .header-play-entry {
    width: 100%;
    max-height: 0;
    opacity: var(--play-progress);
    overflow: hidden;
    clip-path: inset(0 0 calc((1 - var(--play-progress)) * 100%) 0);
    transform: translateY(calc((1 - var(--play-progress)) * -8px));
    filter: none;
    transition:
      max-height 0.18s linear,
      opacity 0.18s linear,
      clip-path 0.18s linear,
      transform 0.18s linear;
  }

  .header-play-entry {
    --play-progress: 1;
    flex: 1 1 100%;
    width: 100%;
    max-height: 120px;
    opacity: 1;
    pointer-events: auto;
    clip-path: none;
    transform: none;
    filter: none;
  }

  .header-play-entry .action-button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px 18px;
    font-size: 15px;
  }

  .header-play-entry.is-visible {
    width: 100%;
    max-height: 120px;
    pointer-events: auto;
  }

  .actions li {
    width: 100%;
    min-width: 0;
    padding: 11px 18px;
  }

  .menu li,
  .actions li {
    width: 100%;
    text-align: center;
  }

  .menu li {
    padding: 12px 14px;
    border: 1px solid rgba(118, 21, 38, 0.22);
    background: rgba(28, 12, 17, 0.58);
  }

  .menu,
  .actions {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header.is-compact {
    top: 8px;
    width: calc(100% - 16px);
    margin: 8px auto 0;
    transform: none;
    left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .hero-copy {
    text-align: center;
    align-items: center;
    padding: 8px 0;
  }

  .hero-label {
    align-self: center;
  }

  .hero-copy p {
    max-width: none;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .lore-shell {
    grid-template-columns: 1fr;
  }

  .lore-copy,
  .lore-quote {
    padding: 24px 18px;
  }

  .world-features-shell {
    padding: 24px 18px;
  }

  .world-features-grid {
    grid-template-columns: 1fr;
  }

  .entities-shell {
    padding: 24px 18px;
  }

  .entities-grid {
    grid-template-columns: 1fr;
  }

  .blood-particles span:nth-child(4),
  .blood-particles span:nth-child(5),
  .blood-particles span:nth-child(6),
  .blood-particles span:nth-child(10),
  .blood-particles span:nth-child(11),
  .blood-particles span:nth-child(12) {
    display: none;
  }
}

/* Horror theme overrides */
:root {
  --bg-main: #060507;
  --bg-soft: #140d11;
  --panel: rgba(16, 10, 14, 0.9);
  --line: rgba(129, 25, 39, 0.34);
  --line-strong: rgba(178, 40, 63, 0.72);
  --text-main: #d8d1d8;
  --text-soft: #b36b7b;
  --text-bright: #f5edf0;
  --shadow: 0 0 24px rgba(88, 9, 22, 0.2);
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(92, 11, 26, 0.28), transparent 32%),
    radial-gradient(circle at 12% 18%, rgba(55, 8, 15, 0.34), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(42, 8, 14, 0.3), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(80, 10, 18, 0.14), transparent 28%),
    linear-gradient(180deg, #151116 0%, #0d0a0d 36%, #060507 68%, #030304 100%);
}

body::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.03), transparent 18%),
    radial-gradient(circle at 20% 50%, rgba(118, 14, 30, 0.08), transparent 24%),
    radial-gradient(circle at 80% 60%, rgba(118, 14, 30, 0.06), transparent 24%);
  opacity: 0.9;
}

body::after {
  background:
    radial-gradient(circle at 50% 100%, rgba(74, 10, 19, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%, transparent 76%, rgba(90, 10, 20, 0.05));
  opacity: 0.78;
}

.blood-particles span {
  background: radial-gradient(circle at 35% 35%, rgba(132, 12, 30, 0.96), rgba(74, 7, 16, 0.9) 55%, rgba(20, 4, 7, 0.18) 100%);
  filter: blur(0.45px);
  opacity: 0.46;
  box-shadow:
    0 0 10px rgba(107, 9, 24, 0.28),
    0 0 18px rgba(52, 7, 13, 0.18);
}

header {
  background: rgba(8, 5, 7, 0.9);
  border-color: rgba(115, 18, 34, 0.24);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.58);
}

.site-header.is-compact {
  background: rgba(8, 5, 7, 0.95);
  border-color: rgba(115, 18, 34, 0.34);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.56),
    0 0 24px rgba(88, 9, 23, 0.12);
}

.logo-mark {
  background: linear-gradient(180deg, rgba(24, 11, 16, 0.95), rgba(7, 4, 7, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(148, 31, 50, 0.1),
    0 0 18px rgba(88, 9, 23, 0.14);
}

.logo img {
  background: linear-gradient(180deg, #1c0f15, #060507);
}

.burger-button {
  border-color: rgba(115, 18, 34, 0.28);
  background: rgba(16, 11, 15, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(115, 18, 34, 0.08),
    0 0 20px rgba(88, 9, 23, 0.08);
}

.burger-button span {
  background: #dbc8ce;
  box-shadow: 0 0 10px rgba(111, 12, 27, 0.3);
}

.header-nav li:hover {
  text-shadow: 0 0 14px rgba(121, 15, 31, 0.54);
}

.actions li::before {
  background: linear-gradient(135deg, rgba(111, 12, 27, 0.2), transparent 55%);
}

.actions li:first-child .action-button,
.hero-buttons a:first-child {
  color: #fdeef2;
  background: linear-gradient(180deg, #64101d 0%, #29070e 100%);
  border-color: rgba(148, 31, 50, 0.82);
  box-shadow:
    0 0 0 1px rgba(148, 31, 50, 0.18),
    0 0 24px rgba(82, 9, 20, 0.24),
    0 14px 28px rgba(0, 0, 0, 0.36);
}

.actions li:first-child .action-button:hover,
.hero-buttons a:hover {
  border-color: rgba(148, 31, 50, 0.76);
  box-shadow:
    0 0 24px rgba(82, 9, 20, 0.22),
    0 18px 34px rgba(0, 0, 0, 0.38);
}

.hero-buttons a {
  background: rgba(19, 10, 14, 0.88);
}

/* Header redesign */
.site-header {
  top: 0;
  width: min(1380px, calc(100% - 28px));
  margin-top: 14px;
  padding: 16px 22px;
  border: 1px solid rgba(115, 18, 34, 0.3);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(15, 8, 12, 0.94), rgba(6, 4, 6, 0.97));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(90, 12, 24, 0.18);
  overflow: visible;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(134, 20, 40, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(110, 14, 29, 0.12), transparent 18%, transparent 82%, rgba(110, 14, 29, 0.12));
  opacity: 0.9;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 18px -1px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(164, 38, 59, 0.55), transparent);
  pointer-events: none;
}

.site-header.is-compact {
  top: 10px;
  width: min(1380px, calc(100% - 28px));
  margin-top: 0;
  padding: 12px 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 8, 12, 0.96), rgba(6, 4, 6, 0.98));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(90, 12, 24, 0.18);
}

.logo {
  position: relative;
  z-index: 1;
  gap: 14px;
  min-width: max-content;
  padding: 8px 16px 8px 10px;
  border: 1px solid rgba(118, 21, 38, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(25, 11, 16, 0.86), rgba(9, 5, 8, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.logo > span:last-child {
  color: #f0e2e6;
  font-size: 0.98rem;
  letter-spacing: 0.22em;
  text-shadow: 0 0 18px rgba(102, 14, 28, 0.18);
}

.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  border-color: rgba(150, 31, 51, 0.34);
  background: linear-gradient(180deg, rgba(31, 12, 18, 0.96), rgba(8, 5, 7, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(148, 31, 50, 0.12),
    0 0 0 1px rgba(62, 8, 16, 0.32),
    0 0 20px rgba(88, 9, 23, 0.12);
}

.header-nav {
  position: relative;
  z-index: 1;
  gap: 28px;
}

.menu {
  flex: 1;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(118, 21, 38, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 9, 13, 0.88), rgba(8, 4, 7, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

@media (min-width: 901px) {
  .menu {
    max-width: calc(100% - 360px);
  }
}

.menu li {
  position: relative;
  box-sizing: border-box;
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #dcbcc4;
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: 0.1em;
  transition:
    color 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.menu li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.menu li::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(164, 38, 59, 0.7), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.menu li:hover {
  color: #fff2f5;
  border-color: rgba(150, 31, 51, 0.26);
  background: linear-gradient(180deg, rgba(49, 14, 22, 0.78), rgba(21, 7, 12, 0.88));
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.menu li:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-nav li:hover {
  text-shadow: none;
}

.actions {
  gap: 12px;
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid rgba(118, 21, 38, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 9, 13, 0.88), rgba(8, 4, 7, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.actions li {
  padding: 0;
}

.actions li::before {
  display: none;
}

.action-button {
  box-sizing: border-box;
  min-width: 138px;
  height: 40px;
  min-height: 0;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid rgba(118, 21, 38, 0.28);
  color: #ead7dc;
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, rgba(30, 11, 17, 0.96), rgba(10, 5, 8, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 22px rgba(0, 0, 0, 0.26);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.action-button:hover {
  transform: translateY(-1px);
  color: #fff3f6;
  border-color: rgba(166, 35, 56, 0.48);
  background: linear-gradient(180deg, rgba(47, 13, 21, 0.98), rgba(15, 6, 10, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(0, 0, 0, 0.32),
    0 0 20px rgba(82, 9, 20, 0.12);
}

.header-play-entry {
  flex: 0 0 142px;
  width: 142px;
}

.header-play-entry .action-button {
  width: 142px;
  min-width: 142px;
}

.site-header.is-compact .logo {
  padding: 7px 14px 7px 9px;
}

.site-header.is-compact .logo-mark {
  width: 46px;
  height: 46px;
}

.site-header.is-compact .menu li {
  padding: 11px 14px;
}

@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 14px;
    border-radius: 22px;
  }

  .site-header::after {
    inset: auto 14px -1px;
  }

  .logo {
    padding: 6px 12px 6px 8px;
    gap: 10px;
  }

  .logo > span:last-child {
    font-size: 0.84rem;
    letter-spacing: 0.16em;
  }

  .logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .burger-button {
    border-radius: 16px;
  }

  .header-nav {
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    padding: 0;
    border-radius: 22px;
    border-color: rgba(118, 21, 38, 0.24);
    background: linear-gradient(180deg, rgba(14, 8, 11, 0.98), rgba(5, 3, 5, 0.99));
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .site-header.menu-open .header-nav {
    padding: 14px;
  }

  .menu,
  .actions {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .menu li {
    border-color: rgba(118, 21, 38, 0.18);
    background: linear-gradient(180deg, rgba(25, 11, 16, 0.84), rgba(10, 5, 8, 0.92));
  }

  .actions li {
    width: 100%;
  }

  .action-button,
  .header-play-entry .action-button {
    width: 100%;
    min-width: 0;
  }

  .site-header.is-compact {
    top: 8px;
    width: calc(100% - 16px);
  }
}

.hero-content,
.world-features-shell,
.entities-shell,
.lore-copy,
.lore-quote {
  border-color: rgba(115, 18, 34, 0.18);
  background:
    radial-gradient(circle at top left, rgba(108, 10, 26, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(13, 9, 13, 0.95), rgba(4, 3, 5, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 54px rgba(0, 0, 0, 0.34);
}

.hero-label,
.lore-label,
.world-features-head__tag,
.entities-head__tag {
  border-color: rgba(115, 18, 34, 0.28);
  background: rgba(24, 11, 16, 0.76);
  color: var(--text-soft);
}

.hero h1 {
  text-shadow:
    0 0 14px rgba(108, 10, 26, 0.3),
    0 0 34px rgba(40, 5, 10, 0.28);
}

.hero-copy p,
.hero-panel__card p,
.lore-copy p,
.world-feature-card p,
.entity-card p {
  color: rgba(220, 210, 215, 0.78);
}

.hero-panel,
.hero-stats div,
.hero-panel__card,
.world-feature-card,
.entity-card {
  border-color: rgba(115, 18, 34, 0.16);
  background: linear-gradient(180deg, rgba(18, 10, 14, 0.84), rgba(7, 4, 7, 0.94));
}

.hero-panel__line,
.entity-card::before {
  background: linear-gradient(90deg, rgba(148, 31, 50, 0.58), transparent);
}

.hero-panel__top strong {
  color: #f1c7d0;
  text-shadow: 0 0 12px rgba(108, 10, 26, 0.28);
}

.lore-quote__mark {
  color: #d46c7d;
}

.lore-quote::before {
  background: radial-gradient(circle, rgba(122, 9, 18, 0.3), transparent 68%);
}

.entity-card__badge {
  border-color: rgba(176, 39, 62, 0.52);
  background: rgba(102, 18, 33, 0.18);
  box-shadow:
    0 0 0 1px rgba(176, 39, 62, 0.08),
    0 0 18px rgba(82, 9, 20, 0.1);
}

.entity-card--new {
  border-color: rgba(176, 39, 62, 0.34);
  background:
    radial-gradient(circle at top right, rgba(108, 10, 26, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(25, 11, 16, 0.9), rgba(7, 4, 7, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(176, 39, 62, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(82, 9, 20, 0.1);
}

.entity-card--new::before {
  background: linear-gradient(90deg, rgba(176, 39, 62, 0.86), transparent);
}

.news-section {
  position: relative;
  padding: 0 20px 120px;
}

.news-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 38px 32px;
  border: 1px solid rgba(115, 18, 34, 0.22);
  background:
    radial-gradient(circle at top left, rgba(108, 10, 26, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(14, 9, 13, 0.96), rgba(4, 3, 5, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 26px 60px rgba(0, 0, 0, 0.36);
}

.news-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.news-head__tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(115, 18, 34, 0.26);
  background: rgba(24, 11, 16, 0.78);
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-head h2 {
  color: var(--text-bright);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.news-head p {
  max-width: 640px;
  margin-top: 16px;
  color: rgba(220, 210, 215, 0.76);
  line-height: 1.8;
  font-size: 1rem;
}

.news-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: stretch;
}

.news-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-all-link {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  margin: 28px auto 0;
  padding: 12px 22px;
  background: linear-gradient(180deg, rgba(34, 11, 17, 0.7), rgba(16, 10, 14, 0.7));
  border: 1px solid rgba(178, 40, 63, 0.45);
  color: #fdeef2;
  font: 700 12px/1 "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.news-all-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.news-all-link:hover {
  border-color: #b2283f;
  background: linear-gradient(180deg, rgba(100, 16, 29, 0.55), rgba(41, 7, 14, 0.55));
  box-shadow: 0 0 22px rgba(178, 40, 63, 0.32), 0 12px 22px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}
.news-all-link:hover svg { transform: translateX(4px); }

.news-card {
  position: relative;
  min-height: 100%;
  padding: 24px 22px;
  border: 1px solid rgba(115, 18, 34, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 10, 14, 0.86), rgba(7, 4, 7, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 30px rgba(0, 0, 0, 0.24);
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 31, 50, 0.64), transparent);
}

.news-card--featured {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 30px 28px;
  background:
    radial-gradient(circle at top right, rgba(108, 10, 26, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(24, 11, 16, 0.9), rgba(7, 4, 7, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 38px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(82, 9, 20, 0.08);
}

.news-card--featured::before {
  height: 2px;
}

.news-card--accent {
  border-color: rgba(168, 42, 60, 0.24);
  background:
    radial-gradient(circle at bottom right, rgba(136, 18, 37, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(20, 10, 14, 0.9), rgba(8, 4, 7, 0.96));
}

.news-card--featured h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.news-card--featured p {
  max-width: 92%;
  font-size: 1.04rem;
}

.news-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.news-card__type,
.news-card time {
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-card__type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(115, 18, 34, 0.24);
  background: rgba(32, 11, 17, 0.72);
}

.news-card__type--warning {
  border-color: rgba(168, 42, 60, 0.34);
  background: rgba(82, 9, 20, 0.28);
  color: #f2d0d8;
}

.news-card h3 {
  margin-bottom: 14px;
  color: var(--text-bright);
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.news-card p {
  color: rgba(220, 210, 215, 0.78);
  line-height: 1.8;
  font-size: 1rem;
}

.news-card--link,
.news-card--link:link,
.news-card--link:visited,
.news-card--link:hover,
.news-card--link:active {
  text-decoration: none;
}

.news-card--link {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--text-bright);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card--link *,
.news-card--link *:link,
.news-card--link *:visited {
  text-decoration: none;
}

.news-card--link h3 {
  color: var(--text-bright);
}

.news-card--link p {
  color: rgba(220, 210, 215, 0.78);
}

.news-card--link time,
.news-card--link .news-card__type {
  color: var(--text-soft);
}

.news-card--link .news-card__type--warning {
  color: #f2d0d8;
}

.news-card--link:hover,
.news-card--link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(168, 42, 60, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 44px rgba(0, 0, 0, 0.36),
    0 0 32px rgba(168, 42, 60, 0.18);
  outline: none;
}

.news-card--link:hover .news-card__media img,
.news-card--link:focus-visible .news-card__media img {
  transform: scale(1.03);
}

.news-card__media {
  position: relative;
  margin: -30px -28px 22px;
  overflow: hidden;
  aspect-ratio: 1822 / 863;
  background: rgba(0, 0, 0, 0.4);
}

.news-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 4, 7, 0.78) 100%);
  pointer-events: none;
}

.news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.news-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding: 8px 14px;
  align-self: flex-start;
  border: 1px solid rgba(168, 42, 60, 0.55);
  background: rgba(82, 9, 20, 0.32);
  color: #f2d0d8;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.news-card--link:hover .news-card__cta,
.news-card--link:focus-visible .news-card__cta {
  background: rgba(136, 18, 37, 0.55);
  border-color: rgba(220, 80, 102, 0.7);
}

/* ── Update Modal ─────────────────────────────── */

#update-modal .auth-modal__dialog,
#economy-modal .auth-modal__dialog,
#update-two-modal .auth-modal__dialog {
  width: min(960px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#update-modal .auth-layout,
#economy-modal .auth-layout,
#update-two-modal .auth-layout {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

#update-modal .auth-story,
#economy-modal .auth-story,
#update-two-modal .auth-story {
  padding: 0;
  gap: 0;
  overflow: hidden;
  min-height: 0;
  flex: 0 0 42.5%;
  max-width: 42.5%;
}

.update-story__img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 1822 / 863;
  max-height: 240px;
}

.update-story__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 4, 7, 0.6) 100%);
  pointer-events: none;
}

.update-story__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#update-modal .auth-story__tag,
#economy-modal .auth-story__tag,
#update-two-modal .auth-story__tag {
  margin: 22px 0 0 26px;
  align-self: flex-start;
}

#update-modal .auth-story__title,
#economy-modal .auth-story__title,
#update-two-modal .auth-story__title {
  margin: 14px 26px 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

#update-modal .auth-story__lead,
#economy-modal .auth-story__lead,
#update-two-modal .auth-story__lead {
  margin: 14px 26px 26px;
  font-size: 0.95rem;
  line-height: 1.7;
}

#update-modal .auth-workspace,
#economy-modal .auth-workspace,
#update-two-modal .auth-workspace {
  padding: 26px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 0;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 42, 60, 0.5) transparent;
}

#update-modal .auth-workspace::-webkit-scrollbar,
#economy-modal .auth-workspace::-webkit-scrollbar,
#update-two-modal .auth-workspace::-webkit-scrollbar {
  width: 6px;
}

#update-modal .auth-workspace::-webkit-scrollbar-track,
#economy-modal .auth-workspace::-webkit-scrollbar-track,
#update-two-modal .auth-workspace::-webkit-scrollbar-track {
  background: transparent;
}

#update-modal .auth-workspace::-webkit-scrollbar-thumb,
#economy-modal .auth-workspace::-webkit-scrollbar-thumb,
#update-two-modal .auth-workspace::-webkit-scrollbar-thumb {
  background: rgba(168, 42, 60, 0.5);
  border-radius: 3px;
}

.update-intro {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-left: 2px solid rgba(168, 42, 60, 0.5);
  background: rgba(18, 8, 12, 0.5);
}

.update-intro p {
  color: rgba(220, 210, 215, 0.82);
  font-size: 0.93rem;
  line-height: 1.65;
}

.update-section {
  margin-top: 24px;
}

.update-section:first-of-type {
  margin-top: 0;
}

.update-section__title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  color: #f2d0d8;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(115, 18, 34, 0.28);
}

.update-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-feature {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(115, 18, 34, 0.18);
  border-radius: 10px;
  background: rgba(18, 8, 12, 0.6);
}

.update-feature strong {
  color: #f2d0d8;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.update-feature span {
  color: rgba(220, 210, 215, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

.update-bugfix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  margin: 0;
}

.update-bugfix-list li {
  position: relative;
  padding-left: 20px;
  color: rgba(220, 210, 215, 0.78);
  font-size: 0.9rem;
  line-height: 1.5;
}

.update-bugfix-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: rgba(168, 42, 60, 0.85);
  border-radius: 50%;
}

.update-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 24px;
  border: 1px solid rgba(88, 101, 242, 0.55);
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.14);
  color: #c5c9ff;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: inherit;
  align-self: stretch;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.update-discord-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.update-discord-btn:hover {
  background: rgba(88, 101, 242, 0.3);
  border-color: rgba(88, 101, 242, 0.85);
  color: #e8eaff;
  transform: translateY(-1px);
}

/* button reset for news card trigger */
button.news-card {
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

@media (max-width: 900px) {
  #update-modal .auth-modal__dialog,
#economy-modal .auth-modal__dialog,
#update-two-modal .auth-modal__dialog {
    width: min(560px, calc(100% - 16px));
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

  #update-modal .auth-layout,
#economy-modal .auth-layout,
#update-two-modal .auth-layout {
    flex-direction: column;
    gap: 14px;
  }

  #update-modal .auth-story,
#economy-modal .auth-story,
#update-two-modal .auth-story {
    flex: 0 0 auto;
    max-width: 100%;
    max-height: 280px;
  }

  .update-story__img-wrap {
    max-height: 160px;
  }

  #update-modal .auth-workspace,
  #economy-modal .auth-workspace,
  #update-two-modal .auth-workspace {
    padding: 20px 16px;
    flex: 1 1 auto;
    max-height: calc(100vh - 380px);
  }
}

/* ── /Update Modal ────────────────────────────── */

.site-footer {
  position: relative;
  padding: 0 20px 36px;
}

.site-footer__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px 20px 0;
  border-top: 1px solid rgba(115, 18, 34, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  color: rgba(214, 190, 197, 0.74);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.site-footer__discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(142, 28, 48, 0.38);
  background: linear-gradient(180deg, rgba(34, 11, 17, 0.95), rgba(10, 5, 8, 0.98));
  color: #f8edf0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    color 0.24s ease;
}

.site-footer__discord:hover {
  color: #fff8fa;
  border-color: rgba(202, 70, 100, 0.52);
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(103, 15, 33, 0.22);
}

@media (max-width: 900px) {
  .news-shell {
    padding: 24px 18px;
  }

  .site-footer__inner {
    justify-content: center;
    text-align: center;
  }

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

  .site-footer {
    padding: 0 20px 28px;
  }

  .site-footer__inner {
    padding-top: 20px;
  }
}

/* Main redesign */
main {
  position: relative;
  padding-top: 18px;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 80px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(118, 21, 38, 0.14), transparent);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.7;
}

.hero,
.lore-section,
.world-features-section,
.entities-section,
.news-section {
  position: relative;
}

.hero::before,
.lore-section::before,
.world-features-section::before,
.entities-section::before,
.news-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1240px, calc(100% - 24px));
  height: 100%;
  transform: translateX(-50%);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 10%, transparent 90%, rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at top, rgba(108, 10, 26, 0.08), transparent 42%);
  pointer-events: none;
  opacity: 0.85;
}

.hero {
  padding: 72px 20px 44px;
}

.hero-content {
  position: relative;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  padding: 36px;
  border: 1px solid rgba(118, 21, 38, 0.22);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(143, 22, 45, 0.18), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(58, 9, 18, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(22, 10, 14, 0.98), rgba(8, 4, 7, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(70, 10, 19, 0.22),
    0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(173, 42, 64, 0.88), transparent 62%);
}

.hero-content::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -88px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 17, 35, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-copy {
  align-items: flex-start;
  text-align: left;
  padding: 12px 4px 12px 2px;
}

.hero-label {
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 10px 16px;
  border-color: rgba(150, 31, 51, 0.32);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(41, 13, 20, 0.88), rgba(16, 7, 11, 0.9));
  color: #d59aa7;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
}

.hero h1 {
  margin-bottom: 22px;
  color: #fff3f6;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  letter-spacing: 0.05em;
  text-shadow:
    0 0 18px rgba(102, 14, 28, 0.18),
    0 12px 30px rgba(0, 0, 0, 0.34);
}

.hero-copy p {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(224, 211, 216, 0.82);
  font-size: 1.03rem;
  line-height: 1.9;
}

.hero-buttons {
  justify-content: flex-start;
  gap: 16px;
}

.hero-buttons a {
  min-width: 200px;
  min-height: 56px;
  border-radius: 18px;
  border-color: rgba(118, 21, 38, 0.28);
  letter-spacing: 0.13em;
  background: linear-gradient(180deg, rgba(31, 11, 17, 0.95), rgba(10, 5, 8, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.hero-buttons a:first-child {
  background: linear-gradient(180deg, #781523 0%, #360913 100%);
  border-color: rgba(166, 35, 56, 0.54);
}

.hero-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.hero-socials__label {
  color: rgba(226, 203, 209, 0.56);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-socials__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-socials__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(142, 28, 48, 0.42);
  background: linear-gradient(180deg, rgba(34, 11, 17, 0.95), rgba(10, 5, 8, 0.98));
  color: #f8edf0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    color 0.24s ease;
}

.hero-socials__links a:hover {
  color: #fff8fa;
  border-color: rgba(202, 70, 100, 0.58);
  transform: translateY(-2px);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.32),
    0 0 18px rgba(103, 15, 33, 0.24);
}

.hero-panel {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(118, 21, 38, 0.22);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(108, 10, 26, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(20, 9, 14, 0.96), rgba(7, 4, 7, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 22px 46px rgba(0, 0, 0, 0.34);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(173, 42, 64, 0.8), transparent 72%);
}

.hero-panel__top span,
.hero-panel__card span,
.hero-stats small {
  color: #c88796;
}

.hero-panel__top strong {
  color: #ffeef2;
}

.hero-panel__line {
  margin: 22px 0;
  background: linear-gradient(90deg, rgba(173, 42, 64, 0.65), transparent);
}

.hero-stats {
  gap: 14px;
}

.hero-stats div,
.world-feature-card,
.entity-card,
.news-card {
  border-radius: 22px;
}

.hero-stats div {
  padding: 18px 14px;
  border-color: rgba(118, 21, 38, 0.18);
  background: linear-gradient(180deg, rgba(30, 11, 17, 0.8), rgba(11, 5, 8, 0.9));
}

.hero-stats b {
  color: #fff2f5;
}

.hero-panel__card {
  border-color: rgba(118, 21, 38, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(31, 11, 17, 0.84), rgba(10, 5, 8, 0.94));
}

.hero-panel__card p {
  color: rgba(220, 209, 214, 0.76);
}

.lore-section {
  padding: 34px 20px 94px;
}

.lore-shell {
  gap: 28px;
  align-items: stretch;
}

.lore-copy,
.lore-quote,
.world-features-shell,
.entities-shell,
.news-shell {
  position: relative;
  border: 1px solid rgba(118, 21, 38, 0.22);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(108, 10, 26, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(17, 9, 13, 0.97), rgba(5, 3, 5, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(70, 10, 19, 0.18),
    0 26px 60px rgba(0, 0, 0, 0.34);
}

.lore-copy::before,
.lore-quote::before,
.world-features-shell::before,
.entities-shell::before,
.news-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(173, 42, 64, 0.86), transparent 68%);
}

.lore-copy {
  padding: 40px 34px;
}

.lore-label,
.world-features-head__tag,
.entities-head__tag,
.news-head__tag {
  padding: 10px 16px;
  border-color: rgba(150, 31, 51, 0.32);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(41, 13, 20, 0.84), rgba(16, 7, 11, 0.88));
  color: #d59aa7;
  letter-spacing: 0.18em;
}

.lore-copy h2,
.world-features-head h2,
.entities-head h2,
.news-head h2 {
  color: #fff2f5;
  letter-spacing: 0.04em;
}

.lore-copy p,
.world-feature-card p,
.entity-card p,
.news-card p,
.news-head p {
  color: rgba(224, 211, 216, 0.78);
  line-height: 1.88;
}

.lore-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 30px;
  background:
    radial-gradient(circle at bottom right, rgba(108, 10, 26, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(22, 10, 14, 0.96), rgba(7, 4, 7, 0.99));
}

.lore-quote__mark {
  color: #d59aa7;
}

.lore-quote blockquote {
  color: #fff2f5;
  font-size: 1.14rem;
  line-height: 1.92;
}

.lore-quote__author {
  color: rgba(208, 191, 197, 0.72);
}

.world-features-shell,
.entities-shell,
.news-shell {
  padding: 40px 34px;
}

.world-features-head,
.entities-head,
.news-head {
  margin-bottom: 30px;
}

.world-features-grid,
.entities-grid,
.news-layout {
  gap: 20px;
}

.world-feature-card,
.entity-card,
.news-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(118, 21, 38, 0.18);
  background:
    linear-gradient(180deg, rgba(28, 10, 16, 0.86), rgba(10, 5, 8, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 32px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease,
    background 0.26s ease;
}

.world-feature-card::before,
.entity-card::before,
.news-card::before {
  background: linear-gradient(90deg, rgba(173, 42, 64, 0.86), transparent 78%);
}

.world-feature-card:hover,
.entity-card:hover,
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(150, 31, 51, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(82, 9, 20, 0.08);
}

.world-feature-card {
  padding: 24px 20px 22px;
}

.world-feature-card h3,
.entity-card h3,
.news-card h3 {
  color: #fff1f4;
  letter-spacing: 0.04em;
}

.entities-section {
  padding-bottom: 100px;
}

.entity-card {
  padding: 26px 22px 24px;
}

.entity-card__class {
  color: #c88796;
}

.entity-card__badge {
  border-color: rgba(175, 42, 64, 0.42);
  border-radius: 999px;
  background: rgba(102, 15, 28, 0.32);
  color: #fff1f4;
  box-shadow:
    0 0 0 1px rgba(148, 31, 50, 0.12),
    0 0 18px rgba(82, 9, 20, 0.12);
}

.entity-card--new {
  border-color: rgba(158, 36, 57, 0.32);
  background:
    radial-gradient(circle at top right, rgba(132, 18, 37, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(30, 11, 17, 0.9), rgba(11, 5, 8, 0.96));
}

.news-section {
  padding-bottom: 110px;
}

.news-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.news-stack {
  gap: 20px;
}

.news-card {
  padding: 26px 22px;
}

.news-card--featured {
  padding: 34px 30px;
  border-color: rgba(158, 36, 57, 0.28);
  background:
    radial-gradient(circle at top right, rgba(136, 18, 37, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(31, 11, 17, 0.92), rgba(9, 4, 7, 0.98));
}

.news-card__topline {
  margin-bottom: 20px;
}

.news-card__type,
.news-card time {
  color: #c88796;
}

.news-card__type {
  border-radius: 999px;
  border-color: rgba(150, 31, 51, 0.28);
  background: rgba(41, 13, 20, 0.78);
}

.news-card__type--warning {
  border-color: rgba(175, 42, 64, 0.42);
  background: rgba(102, 15, 28, 0.32);
  color: #fff1f4;
}

@media (max-width: 900px) {
  main {
    padding-top: 10px;
  }

  main::before,
  .hero::before,
  .lore-section::before,
  .world-features-section::before,
  .entities-section::before,
  .news-section::before {
    display: none;
  }

  .hero {
    padding: 56px 16px 28px;
  }

  .hero-content,
  .lore-copy,
  .lore-quote,
  .world-features-shell,
  .entities-shell,
  .news-shell {
    border-radius: 26px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 18px;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
    padding: 4px 0;
  }

  .hero-label {
    align-self: center;
  }

  .hero-buttons {
    justify-content: center;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
  }

  .hero-socials {
    align-items: center;
  }

  .hero-socials__links {
    justify-content: center;
  }

  .hero-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .lore-section,
  .world-features-section,
  .entities-section,
  .news-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lore-section {
    padding-top: 18px;
    padding-bottom: 72px;
  }

  .world-features-section,
  .entities-section,
  .news-section {
    padding-bottom: 82px;
  }

  .lore-copy,
  .lore-quote,
  .world-features-shell,
  .entities-shell,
  .news-shell {
    padding: 24px 18px;
  }

  .lore-shell,
  .world-features-grid,
  .entities-grid,
  .news-layout {
    gap: 16px;
  }

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

/* Header motion polish */
.site-header {
  will-change: width, padding, transform, border-radius, box-shadow, background;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease,
    background 0.32s ease,
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo,
.menu li,
.action-button,
.burger-button,
.header-nav {
  /* will-change: transform, opacity; */
}
.site-header.is-compact {
  transform: translateX(-50%) translateZ(0);
}

.burger-button {
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.burger-button:hover {
  transform: translateY(-1px);
}

.burger-button span {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.menu-open .burger-button {
  border-color: rgba(166, 35, 56, 0.4);
  background: linear-gradient(180deg, rgba(41, 13, 20, 0.94), rgba(13, 6, 9, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 20px rgba(82, 9, 20, 0.14);
}

@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    transition:
      width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      top 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      margin-top 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      border-radius 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.24s ease,
      background 0.24s ease,
      box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 30;
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    max-height: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    border: 1px solid rgba(118, 21, 38, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(14, 8, 11, 0.98), rgba(5, 3, 5, 0.99));
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transform: translate3d(0, -10px, 0) scale(0.985);
    transform-origin: top center;
    clip-path: inset(0 0 100% 0 round 22px);
    transition:
      opacity 0.24s ease,
      visibility 0.24s ease,
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      clip-path 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.24s ease;
  }

  .site-header.menu-open .header-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    clip-path: inset(0 0 0 0 round 22px);
  }

  .header-nav ul {
    width: 100%;
  }

  .menu,
  .actions {
    gap: 12px;
  }

  .menu li,
  .actions li {
    width: 100%;
  }

  .menu li {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
  }

  .actions li {
    display: flex;
  }

  .header-play-entry {
    width: 100%;
    flex-basis: auto;
    max-height: none;
    clip-path: inset(0 0 calc((1 - var(--play-progress)) * 100%) 0 round 16px);
    transform: translate3d(0, calc((1 - var(--play-progress)) * -8px), 0);
    transition:
      opacity 0.18s linear,
      clip-path 0.22s linear,
      transform 0.22s linear;
  }

  .header-play-entry.is-visible {
    width: 100%;
  }
}

/* Horror entities and server panel polish */
body {
  isolation: isolate;
}

header,
main,
footer {
  position: relative;
  z-index: 2;
}

.haunt-figures {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.haunt-figure {
  position: absolute;
  bottom: -10vh;
  width: 220px;
  height: 480px;
  opacity: 0.22;
  filter:
    blur(0.5px)
    drop-shadow(0 0 26px rgba(126, 22, 42, 0.2))
    drop-shadow(0 0 54px rgba(35, 8, 13, 0.28));
  background:
    radial-gradient(circle at 50% 17%, rgba(164, 31, 52, 0.18), transparent 12%),
    linear-gradient(180deg, rgba(23, 9, 14, 0.94), rgba(10, 4, 7, 0.78) 44%, rgba(4, 2, 4, 0) 100%);
  clip-path: polygon(46% 0, 54% 0, 66% 10%, 72% 20%, 78% 31%, 100% 100%, 0 100%, 22% 31%, 28% 20%, 34% 10%);
  animation: hauntDrift 22s ease-in-out infinite;
}

.haunt-figure::before,
.haunt-figure::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.haunt-figure::before {
  top: 36px;
  width: 92px;
  height: 110px;
  border-radius: 46% 46% 42% 42%;
  background:
    radial-gradient(circle at 35% 44%, rgba(255, 210, 218, 0.88) 0 5px, transparent 6px),
    radial-gradient(circle at 65% 44%, rgba(255, 210, 218, 0.88) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 40%, rgba(132, 22, 38, 0.24), transparent 52%),
    linear-gradient(180deg, rgba(25, 10, 15, 0.96), rgba(10, 4, 7, 0.94));
  box-shadow:
    0 0 20px rgba(126, 22, 42, 0.12),
    inset 0 0 30px rgba(0, 0, 0, 0.34);
}

.haunt-figure::after {
  top: 126px;
  width: 178px;
  height: 124px;
  border-radius: 40% 40% 46% 46%;
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 20, 40, 0.2), transparent 48%),
    linear-gradient(180deg, rgba(18, 7, 12, 0.96), rgba(8, 3, 6, 0.28));
  clip-path: polygon(14% 14%, 34% 0, 50% 16%, 66% 0, 86% 14%, 100% 100%, 0 100%);
}

.haunt-figure--left {
  left: -22px;
  bottom: -8vh;
  transform: scale(1.08);
  opacity: 0.2;
}

.haunt-figure--center {
  left: 16%;
  bottom: 6vh;
  width: 156px;
  height: 340px;
  opacity: 0.12;
  animation-duration: 26s;
  animation-delay: -9s;
}

.haunt-figure--right {
  right: -8px;
  bottom: 0;
  width: 248px;
  height: 520px;
  opacity: 0.16;
  animation-duration: 24s;
  animation-delay: -6s;
}

.haunt-figure--far {
  right: 18%;
  bottom: 28vh;
  width: 124px;
  height: 274px;
  opacity: 0.08;
  animation-duration: 30s;
  animation-delay: -12s;
}

.hero-panel {
  backdrop-filter: blur(10px);
}

.hero-panel__top {
  align-items: center;
}

.hero-panel__top strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(173, 42, 64, 0.26);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(69, 16, 28, 0.96), rgba(22, 7, 12, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.24);
  letter-spacing: 0.14em;
}

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

.hero-stats div:not(.hero-stat--wide) {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-stats b {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1;
}

.hero-stats--server {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat {
  position: relative;
  min-height: 132px;
  padding: 18px 16px;
  border: 1px solid rgba(118, 21, 38, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 11, 17, 0.8), rgba(11, 5, 8, 0.9));
}

.hero-stats .hero-stat--wide {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  grid-row: auto;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px;
  min-height: 132px;
  padding: 18px 16px;
}

.hero-stat p {
  color: rgba(220, 209, 214, 0.72);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.hero-stat__value {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 2px;
}

.hero-stat__value span {
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 0.9;
  color: #fff2f5;
}

.hero-stat__value em {
  color: #c88796;
  font-style: normal;
  font-size: 1.22rem;
  letter-spacing: 0.08em;
  padding-bottom: 8px;
  white-space: nowrap;
}

.hero-stat:not(.hero-stat--wide) b {
  font-size: 1.2rem;
  line-height: 1.12;
}

.hero-panel__card {
  position: relative;
}

.hero-panel__card::before {
  content: "";
  position: absolute;
  inset: auto -18px -24px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 18, 39, 0.22), transparent 72%);
  pointer-events: none;
}

.hero-panel__card span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-panel__card span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d65b72;
  box-shadow: 0 0 12px rgba(214, 91, 114, 0.42);
}

@keyframes hauntDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -18px, 0) scale(1.02);
  }
}

@media (max-width: 900px) {
  .haunt-figure--center,
  .haunt-figure--far {
    display: none;
  }

  .haunt-figure--left,
  .haunt-figure--right {
    opacity: 0.11;
  }

  .hero-stats,
  .hero-stats--server {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: 0;
  }

  .hero-stat--wide {
    grid-row: auto;
    min-height: 0;
  }
}

/* Scroll atmosphere, cracks and server visual */
body {
  --haunt-eye-glow: 0;
  --crack-progress: 0;
  --quake-amp: 0;
}

.haunt-figure::before {
  background:
    radial-gradient(circle at 35% 44%, rgba(255, 230, 236, 0.1) 0 4px, transparent 5px),
    radial-gradient(circle at 65% 44%, rgba(255, 230, 236, 0.1) 0 4px, transparent 5px),
    radial-gradient(circle at 35% 44%, rgb(255 57 74 / calc(var(--haunt-eye-glow) * 0.92)) 0 7px, transparent 8px),
    radial-gradient(circle at 65% 44%, rgb(255 57 74 / calc(var(--haunt-eye-glow) * 0.92)) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 40%, rgba(132, 22, 38, 0.24), transparent 52%),
    linear-gradient(180deg, rgba(25, 10, 15, 0.96), rgba(10, 4, 7, 0.94));
  box-shadow:
    0 0 calc(20px + (var(--haunt-eye-glow) * 16px)) rgba(126, 22, 42, 0.12),
    0 0 calc(var(--haunt-eye-glow) * 24px) rgba(205, 35, 60, 0.28),
    inset 0 0 30px rgba(0, 0, 0, 0.34);
  animation: hauntEyesFlicker 4.8s infinite steps(1, end);
}

.hero-stat--wide {
  gap: 12px;
  min-height: 236px;
  padding: 18px 18px 16px;
}

.hero-stat {
  min-height: 116px;
  padding: 16px 14px;
}

.hero-stat p {
  font-size: 0.88rem;
  line-height: 1.48;
}

.hero-stat__value {
  gap: 8px;
}

.hero-stat__value span {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.hero-stat__value em {
  font-size: 1.04rem;
  padding-bottom: 6px;
}

.hero-server-visual {
  position: relative;
  width: 100%;
  min-height: 112px;
  margin: 2px 0 4px;
  border: 1px solid rgba(126, 24, 43, 0.18);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(153, 24, 47, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(20, 9, 14, 0.96), rgba(8, 3, 6, 0.98));
}

.hero-server-visual::before,
.hero-server-visual::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.hero-server-visual::before {
  left: 18px;
  right: 18px;
  bottom: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(173, 42, 64, 0.46), transparent);
}

.hero-server-visual::after {
  left: 50%;
  bottom: 0;
  width: 132px;
  height: 74px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(15, 7, 11, 0.92) 14% 18%, transparent 18% 82%, rgba(15, 7, 11, 0.92) 82% 86%, transparent 86%),
    linear-gradient(180deg, rgba(20, 9, 14, 0), rgba(7, 3, 6, 0.86));
  clip-path: polygon(8% 100%, 22% 18%, 40% 0, 60% 0, 78% 18%, 92% 100%);
}

.hero-server-visual__halo,
.hero-server-visual__gate,
.hero-server-visual__sigil,
.hero-server-visual__eye {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hero-server-visual__halo {
  top: 14px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 18, 40, 0.18), transparent 64%);
  filter: blur(2px);
}

.hero-server-visual__gate {
  bottom: 18px;
  width: 120px;
  height: 82px;
  border: 1px solid rgba(168, 39, 60, 0.26);
  border-bottom: none;
  border-radius: 70px 70px 0 0;
  background:
    radial-gradient(circle at 50% 54%, rgba(175, 27, 54, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(54, 13, 22, 0.94), rgba(13, 5, 8, 0.98));
  box-shadow:
    0 0 26px rgba(75, 9, 19, 0.22),
    inset 0 0 24px rgba(0, 0, 0, 0.32);
}

.hero-server-visual__sigil {
  bottom: 44px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(182, 58, 79, 0.24);
  border-radius: 50%;
}

.hero-server-visual__sigil::before,
.hero-server-visual__sigil::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: linear-gradient(180deg, transparent, rgba(206, 81, 101, 0.52), transparent);
  transform: translate(-50%, -50%);
}

.hero-server-visual__sigil::before {
  width: 2px;
  height: 44px;
}

.hero-server-visual__sigil::after {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(206, 81, 101, 0.52), transparent);
}

.hero-server-visual__eye {
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd6dd, #aa1f38 70%, rgba(170, 31, 56, 0.12));
  box-shadow:
    0 0 calc(18px + (var(--haunt-eye-glow) * 18px)) rgba(208, 44, 70, 0.42),
    0 0 calc(var(--haunt-eye-glow) * 24px) rgba(255, 64, 89, 0.3);
  opacity: calc(0.58 + (var(--haunt-eye-glow) * 0.42));
  animation: citadelEyePulse 3.6s infinite ease-in-out;
}

.hero-citadel {
  position: relative;
  width: 100%;
  min-height: 142px;
  margin-bottom: 6px;
  border: 1px solid rgba(126, 24, 43, 0.18);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(153, 24, 47, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(22, 9, 14, 0.96), rgba(7, 4, 7, 0.98));
}

.hero-citadel__glow,
.hero-citadel__moon,
.hero-citadel__tower,
.hero-citadel__wall,
.hero-citadel__gate,
.hero-citadel__fire,
.hero-citadel__ember {
  position: absolute;
}

.hero-citadel__glow {
  inset: auto 0 0;
  height: 100%;
  background:
    radial-gradient(circle at 50% 68%, rgba(175, 27, 54, 0.22), transparent 34%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.14));
}

.hero-citadel__moon {
  top: 16px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 231, 237, 0.94), rgba(148, 28, 50, 0.24) 76%, transparent 78%);
  box-shadow: 0 0 calc(10px + (var(--haunt-eye-glow) * 16px)) rgba(209, 48, 72, 0.28);
  opacity: calc(0.56 + (var(--haunt-eye-glow) * 0.34));
}

.hero-citadel__tower,
.hero-citadel__wall {
  bottom: 28px;
  background: linear-gradient(180deg, rgba(32, 12, 19, 0.96), rgba(7, 4, 6, 1));
  box-shadow: inset 0 0 0 1px rgba(120, 22, 39, 0.16);
}

.hero-citadel__tower::before,
.hero-citadel__tower::after,
.hero-citadel__wall::before,
.hero-citadel__wall::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, rgba(255, 201, 145, calc(0.22 + (var(--haunt-eye-glow) * 0.38))), rgba(148, 28, 50, 0.16));
  box-shadow: 0 0 calc(4px + (var(--haunt-eye-glow) * 8px)) rgba(233, 116, 74, 0.26);
}

.hero-citadel__tower--left {
  left: 14%;
  width: 42px;
  height: 78px;
  clip-path: polygon(0 100%, 0 22%, 50% 0, 100% 22%, 100% 100%);
}

.hero-citadel__tower--center {
  left: 50%;
  width: 68px;
  height: 102px;
  transform: translateX(-50%);
  clip-path: polygon(0 100%, 0 18%, 50% 0, 100% 18%, 100% 100%);
}

.hero-citadel__tower--right {
  right: 14%;
  width: 42px;
  height: 78px;
  clip-path: polygon(0 100%, 0 22%, 50% 0, 100% 22%, 100% 100%);
}

.hero-citadel__tower--left::before,
.hero-citadel__tower--right::before,
.hero-citadel__tower--left::after,
.hero-citadel__tower--right::after {
  left: 50%;
  width: 7px;
  height: 12px;
  transform: translateX(-50%);
}

.hero-citadel__tower--left::before,
.hero-citadel__tower--right::before {
  top: 32px;
}

.hero-citadel__tower--left::after,
.hero-citadel__tower--right::after {
  top: 52px;
}

.hero-citadel__tower--center::before,
.hero-citadel__tower--center::after {
  width: 8px;
  height: 14px;
  top: 34px;
}

.hero-citadel__tower--center::before {
  left: 17px;
}

.hero-citadel__tower--center::after {
  right: 17px;
}

.hero-citadel__wall {
  left: 14%;
  right: 14%;
  height: 50px;
  clip-path: polygon(0 100%, 0 24%, 10% 24%, 10% 0, 20% 0, 20% 24%, 30% 24%, 30% 0, 40% 0, 40% 24%, 60% 24%, 60% 0, 70% 0, 70% 24%, 80% 24%, 80% 0, 90% 0, 90% 24%, 100% 24%, 100% 100%);
}

.hero-citadel__wall::before,
.hero-citadel__wall::after {
  bottom: 8px;
  width: 7px;
  height: 12px;
}

.hero-citadel__wall::before {
  left: 24%;
}

.hero-citadel__wall::after {
  right: 24%;
}

.hero-citadel__gate {
  left: 50%;
  bottom: 28px;
  width: 42px;
  height: 40px;
  transform: translateX(-50%);
  border-radius: 20px 20px 0 0;
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 183, 132, calc(0.24 + (var(--haunt-eye-glow) * 0.44))), transparent 48%),
    linear-gradient(180deg, rgba(44, 15, 23, 0.98), rgba(12, 5, 8, 1));
  box-shadow: 0 0 calc(8px + (var(--haunt-eye-glow) * 14px)) rgba(222, 93, 63, 0.22);
}

.hero-citadel__fire {
  bottom: 60px;
  width: 14px;
  height: 18px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 16%, rgba(255, 224, 181, 0.96), rgba(255, 120, 58, 0.74) 44%, rgba(144, 18, 34, 0.18) 78%);
  filter: blur(0.3px);
  animation: citadelFireFlicker 1.1s infinite ease-in-out;
}

.hero-citadel__fire--one {
  left: calc(50% - 28px);
}

.hero-citadel__fire--two {
  right: calc(50% - 28px);
  animation-delay: -0.5s;
}

.hero-citadel__ember {
  top: 18px;
  width: 6px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 232, 180, 0.96), rgba(255, 131, 56, 0.84), rgba(143, 18, 34, 0));
  box-shadow:
    0 0 14px rgba(255, 121, 62, 0.5),
    0 0 24px rgba(179, 34, 48, 0.2);
  opacity: 0;
  animation: emberFall 2.6s infinite ease-in;
}

.hero-citadel__ember--one {
  left: 24%;
}

.hero-citadel__ember--two {
  left: 34%;
  animation-delay: -0.45s;
}

.hero-citadel__ember--three {
  left: 47%;
  animation-delay: -0.92s;
}

.hero-citadel__ember--four {
  left: 58%;
  animation-delay: -1.3s;
}

.hero-citadel__ember--five {
  left: 68%;
  animation-delay: -1.85s;
}

.hero-citadel__ember--six {
  left: 78%;
  animation-delay: -2.2s;
}

.hero-panel,
.lore-copy,
.lore-quote,
.world-features-shell,
.world-feature-card,
.entities-shell,
.entity-card,
.news-shell,
.news-card,
.profile-hero,
.profile-card {
  position: relative;
  isolation: isolate;
}

.hero-panel::after,
.lore-copy::after,
.lore-quote::after,
.world-features-shell::after,
.world-feature-card::after,
.entities-shell::after,
.entity-card::after,
.news-shell::after,
.news-card::after,
.profile-hero::after,
.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(121deg, transparent 0 19%, rgb(255 255 255 / calc(var(--crack-progress) * 0.035)) 19.3%, transparent 19.8%),
    linear-gradient(98deg, transparent 0 55%, rgb(124 18 39 / calc(var(--crack-progress) * 0.58)) 55.3%, transparent 56%),
    linear-gradient(62deg, transparent 0 72%, rgb(255 235 239 / calc(var(--crack-progress) * 0.03)) 72.2%, transparent 72.8%),
    linear-gradient(146deg, transparent 0 34%, rgb(124 18 39 / calc(var(--crack-progress) * 0.4)) 34.2%, transparent 35%);
  opacity: calc(var(--crack-progress) * 0.95);
  mix-blend-mode: screen;
}

.hero h1,
.hero p,
.hero-panel small,
.hero-panel span,
.hero-panel b,
.hero-panel strong,
.lore-copy h2,
.lore-quote blockquote,
.world-feature-card h3,
.entity-card h3,
.news-card h3,
.profile-hero h1,
.profile-card h2,
.profile-card h3,
.profile-card b,
.profile-card strong,
.profile-card p {
  text-shadow:
    calc(var(--crack-progress) * 0.55px) 0 0 rgba(255, 222, 228, 0.18),
    calc(var(--crack-progress) * -0.7px) 0 0 rgba(132, 22, 38, 0.38);
}

@media (max-width: 900px) {
  .hero-stat--wide {
    min-height: 0;
  }
}

/* Header return + whispers + crack islands */
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 60;
  max-width: none;
  margin-top: 0;
  transform: translateX(-50%);
}

.site-header.is-compact {
  top: 10px;
  margin-top: 0;
  transform: translateX(-50%);
}

.haunt-whisper {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  color: rgb(255 208 217 / calc(0.22 + (var(--haunt-eye-glow) * 0.78)));
  font-size: clamp(0.78rem, 1vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 0 calc(10px + (var(--haunt-eye-glow) * 18px)) rgba(175, 27, 54, 0.34),
    0 0 calc(var(--haunt-eye-glow) * 28px) rgba(255, 48, 78, 0.24);
  opacity: calc(var(--haunt-eye-glow) * var(--whisper-visibility, 0) * 0.94);
  transform:
    translate3d(var(--whisper-x, 10vw), calc(var(--whisper-y, 50vh) + ((1 - var(--whisper-visibility, 0)) * var(--whisper-rise, 18px))), 0)
    translateX(var(--whisper-shift, 0px))
    rotate(var(--whisper-tilt, -9deg))
    scale(calc(0.92 + (var(--whisper-visibility, 0) * 0.08)));
  filter: blur(calc((1 - var(--whisper-visibility, 0)) * var(--whisper-blur, 6px)));
  transition:
    opacity var(--whisper-duration, 420ms) ease,
    transform calc(var(--whisper-duration, 420ms) + 90ms) cubic-bezier(0.22, 1, 0.36, 1),
    filter calc(var(--whisper-duration, 420ms) + 40ms) ease,
    text-shadow 0.34s ease;
  will-change: opacity, transform, filter;
  pointer-events: none;
}

.haunt-whisper.is-switching {
  opacity: calc(var(--haunt-eye-glow) * var(--whisper-visibility, 0) * 0.12);
  transform: translate3d(var(--whisper-x, 10vw), calc(var(--whisper-y, 50vh) + (var(--whisper-rise, 18px) * 0.8)), 0) translateX(var(--whisper-shift, 0px)) rotate(calc(var(--whisper-tilt, -9deg) * 1.14)) scale(0.965);
  filter: blur(calc(var(--whisper-blur, 6px) + 2px));
}

.hero-panel::after,
.lore-copy::after,
.lore-quote::after,
.world-features-shell::after,
.world-feature-card::after,
.entities-shell::after,
.entity-card::after,
.news-shell::after,
.news-card::after,
.profile-hero::after,
.profile-card::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 160' fill='none'%3E%3Cpath d='M18 26l24 10-12 18 26 14-18 22 31 15-14 25 28 15' stroke='%23ffe7ed' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M42 35l15-16M62 53l18-9M80 91l22 8M112 109l16-10M140 118l18 10' stroke='%23981b30' stroke-opacity='.58' stroke-width='1'/%3E%3Cpath d='M32 73l14-8M98 76l18-8M134 92l15-9' stroke='%23ffd8df' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 160' fill='none'%3E%3Cpath d='M36 16l18 18-8 18 28 14-15 20 26 20-11 19 22 16' stroke='%23ffedf1' stroke-opacity='.18' stroke-width='1.15'/%3E%3Cpath d='M54 30l18-11M70 49l18-5M84 78l20 9M107 106l18-5M133 126l18 7' stroke='%238d162c' stroke-opacity='.5' stroke-width='1'/%3E%3Cpath d='M43 61l13-10M92 61l15-8M120 91l18-8' stroke='%23ffd9df' stroke-opacity='.14' stroke-width='1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 160' fill='none'%3E%3Cpath d='M30 18l20 11-10 19 24 12-16 22 28 15-12 26 25 14' stroke='%23ffeff3' stroke-opacity='.2' stroke-width='1.18'/%3E%3Cpath d='M48 28l14-14M58 49l20-7M76 82l22 10M106 102l16-8M132 118l20 8' stroke='%2396172b' stroke-opacity='.54' stroke-width='1'/%3E%3Cpath d='M40 70l14-8M92 72l15-7M136 92l16-10' stroke='%23ffdce3' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E");
  background-position: 8% 12%, 74% 24%, 36% 70%;
  background-size: 35% 35%, 32% 32%, 34% 34%;
  background-repeat: no-repeat;
  opacity: calc(var(--crack-progress) * 0.78);
  mix-blend-mode: screen;
  transition:
    opacity 0.36s ease,
    background-size 0.42s ease,
    background-position 0.42s ease;
}

.hero h1,
.hero p,
.hero-panel small,
.hero-panel span,
.hero-panel b,
.hero-panel strong,
.lore-copy h2,
.lore-quote blockquote,
.world-feature-card h3,
.entity-card h3,
.news-card h3,
.profile-hero h1,
.profile-card h2,
.profile-card h3,
.profile-card b,
.profile-card strong,
.profile-card p {
  text-shadow:
    calc(var(--crack-progress) * 0.35px) calc(var(--crack-progress) * -0.25px) 0 rgba(255, 222, 228, 0.16),
    calc(var(--crack-progress) * -0.45px) calc(var(--crack-progress) * 0.3px) 0 rgba(132, 22, 38, 0.3);
}

body.is-haunted main,
body.is-haunted .profile-main {
  animation: chaosQuake 1.14s infinite linear;
  transform-origin: center top;
}

@keyframes hauntEyesFlicker {
  0%,
  18%,
  22%,
  54%,
  100% {
    filter: brightness(1) saturate(1);
  }

  19%,
  20%,
  55% {
    filter: brightness(1.45) saturate(1.2);
  }

  21%,
  56% {
    filter: brightness(0.85) saturate(0.92);
  }
}

@keyframes citadelEyePulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  42% {
    transform: translateX(-50%) scale(1.16);
  }

  48% {
    transform: translateX(-50%) scale(0.92);
  }
}

@keyframes citadelFireFlicker {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.88;
  }

  38% {
    transform: translateY(-2px) scale(1.12);
    opacity: 1;
  }

  64% {
    transform: translateY(1px) scale(0.92);
    opacity: 0.74;
  }
}

@keyframes emberFall {
  0% {
    transform: translate3d(0, -10px, 0) rotate(8deg) scale(0.72);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  62% {
    opacity: 0.92;
  }

  100% {
    transform: translate3d(-8px, 122px, 0) rotate(-12deg) scale(0.3);
    opacity: 0;
  }
}

@keyframes chaosQuake {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  11% {
    transform: translate3d(calc(var(--quake-amp) * -0.7px), calc(var(--quake-amp) * 0.45px), 0) rotate(calc(var(--quake-amp) * -0.08deg));
  }

  23% {
    transform: translate3d(calc(var(--quake-amp) * 1.05px), calc(var(--quake-amp) * -0.55px), 0) rotate(calc(var(--quake-amp) * 0.12deg));
  }

  37% {
    transform: translate3d(calc(var(--quake-amp) * -1.3px), calc(var(--quake-amp) * -0.2px), 0) rotate(calc(var(--quake-amp) * -0.1deg));
  }

  49% {
    transform: translate3d(calc(var(--quake-amp) * 0.42px), calc(var(--quake-amp) * 0.9px), 0) rotate(calc(var(--quake-amp) * 0.06deg));
  }

  63% {
    transform: translate3d(calc(var(--quake-amp) * 1.28px), calc(var(--quake-amp) * -0.78px), 0) rotate(calc(var(--quake-amp) * -0.12deg));
  }

  79% {
    transform: translate3d(calc(var(--quake-amp) * -0.82px), calc(var(--quake-amp) * 0.72px), 0) rotate(calc(var(--quake-amp) * 0.08deg));
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@media (max-width: 900px) {
  .world-slider-shell {
    padding: 26px 18px 24px;
  }

  .world-slider-head {
    flex-direction: column;
    align-items: stretch;
  }

  .world-slide {
    flex-basis: 100%;
    min-height: 500px;
  }

  .world-slide__frame {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .world-slide__portrait {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid rgba(145, 34, 52, 0.18);
  }

  .world-slide__panel {
    padding: 24px 18px 20px;
    gap: 18px;
  }

  .world-slide__panel::before {
    inset: 12px;
    border-radius: 18px;
  }

  .world-slide__topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .world-slide h3 {
    font-size: 1.7rem;
  }

  .world-slide__description,
  .world-slide__quote {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .world-slide__facts {
    grid-template-columns: 1fr;
  }

  .site-header.is-compact {
    width: calc(100% - 16px);
    padding: 16px 14px;
  }

  .site-header {
    top: 8px;
  }

  .haunt-whisper--center,
  .haunt-whisper--far {
    display: none;
  }

  .hero-citadel {
    min-height: 120px;
  }

  .hero-citadel__moon {
    right: 16px;
    width: 34px;
    height: 34px;
  }

  .hero-citadel__ember--four,
  .hero-citadel__ember--five,
  .hero-citadel__ember--six,
  .hero-citadel__ember--seven,
  .hero-citadel__ember--eight,
  .hero-citadel__ember--nine {
    display: none;
  }
}

/* Play path beacon */
.hero-panel__card {
  background:
    radial-gradient(circle at 78% 18%, rgba(126, 16, 35, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(33, 12, 19, 0.9), rgba(11, 5, 8, 0.96));
}

.hero-beacon {
  position: relative;
  width: 100%;
  min-height: 170px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(133, 27, 45, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(151, 18, 39, 0.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(114, 15, 31, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(24, 9, 14, 0.98), rgba(8, 4, 6, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 228, 0.04),
    inset 0 -24px 36px rgba(0, 0, 0, 0.34);
}

.hero-beacon,
.hero-beacon * {
  position: absolute;
}

.hero-beacon__mist {
  inset: auto 0 0;
  height: 100%;
  background:
    radial-gradient(circle at 30% 84%, rgba(126, 16, 36, 0.16), transparent 22%),
    radial-gradient(circle at 70% 76%, rgba(255, 126, 70, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255, 226, 234, 0.02), transparent 36%);
  filter: blur(8px);
}

.hero-beacon__halo {
  left: 50%;
  top: 28px;
  width: 132px;
  height: 132px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174, 28, 55, 0.2), rgba(174, 28, 55, 0.02) 62%, transparent 70%);
  filter: blur(2px);
}

.hero-beacon__ring {
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(162, 38, 58, 0.24);
  transform: translateX(-50%);
}

.hero-beacon__ring--outer {
  top: 24px;
  width: 110px;
  height: 110px;
}

.hero-beacon__ring--inner {
  top: 40px;
  width: 76px;
  height: 76px;
  border-color: rgba(232, 127, 144, 0.16);
}

.hero-beacon__pillar {
  left: 50%;
  bottom: 18px;
  width: 52px;
  height: 106px;
  transform: translateX(-50%);
  clip-path: polygon(16% 100%, 0 22%, 16% 0, 84% 0, 100% 22%, 84% 100%);
  background:
    linear-gradient(180deg, rgba(61, 20, 30, 0.98), rgba(12, 6, 9, 1));
  box-shadow:
    inset 0 0 0 1px rgba(131, 29, 46, 0.18),
    inset 0 16px 16px rgba(255, 232, 238, 0.02);
}

.hero-beacon__core {
  left: 50%;
  top: 52px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 213, 0.98), rgba(255, 118, 60, 0.82) 42%, rgba(152, 22, 37, 0.16) 78%);
  box-shadow:
    0 0 14px rgba(255, 127, 67, 0.54),
    0 0 28px rgba(183, 31, 49, 0.18);
}

.hero-beacon__flare {
  top: 57px;
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 143, 87, 0.86), transparent);
  filter: blur(0.4px);
}

.hero-beacon__flare--left {
  left: calc(50% - 60px);
}

.hero-beacon__flare--right {
  right: calc(50% - 60px);
}

.hero-beacon__chain {
  top: 40px;
  width: 56px;
  height: 1px;
  border-top: 1px dashed rgba(188, 84, 101, 0.26);
}

.hero-beacon__chain--left {
  left: calc(50% - 102px);
  transform: rotate(-18deg);
}

.hero-beacon__chain--right {
  right: calc(50% - 102px);
  transform: rotate(18deg);
}

.hero-beacon__spark {
  top: 18px;
  width: 5px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 238, 200, 0.96), rgba(255, 132, 65, 0.82), rgba(143, 18, 34, 0));
  box-shadow:
    0 0 12px rgba(255, 124, 60, 0.48),
    0 0 20px rgba(174, 30, 47, 0.16);
  animation: emberFall 2.2s infinite ease-in;
  opacity: 0;
}

.hero-beacon__spark--one {
  left: 32%;
}

.hero-beacon__spark--two {
  left: 44%;
  animation-delay: -0.48s;
}

.hero-beacon__spark--three {
  left: 56%;
  animation-delay: -0.94s;
}

.hero-beacon__spark--four {
  left: 68%;
  animation-delay: -1.42s;
}

@media (max-width: 900px) {
  .hero-beacon {
    min-height: 134px;
  }

  .hero-beacon__ring--outer {
    width: 88px;
    height: 88px;
  }

  .hero-beacon__ring--inner {
    width: 60px;
    height: 60px;
  }

  .hero-beacon__pillar {
    height: 84px;
  }
}

/* Final fortress refresh */
.hero-citadel {
  min-height: 168px;
  margin-bottom: 10px;
  border-color: rgba(137, 27, 46, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 18%, rgba(235, 192, 210, 0.08), transparent 11%),
    radial-gradient(circle at 50% 90%, rgba(118, 16, 33, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(24, 9, 15, 0.96), rgba(8, 4, 7, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 214, 221, 0.04),
    inset 0 -24px 36px rgba(0, 0, 0, 0.36),
    0 22px 42px rgba(0, 0, 0, 0.18);
}

.hero-citadel::before,
.hero-citadel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  pointer-events: none;
}

.hero-citadel::before {
  height: 70px;
  background:
    radial-gradient(circle at 22% 40%, rgba(160, 29, 50, 0.1), transparent 24%),
    radial-gradient(circle at 50% 55%, rgba(255, 118, 62, 0.08), transparent 18%),
    radial-gradient(circle at 78% 42%, rgba(160, 29, 50, 0.1), transparent 24%);
  filter: blur(14px);
  opacity: 0.96;
}

.hero-citadel::after {
  height: 44px;
  background:
    linear-gradient(180deg, rgba(16, 6, 10, 0), rgba(7, 3, 5, 0.96)),
    radial-gradient(circle at 50% 0, rgba(255, 109, 54, 0.14), transparent 28%);
}

.hero-citadel__glow {
  background:
    radial-gradient(circle at 50% 65%, rgba(188, 30, 57, 0.18), transparent 28%),
    radial-gradient(circle at 50% 83%, rgba(255, 119, 61, 0.1), transparent 14%),
    linear-gradient(180deg, rgba(255, 226, 235, 0.02), transparent 36%);
}

.hero-citadel__moon {
  top: 14px;
  right: 24px;
  width: 48px;
  height: 48px;
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 244, 248, 0.96), rgba(210, 97, 122, 0.26) 66%, transparent 72%);
  box-shadow:
    0 0 calc(12px + (var(--haunt-eye-glow) * 18px)) rgba(206, 55, 80, 0.24),
    0 0 calc(18px + (var(--haunt-eye-glow) * 16px)) rgba(255, 205, 216, 0.08);
}

.hero-citadel__tower,
.hero-citadel__wall {
  bottom: 30px;
  background:
    linear-gradient(180deg, rgba(40, 14, 21, 0.98), rgba(11, 6, 9, 1));
  box-shadow:
    inset 0 0 0 1px rgba(132, 28, 46, 0.18),
    inset 0 18px 18px rgba(255, 232, 238, 0.02);
}

.hero-citadel__tower--left,
.hero-citadel__tower--right {
  width: 54px;
  height: 92px;
  clip-path: polygon(0 100%, 0 18%, 14% 18%, 14% 6%, 30% 6%, 30% 18%, 44% 18%, 44% 0, 56% 0, 56% 18%, 70% 18%, 70% 6%, 86% 6%, 86% 18%, 100% 18%, 100% 100%);
}

.hero-citadel__tower--left {
  left: 13%;
}

.hero-citadel__tower--right {
  right: 13%;
}

.hero-citadel__tower--center {
  width: 94px;
  height: 120px;
  bottom: 28px;
  clip-path: polygon(0 100%, 0 16%, 10% 16%, 10% 4%, 24% 4%, 24% 16%, 38% 16%, 38% 0, 62% 0, 62% 16%, 76% 16%, 76% 4%, 90% 4%, 90% 16%, 100% 16%, 100% 100%);
}

.hero-citadel__tower--left::before,
.hero-citadel__tower--right::before,
.hero-citadel__tower--left::after,
.hero-citadel__tower--right::after {
  width: 8px;
  height: 14px;
}

.hero-citadel__tower--left::before,
.hero-citadel__tower--right::before {
  top: 34px;
}

.hero-citadel__tower--left::after,
.hero-citadel__tower--right::after {
  top: 56px;
}

.hero-citadel__tower--center::before,
.hero-citadel__tower--center::after {
  top: 38px;
  width: 9px;
  height: 16px;
}

.hero-citadel__tower--center::before {
  left: 24px;
}

.hero-citadel__tower--center::after {
  right: 24px;
}

.hero-citadel__wall {
  left: 11%;
  right: 11%;
  height: 58px;
  clip-path: polygon(0 100%, 0 24%, 8% 24%, 8% 4%, 16% 4%, 16% 24%, 24% 24%, 24% 4%, 32% 4%, 32% 24%, 40% 24%, 40% 4%, 48% 4%, 48% 24%, 52% 24%, 52% 4%, 60% 4%, 60% 24%, 68% 24%, 68% 4%, 76% 4%, 76% 24%, 84% 24%, 84% 4%, 92% 4%, 92% 24%, 100% 24%, 100% 100%);
}

.hero-citadel__wall::before,
.hero-citadel__wall::after {
  width: 8px;
  height: 13px;
  bottom: 10px;
}

.hero-citadel__gate {
  bottom: 30px;
  width: 52px;
  height: 48px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 50% 62%, rgba(255, 191, 135, calc(0.26 + (var(--haunt-eye-glow) * 0.4))), transparent 52%),
    linear-gradient(180deg, rgba(54, 16, 25, 0.98), rgba(14, 6, 9, 1));
  box-shadow:
    0 0 calc(10px + (var(--haunt-eye-glow) * 18px)) rgba(222, 93, 63, 0.2),
    inset 0 0 0 1px rgba(146, 34, 52, 0.16);
}

.hero-citadel__fire {
  bottom: 64px;
  width: 16px;
  height: 22px;
  background: radial-gradient(circle at 50% 14%, rgba(255, 237, 196, 0.98), rgba(255, 136, 61, 0.8) 40%, rgba(152, 22, 37, 0.16) 78%);
  box-shadow:
    0 0 12px rgba(255, 132, 70, 0.38),
    0 0 24px rgba(183, 31, 49, 0.16);
}

.hero-citadel__fire--one {
  left: calc(50% - 34px);
}

.hero-citadel__fire--two {
  right: calc(50% - 34px);
}

.hero-citadel__ember {
  top: 8px;
  width: 5px;
  height: 20px;
  background: linear-gradient(180deg, rgba(255, 238, 196, 0.98), rgba(255, 137, 63, 0.88), rgba(143, 18, 34, 0));
  box-shadow:
    0 0 12px rgba(255, 119, 58, 0.56),
    0 0 28px rgba(185, 31, 49, 0.18);
  animation-duration: 2.15s;
}

.hero-citadel__ember--one {
  left: 18%;
}

.hero-citadel__ember--two {
  left: 28%;
}

.hero-citadel__ember--three {
  left: 39%;
}

.hero-citadel__ember--four {
  left: 49%;
}

.hero-citadel__ember--five {
  left: 60%;
}

.hero-citadel__ember--six {
  left: 72%;
}

.hero-citadel__ember--seven {
  left: 22%;
  animation-delay: -0.75s;
}

.hero-citadel__ember--eight {
  left: 53%;
  animation-delay: -1.18s;
}

.hero-citadel__ember--nine {
  left: 81%;
  animation-delay: -1.62s;
}

/* Header play button cleanup */
.site-header .action-button,
.site-header .actions a.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.actions {
  position: relative;
}

.site-header.has-play-slot .actions {
  justify-content: flex-end;
}

.header-play-entry {
  position: relative;
  right: auto;
  top: auto;
  flex: 0 0 auto;
  width: 132px;
  margin-right: calc((1 - var(--play-progress, 0)) * -132px);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(0 calc((1 - var(--play-progress, 0)) * 100%) 0 0);
  transform: translate3d(0, calc((1 - var(--play-progress, 0)) * 10px), 0);
  filter: none;
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    margin-right 0.28s ease,
    clip-path 0.28s ease;
}

.header-play-entry .action-button {
  width: 132px;
  min-width: 132px;
}

.header-play-entry.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.site-header.has-play-slot .header-play-entry {
  position: relative;
  width: 132px;
}

/* Hero beacon redraw */
.hero-beacon {
  min-height: 164px;
  background:
    radial-gradient(circle at 50% 88%, rgba(111, 13, 31, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(22, 8, 13, 0.98), rgba(8, 4, 6, 1));
}

.hero-beacon__mist,
.hero-beacon__spark,
.hero-beacon__chain {
  display: none;
}

.hero-beacon__halo {
  left: 50%;
  top: 22px;
  width: 172px;
  height: 118px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 28, 54, 0.16), rgba(170, 28, 54, 0.04) 54%, transparent 72%);
  filter: blur(1px);
}

.hero-beacon__ring--outer {
  top: 28px;
  width: 128px;
  height: 84px;
  border-radius: 999px;
  border-color: rgba(170, 42, 62, 0.18);
}

.hero-beacon__ring--inner {
  top: 40px;
  width: 92px;
  height: 58px;
  border-radius: 999px;
  border-color: rgba(232, 127, 144, 0.14);
}

.hero-beacon__pillar {
  left: 50%;
  bottom: 20px;
  width: 78px;
  height: 104px;
  transform: translateX(-50%);
  clip-path: polygon(14% 100%, 8% 18%, 24% 0, 76% 0, 92% 18%, 86% 100%);
}

.hero-beacon__core {
  top: 44px;
  width: 10px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 230, 193, 0.98), rgba(255, 119, 58, 0.84), rgba(147, 18, 35, 0.18));
}

.hero-beacon__flare {
  top: 66px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 145, 91, 0.72), transparent);
}

.hero-beacon__flare--left {
  left: calc(50% - 54px);
}

.hero-beacon__flare--right {
  right: calc(50% - 54px);
}

@media (max-width: 900px) {
  .actions {
    position: static;
  }

  .header-play-entry {
    position: static;
    margin-right: 0;
    transform: none;
  }
}

/* Index hero beacon layout fix */
.hero-panel__card {
  position: relative;
  overflow: hidden;
}

.hero-beacon {
  position: relative !important;
  display: block;
}

.hero-beacon * {
  position: absolute;
}

.hero-panel__card > span,
.hero-panel__card > p {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .world-slider-shell--coverflow {
    padding: 0;
  }

  .world-slider-head--center {
    margin-bottom: 22px;
  }

  .world-slider--coverflow .world-slider__track {
    gap: 16px;
    padding: 0 calc(50% - 92px);
  }

  .world-slider--coverflow .world-slide {
    flex-basis: 176px;
    min-height: 360px;
    border-radius: 20px;
  }

  .world-slider--coverflow .world-slide.is-active {
    transform: scale(0.98);
  }

  .world-slider--coverflow .world-slide.is-near.is-left,
  .world-slider--coverflow .world-slide.is-near.is-right {
    transform: translateY(8px) scale(0.84);
  }

  .world-slider--coverflow .world-slide.is-mid.is-left,
  .world-slider--coverflow .world-slide.is-mid.is-right {
    transform: translateY(14px) scale(0.74);
  }

  .world-slide__cover-copy {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .world-slide__cover-copy h3 {
    font-size: 1.34rem;
  }

  .world-slide__cover-copy p {
    font-size: 0.86rem;
    line-height: 1.4;
  }
}

/* Header normalization */
@media (min-width: 901px) {
  .site-header,
  .site-header.is-compact {
    left: 50%;
    transform: translateX(-50%) !important;
  }

  .site-header {
    width: min(1280px, calc(100% - 32px));
    padding: 16px 22px;
    border-radius: 26px;
    overflow: visible;
    transition:
      top 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.24s ease,
      background 0.24s ease,
      box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.24s ease,
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .header-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    min-width: 0;
    gap: 18px;
  }

  .menu {
    position: static;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin: 0;
    transform: none;
  }

  .actions {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .site-header.is-compact {
    width: min(1280px, calc(100% - 32px));
    padding: 16px 22px;
    border-radius: 26px;
    top: 14px;
    border-color: rgba(115, 18, 34, 0.3);
    background:
      linear-gradient(180deg, rgba(15, 8, 12, 0.94), rgba(6, 4, 6, 0.97));
    box-shadow:
      0 18px 46px rgba(0, 0, 0, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 0 0 1px rgba(90, 12, 24, 0.18);
  }

  .site-header.is-compact .logo {
    padding: 8px 16px 8px 10px;
  }

  .site-header.is-compact .logo-mark {
    width: 50px;
    height: 50px;
  }

  .site-header.is-compact .menu li {
    padding: 0 14px;
  }
}

@media (min-width: 1141px) {
  .header-nav {
    position: static;
    justify-content: space-between;
    align-items: center;
  }

  .menu {
    position: static;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    transform: none;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .site-header.has-play-slot .actions {
    min-width: 0;
    padding-left: 0;
  }

  .site-header.has-play-slot .header-play-entry {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }
}

/* ============================================================
   Responsive adaptation — phones, tablets, laptops, desktops
   Final overrides (v2026-04-19)
   ============================================================ */

:root {
  --fluid-h1: clamp(1.75rem, 4.8vw + 0.4rem, 3.4rem);
  --fluid-h2: clamp(1.4rem, 3.2vw + 0.4rem, 2.4rem);
  --fluid-body: clamp(0.95rem, 0.4vw + 0.85rem, 1.05rem);
}

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* === Small laptop / narrow desktop: 901-1200px ============== */
@media (min-width: 901px) and (max-width: 1200px) {
  .site-header,
  .site-header.is-compact {
    width: min(1180px, calc(100% - 24px)) !important;
    padding: 12px 18px !important;
  }
  .logo > span:last-child { font-size: 0.9rem; letter-spacing: 0.18em; }
  .logo-mark { width: 42px !important; height: 42px !important; }
  .logo { padding: 6px 12px 6px 8px !important; gap: 10px !important; }
  .menu { gap: 14px !important; }
  .menu li a,
  .menu li { font-size: 0.82rem !important; letter-spacing: 0.14em !important; padding: 10px 12px !important; }
  .actions { gap: 10px !important; }
  .action-button { padding: 10px 18px !important; font-size: 0.82rem !important; letter-spacing: 0.18em !important; }
  .header-play-entry { flex-basis: 108px !important; width: 108px !important; }
}

/* === Tablet: 769-900px (burger appears) ===================== */
@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 16px) !important;
    margin-top: 10px !important;
    padding: 10px 14px !important;
    border-radius: 20px !important;
    gap: 10px;
  }
  .logo { padding: 6px 10px !important; gap: 10px !important; }
  .logo-mark { width: 40px !important; height: 40px !important; border-radius: 12px !important; }
  .logo > span:last-child { font-size: 0.82rem; letter-spacing: 0.16em; }
  .burger-button {
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    margin-left: auto;
  }
  .header-nav { gap: 10px !important; padding: 12px !important; }
  .menu, .actions { width: 100%; gap: 8px !important; }
  .menu li, .actions li { width: 100%; text-align: center; }
  .menu li a { display: block; padding: 12px 14px; font-size: 0.9rem; }
  .action-button { width: 100%; justify-content: center; padding: 12px 16px; font-size: 0.9rem; }
}

/* === Phone: ≤ 600px ========================================= */
@media (max-width: 600px) {
  .site-header {
    width: calc(100% - 10px) !important;
    margin-top: 6px !important;
    padding: 8px 10px !important;
    border-radius: 16px !important;
  }
  .logo { padding: 4px 8px !important; gap: 8px !important; }
  .logo-mark { width: 34px !important; height: 34px !important; border-radius: 10px !important; }
  .logo > span:last-child { font-size: 0.72rem; letter-spacing: 0.12em; }
  .burger-button { width: 40px !important; height: 40px !important; }

  main { padding-left: 10px; padding-right: 10px; }
  section { padding-left: 0 !important; padding-right: 0 !important; }

  .hero-content {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 16px !important;
  }
  .hero-copy { text-align: center; align-items: center; padding: 4px 0 !important; }
  .hero-title, .hero-copy h1 { font-size: var(--fluid-h1) !important; line-height: 1.1; }
  .hero-copy p { font-size: var(--fluid-body) !important; line-height: 1.45; }

  h1 { font-size: var(--fluid-h1); line-height: 1.12; }
  h2 { font-size: var(--fluid-h2); line-height: 1.18; }
  p  { font-size: var(--fluid-body); }

  .auth-modal__panel,
  .auth-panel { padding: 18px !important; }
  .auth-form input { font-size: 16px !important; } /* prevent iOS zoom */
  .action-button { font-size: 0.88rem; padding: 12px 14px; }
}

/* === Very small: ≤ 380px ==================================== */
@media (max-width: 380px) {
  .logo > span:last-child { display: none; }
  .site-header { padding: 6px 8px !important; }
  .logo { padding: 4px !important; }
  .logo-mark { width: 32px !important; height: 32px !important; }
}

/* === Hide auth button when user-box visible (mobile safety) = */
@media (max-width: 900px) {
  .user-box:not([hidden]) + .auth-login,
  .auth-entry .user-box:not([hidden]) ~ .auth-login { display: none; }
}

/* === Mobile header centering: defeat translateX(-50%) shift === */
@media (max-width: 900px) {
  .site-header,
  .site-header.is-compact {
    margin-left: auto !important;
    margin-right: auto !important;
    left: auto !important;
    right: auto !important;
    transform: translateZ(0) !important;
  }
}

/* ============================================================
   Performance optimization (v2026-04-19)
   ============================================================ */

/* GPU-accelerate heavy animated layers */
.blood-particles span,
.haunt-figure,
.site-loader__rift,
.site-loader__shard,
.hero-panel,
.site-header {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Remove expensive blur/shadow from particles — keep glow via simpler gradient */
.blood-particles span {
  filter: none !important;
  box-shadow: 0 0 8px rgba(196, 238, 255, 0.3) !important;
  will-change: transform;
}

.haunt-figure { will-change: transform, opacity; }

/* Below-fold sections — skip rendering when offscreen */
main > section:nth-of-type(n+2),
.wiki-section,
.world-chapter,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

/* Halve particles on tablet, hide on phone — biggest FPS win */
@media (max-width: 1024px) {
  .blood-particles span:nth-child(n+7) { display: none; }
  .haunt-figure--far, .haunt-figure--center { display: none; }
  .haunt-whisper { display: none; }
}

@media (max-width: 768px) {
  .blood-particles { display: none !important; }
  .haunt-figures { display: none !important; }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .blood-particles,
  .haunt-figures,
  .site-loader__rift-ring,
  .site-loader__shard,
  .site-loader__glow { display: none !important; }
}

/* Pause expensive animations when tab is backgrounded (via class, set from JS)
   or when hero is off-screen */
.is-hidden-bg .blood-particles span,
.is-hidden-bg .haunt-figure,
.is-hidden-bg .site-loader__rift-ring { animation-play-state: paused !important; }


/* Remove keyboard/tab focus outline globally */
*:focus,
*:focus-visible,
a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
textarea:focus,
[tabindex]:focus,
[tabindex]:focus-visible {
  outline: none !important;
}
