@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

/* ==========================================================================
   Prism Ruins — home theme
   Dark fantasy stone ruins + modern product UI.
   Square-ish corners, carved panels, teal/purple rune light, pink stone CTA.
   ========================================================================== */

:root {
  --ru-bg: #090B0E;
  --ru-bg-2: #0B0E11;
  --ru-bg-3: #101419;
  --ru-stone: #25292C;
  --ru-stone-2: #343A3E;
  --ru-stone-3: #454B4F;
  --ru-ink: #F3F0E8;
  --ru-muted: #989A9A;
  --ru-soft: #CBC8C0;
  --ru-teal: #70D9C0;
  --ru-teal-deep: #2C8E7D;
  --ru-purple: #A66BD4;
  --ru-purple-deep: #684087;
  --ru-pink: #E45176;
  --ru-max: 1180px;
  --ru-header: 72px;
  --ru-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ru-body: "Figtree", ui-sans-serif, system-ui, sans-serif;

  /* derived */
  --ru-radius: 5px;
  --ru-radius-sm: 3px;
  --ru-edge: rgba(243, 240, 232, 0.09);
  --ru-edge-strong: rgba(243, 240, 232, 0.16);
  --ru-carve: inset 0 1px 0 rgba(243, 240, 232, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.55);
  --ru-lift: 0 18px 44px rgba(0, 0, 0, 0.5);
  --ru-gutter: clamp(1.1rem, 4vw, 2rem);
  --ru-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Document shell
   -------------------------------------------------------------------------- */

html.ruins-doc {
  background: var(--ru-bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ru-header) + 12px);
  -webkit-text-size-adjust: 100%;
}

body.ruins-home {
  margin: 0;
  min-height: 100vh;
  background: var(--ru-bg);
  color: var(--ru-ink);
  font-family: var(--ru-body);
  font-size: 16.5px;
  line-height: 1.66;
  letter-spacing: 0.002em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.ruins-home.nav-open,
body.ruins-home.nx-nav-open,
body.ruins-home.gate-open {
  overflow: hidden;
}

body.ruins-home *,
body.ruins-home *::before,
body.ruins-home *::after {
  box-sizing: border-box;
}

body.ruins-home h1,
body.ruins-home h2,
body.ruins-home h3,
body.ruins-home h4 {
  font-family: var(--ru-display);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.12;
  color: var(--ru-ink);
  margin: 0 0 0.6rem;
}

body.ruins-home p {
  margin: 0 0 1rem;
  color: var(--ru-soft);
}

body.ruins-home a {
  color: var(--ru-teal);
  text-decoration: none;
  transition: color 0.18s var(--ru-ease);
}

body.ruins-home a:hover {
  color: #93e6d3;
}

body.ruins-home img,
body.ruins-home picture,
body.ruins-home svg {
  max-width: 100%;
  display: block;
}

body.ruins-home ul,
body.ruins-home ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.ruins-home :focus-visible {
  outline: 2px solid var(--ru-teal);
  outline-offset: 3px;
  border-radius: var(--ru-radius-sm);
}

body.ruins-home ::selection {
  background: rgba(112, 217, 192, 0.28);
  color: #fff;
}

.ruins-skip,
body.ruins-home .pv-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--ru-stone);
  color: var(--ru-ink);
  border: 1px solid var(--ru-edge-strong);
  border-radius: var(--ru-radius);
  font-weight: 600;
}

.ruins-skip:focus,
body.ruins-home .pv-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* shared inner width */
.ruins-wrap,
.mast-inner,
.alcove-wrap,
.chamber-hero-core,
.crypt-foot-inner {
  width: min(100% - (2 * var(--ru-gutter)), var(--ru-max));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.mast-bar,
#mast-anchor {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--ru-header);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(9, 11, 14, 0.86), rgba(9, 11, 14, 0.62));
  border-bottom: 1px solid rgba(243, 240, 232, 0.06);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: background 0.25s var(--ru-ease), border-color 0.25s var(--ru-ease),
    box-shadow 0.25s var(--ru-ease);
}

.mast-bar::after,
#mast-anchor::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(112, 217, 192, 0.35),
    rgba(166, 107, 212, 0.32),
    transparent
  );
  opacity: 0.45;
  pointer-events: none;
}

.mast-bar.is-pinned,
.mast-bar.is-scrolled,
#mast-anchor.is-pinned,
#mast-anchor.is-scrolled {
  background: linear-gradient(180deg, rgba(9, 11, 14, 0.96), rgba(11, 14, 17, 0.9));
  border-bottom-color: rgba(243, 240, 232, 0.1);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
}

.mast-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  width: min(100% - (2 * var(--ru-gutter)), var(--ru-max));
}

/* logo + name */
.sigil-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  color: var(--ru-ink);
  font-family: var(--ru-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  padding: 0.3rem 0.35rem;
  border-radius: var(--ru-radius);
}

.sigil-lock:hover {
  color: var(--ru-ink);
}

.sigil-lock img,
.sigil-lock svg {
  width: 28px;
  height: 28px;
  border-radius: var(--ru-radius-sm);
  filter: drop-shadow(0 0 10px rgba(112, 217, 192, 0.28));
  transition: filter 0.22s var(--ru-ease), transform 0.22s var(--ru-ease);
}

.sigil-lock:hover img,
.sigil-lock:hover svg {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 14px rgba(166, 107, 212, 0.42));
}

/* nav links */
.route-rail {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline: auto;
}

.route-rail a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.72rem;
  border-radius: var(--ru-radius);
  color: var(--ru-muted);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: color 0.18s var(--ru-ease), background 0.18s var(--ru-ease);
}

.route-rail a:hover {
  color: var(--ru-ink);
  background: rgba(52, 58, 62, 0.42);
}

.route-rail a[aria-current="page"],
.route-rail a.is-active {
  color: var(--ru-ink);
}

.route-rail a[aria-current="page"]::after,
.route-rail a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.22rem;
  width: 5px;
  height: 5px;
  transform: translateX(-50%);
  background: var(--ru-teal);
  box-shadow: 0 0 10px rgba(112, 217, 192, 0.75);
}

.mast-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

/* mobile trigger */
#gate-toggle,
.gate-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 0.85rem;
  border: 1px solid var(--ru-edge-strong);
  border-radius: var(--ru-radius);
  background: linear-gradient(180deg, var(--ru-stone-2), var(--ru-stone));
  color: var(--ru-ink);
  font-family: var(--ru-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--ru-carve);
}

#gate-toggle:hover,
.gate-toggle:hover {
  border-color: rgba(112, 217, 192, 0.4);
  color: var(--ru-teal);
}

/* mobile drawer */
.tongue-nav,
#tongue-nav {
  position: fixed;
  inset: var(--ru-header) 0 auto 0;
  z-index: 89;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem var(--ru-gutter) 1.4rem;
  background: linear-gradient(180deg, rgba(11, 14, 17, 0.98), rgba(9, 11, 14, 0.98));
  border-bottom: 1px solid var(--ru-edge);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-height: calc(100svh - var(--ru-header));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tongue-nav.is-open,
#tongue-nav.is-open {
  display: flex;
}

.tongue-nav a,
#tongue-nav a {
  padding: 0.78rem 0.7rem;
  border-radius: var(--ru-radius);
  border-bottom: 1px solid rgba(243, 240, 232, 0.05);
  color: var(--ru-soft);
  font-weight: 600;
  font-size: 1rem;
}

.tongue-nav a:hover,
#tongue-nav a:hover {
  background: rgba(52, 58, 62, 0.4);
  color: var(--ru-ink);
}

.tongue-nav a[aria-current="page"],
#tongue-nav a[aria-current="page"] {
  color: var(--ru-teal);
}

.tongue-nav .orb-btn,
#tongue-nav .orb-btn,
.tongue-nav .pv-btn,
#tongue-nav .pv-btn {
  margin-top: 0.8rem;
  width: 100%;
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Language switch — new (.lang-switch) + legacy (.pv-lang / .nx-lang)
   The shared site.js resolves the trigger via
   .pv-lang-btn | .nx-lang-btn | .lang-switch-btn, so markup using
   [data-lang-switch] should give the button BOTH .lang-btn and .lang-switch-btn.
   -------------------------------------------------------------------------- */

.lang-switch,
.pv-lang,
.nx-lang {
  position: relative;
  flex: 0 0 auto;
}

.lang-btn,
.lang-switch-btn,
.pv-lang-btn,
.nx-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 40px;
  padding: 0 0.8rem;
  border: 1px solid var(--ru-edge-strong);
  border-radius: var(--ru-radius);
  background: linear-gradient(180deg, var(--ru-stone-2), var(--ru-stone));
  color: var(--ru-soft);
  font-family: var(--ru-body);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--ru-carve);
  transition: border-color 0.18s var(--ru-ease), color 0.18s var(--ru-ease),
    transform 0.18s var(--ru-ease);
}

.lang-btn:hover,
.lang-switch-btn:hover,
.pv-lang-btn:hover,
.nx-lang-btn:hover {
  border-color: rgba(112, 217, 192, 0.42);
  color: var(--ru-teal);
  transform: translateY(-1px);
}

.lang-btn::after,
.lang-switch-btn::after,
.pv-lang-btn::after,
.nx-lang-btn::after {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  opacity: 0.7;
}

.lang-menu,
.pv-lang-menu,
.nx-lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 95;
  min-width: 11.5rem;
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  background: linear-gradient(180deg, rgba(16, 20, 25, 0.98), rgba(9, 11, 14, 0.98));
  border: 1px solid var(--ru-edge-strong);
  border-radius: var(--ru-radius);
  box-shadow: var(--ru-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ru-ease), transform 0.18s var(--ru-ease),
    visibility 0.18s var(--ru-ease);
}

.lang-switch.is-open .lang-menu,
.pv-lang.is-open .pv-lang-menu,
.nx-lang.is-open .nx-lang-menu,
[data-lang-switch].is-open .lang-menu,
[data-lang-switch].is-open .pv-lang-menu,
[data-lang-switch].is-open .nx-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a,
.pv-lang-menu a,
.nx-lang-menu a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: var(--ru-radius-sm);
  color: var(--ru-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.lang-menu a:hover,
.pv-lang-menu a:hover,
.nx-lang-menu a:hover {
  background: rgba(52, 58, 62, 0.6);
  color: var(--ru-ink);
}

.lang-menu a[aria-current="true"],
.pv-lang-menu a[aria-current="true"],
.nx-lang-menu a[aria-current="true"] {
  color: var(--ru-teal);
}

/* --------------------------------------------------------------------------
   Buttons — .orb-btn (canonical) with .pv-btn aliases for locale pages
   -------------------------------------------------------------------------- */

.orb-btn,
.pv-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.68rem 1.25rem;
  border: 1px solid var(--ru-edge-strong);
  border-radius: var(--ru-radius);
  background: linear-gradient(180deg, var(--ru-stone-2), var(--ru-stone));
  color: var(--ru-ink);
  font-family: var(--ru-display);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.004em;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--ru-carve);
  transition: transform 0.18s var(--ru-ease), box-shadow 0.22s var(--ru-ease),
    border-color 0.22s var(--ru-ease), background 0.22s var(--ru-ease), color 0.18s var(--ru-ease);
}

.orb-btn:hover,
.pv-btn:hover {
  transform: translateY(-2px);
  color: var(--ru-ink);
}

.orb-btn:active,
.pv-btn:active {
  transform: translateY(0);
}

/* primary — pink stone */
.orb-btn-primary,
.pv-btn-primary {
  border-color: rgba(228, 81, 118, 0.55);
  background: linear-gradient(180deg, #ef5f83, var(--ru-pink) 55%, #b93a5b);
  color: #fff5f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 10px 26px rgba(228, 81, 118, 0.22);
}

.orb-btn-primary:hover,
.pv-btn-primary:hover {
  border-color: rgba(228, 81, 118, 0.8);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 16px 34px rgba(228, 81, 118, 0.3);
}

/* ghost — charcoal with teal hover */
.orb-btn-ghost,
.pv-btn-ghost {
  border-color: var(--ru-edge-strong);
  background: linear-gradient(180deg, rgba(52, 58, 62, 0.6), rgba(37, 41, 44, 0.75));
  color: var(--ru-soft);
}

.orb-btn-ghost:hover,
.pv-btn-ghost:hover {
  border-color: rgba(112, 217, 192, 0.5);
  color: var(--ru-teal);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(112, 217, 192, 0.12);
}

.orb-btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.orb-btn-wide {
  width: 100%;
}

.orb-btn[aria-disabled="true"],
.orb-btn:disabled,
.pv-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero chamber — the ONLY place the cliff artwork appears
   -------------------------------------------------------------------------- */

.chamber-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--ru-header));
  padding: calc(var(--ru-header) + clamp(2.5rem, 7vh, 5rem)) 0 clamp(3rem, 8vh, 6rem);
  display: flex;
  align-items: center;
}

.chamber-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(
      180deg,
      rgba(9, 11, 14, 0.08) 0%,
      rgba(9, 11, 14, 0.12) 40%,
      rgba(9, 11, 14, 0.35) 78%,
      rgba(9, 11, 14, 0.78) 100%
    ),
    url("media/void_between_voxel_cliffs.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  pointer-events: none;
}

/* faint rune glow washes, kept low so the art stays readable */
.chamber-hero::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(46% 38% at 18% 24%, rgba(44, 142, 125, 0.18), transparent 70%),
    radial-gradient(42% 36% at 84% 30%, rgba(104, 64, 135, 0.2), transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* bottom fade into the vault stage */
.chamber-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(9, 11, 14, 0.72) 55%, var(--ru-bg));
}

/* fog layers */
.chamber-fog {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.chamber-fog::before,
.chamber-fog::after {
  content: "";
  position: absolute;
  inset: auto -30% -14% -30%;
  height: 78%;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.3;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(203, 200, 192, 0.3),
    rgba(112, 217, 192, 0.12) 46%,
    transparent 72%
  );
  animation: ruFogDrift 34s ease-in-out infinite alternate;
}

.chamber-fog::after {
  height: 56%;
  opacity: 0.22;
  filter: blur(62px);
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(166, 107, 212, 0.24),
    transparent 70%
  );
  animation-duration: 48s;
  animation-direction: alternate-reverse;
}

/* floating voxel cubes */
.chamber-float {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.chamber-float > * {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: 2px;
  background: linear-gradient(150deg, rgba(69, 75, 79, 0.72), rgba(24, 28, 31, 0.66));
  box-shadow: inset 0 1px 0 rgba(243, 240, 232, 0.1), 0 14px 30px rgba(0, 0, 0, 0.45);
  opacity: 0.55;
  animation: ruFloatCube 22s ease-in-out infinite;
  will-change: transform;
}

.chamber-float > *:nth-child(1) {
  left: 7%;
  top: 24%;
  width: 44px;
  height: 44px;
  animation-duration: 26s;
}
.chamber-float > *:nth-child(2) {
  left: 16%;
  top: 62%;
  width: 24px;
  height: 24px;
  animation-duration: 19s;
  animation-delay: -4s;
  opacity: 0.42;
}
.chamber-float > *:nth-child(3) {
  right: 9%;
  top: 20%;
  width: 30px;
  height: 30px;
  animation-duration: 30s;
  animation-delay: -8s;
  border-color: rgba(112, 217, 192, 0.24);
}
.chamber-float > *:nth-child(4) {
  right: 18%;
  top: 66%;
  width: 40px;
  height: 40px;
  animation-duration: 24s;
  animation-delay: -12s;
  border-color: rgba(166, 107, 212, 0.24);
}
.chamber-float > *:nth-child(5) {
  left: 30%;
  top: 12%;
  width: 18px;
  height: 18px;
  animation-duration: 17s;
  animation-delay: -6s;
  opacity: 0.34;
}
.chamber-float > *:nth-child(6) {
  right: 32%;
  bottom: 12%;
  width: 22px;
  height: 22px;
  animation-duration: 28s;
  animation-delay: -15s;
  opacity: 0.38;
}
.chamber-float > *:nth-child(7) {
  left: 46%;
  top: 78%;
  width: 15px;
  height: 15px;
  animation-duration: 21s;
  animation-delay: -9s;
  opacity: 0.3;
}
.chamber-float > *:nth-child(n + 8) {
  display: none;
}

/* hero content column */
.chamber-hero-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.75rem, 2vh, 1.2rem);
}

.chamber-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(112, 217, 192, 0.24);
  border-radius: var(--ru-radius);
  background: rgba(9, 11, 14, 0.55);
  color: var(--ru-teal);
  font-family: var(--ru-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chamber-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ru-teal);
  box-shadow: 0 0 10px rgba(112, 217, 192, 0.8);
}

.relic-title {
  margin: 0.2rem 0 0.1rem;
  line-height: 1;
}

.relic-title img,
img.relic-title {
  display: block;
  width: min(720px, 86vw);
  max-width: min(720px, 86vw);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 26px rgba(112, 217, 192, 0.14));
}

.relic-title-text {
  font-family: var(--ru-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 700;
  color: var(--ru-ink);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55), 0 18px 44px rgba(0, 0, 0, 0.6);
}

.chamber-lead {
  max-width: 62ch;
  margin: 0.2rem auto 0;
  color: #e2ded4;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.chamber-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.chamber-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.15rem;
  margin: 0.3rem 0 0;
  color: var(--ru-muted);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.chamber-meta > * {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
  color: inherit;
}

.chamber-meta > *::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--ru-purple);
  box-shadow: 0 0 8px rgba(166, 107, 212, 0.7);
}

.chamber-meta > *:nth-child(even)::before {
  background: var(--ru-teal);
  box-shadow: 0 0 8px rgba(112, 217, 192, 0.7);
}

/* hero screenshot slab */
.relic-shot {
  position: relative;
  width: min(640px, 92vw);
  margin: clamp(1.4rem, 4vh, 2.6rem) auto 0;
  padding: 0.5rem;
  border: 1px solid var(--ru-edge-strong);
  border-radius: var(--ru-radius);
  background: linear-gradient(180deg, rgba(37, 41, 44, 0.92), rgba(11, 14, 17, 0.94));
  box-shadow: inset 0 1px 0 rgba(243, 240, 232, 0.07), 0 30px 70px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.28s var(--ru-ease), box-shadow 0.28s var(--ru-ease);
}

/* teal/purple rim */
.relic-shot::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--ru-radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(112, 217, 192, 0.45), transparent 42%, rgba(166, 107, 212, 0.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* square corner indicators */
.relic-shot::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background-image: linear-gradient(var(--ru-teal), var(--ru-teal)),
    linear-gradient(var(--ru-teal), var(--ru-teal)), linear-gradient(var(--ru-purple), var(--ru-purple)),
    linear-gradient(var(--ru-purple), var(--ru-purple));
  background-size: 10px 2px, 2px 10px, 10px 2px, 2px 10px;
  background-position: left top, left top, right bottom, right bottom;
  background-repeat: no-repeat;
  opacity: 0.75;
}

.relic-shot:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(243, 240, 232, 0.09), 0 36px 82px rgba(0, 0, 0, 0.68);
}

.relic-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--ru-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.6);
}

.relic-shot-cap {
  margin: 0.55rem 0.2rem 0.15rem;
  color: var(--ru-muted);
  font-size: 0.83rem;
  letter-spacing: 0.03em;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Vault stage — everything after the hero (no cliff artwork here)
   -------------------------------------------------------------------------- */

#vault-stage,
.vault-stage {
  position: relative;
  isolation: isolate;
  background-color: var(--ru-bg);
  background-image: radial-gradient(52% 30% at 12% 4%, rgba(44, 142, 125, 0.13), transparent 68%),
    radial-gradient(46% 26% at 88% 22%, rgba(104, 64, 135, 0.14), transparent 70%),
    radial-gradient(60% 34% at 50% 58%, rgba(44, 142, 125, 0.08), transparent 72%),
    radial-gradient(50% 28% at 16% 84%, rgba(104, 64, 135, 0.12), transparent 70%),
    linear-gradient(180deg, var(--ru-bg), var(--ru-bg-2) 52%, var(--ru-bg));
  background-repeat: no-repeat;
  background-attachment: scroll;
}

#vault-stage::before,
.vault-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: linear-gradient(rgba(243, 240, 232, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.022) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

/* sections */
.alcove {
  position: relative;
  padding: clamp(3.2rem, 8vh, 6.2rem) 0;
}

.alcove-tight {
  padding-block: clamp(2.2rem, 5vh, 3.6rem);
}

.alcove-wrap {
  position: relative;
  z-index: 1;
}

.alcove-head {
  max-width: 74ch;
  margin: 0 0 clamp(1.6rem, 4vh, 2.6rem);
}

.alcove-head-center {
  margin-inline: auto;
  text-align: center;
}

/* All major titles centered site-wide */
.rune-head,
.alcove-head,
.title-block,
.alcove > .alcove-wrap > .rune-kicker,
.alcove > .alcove-wrap > .rune-title,
.alcove > .alcove-wrap > .soft-copy.center-max,
.finale-chamber .rune-title,
.finale-chamber .soft-copy,
.page-hero .rune-title,
.page-hero .rune-kicker,
.page-hero .soft-copy,
.feat-hero .rune-title,
.feat-hero .rune-kicker,
.dl-hero .rune-title,
.dl-hero .rune-kicker,
.guide-hero .rune-title,
.faq-hero .rune-title,
.trust-hero .rune-title {
  text-align: center;
}

.rune-head,
.alcove-head,
.title-block {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  margin-bottom: clamp(1.35rem, 3.5vh, 2.2rem);
}

.rune-head .rune-kicker,
.alcove-head .rune-kicker,
.title-block .rune-kicker,
.alcove > .alcove-wrap > .rune-kicker,
.page-hero .rune-kicker,
.feat-hero .rune-kicker,
.dl-hero .rune-kicker {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
}

.rune-head,
.alcove-head,
.title-block {
  text-align: center;
}

.rune-head .soft-copy,
.alcove-head .rune-lead,
.alcove > .alcove-wrap > .soft-copy,
.alcove > .alcove-wrap > .rune-title + .soft-copy,
.soft-copy.center-max {
  margin-inline: auto;
  text-align: center;
}

.rune-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: var(--ru-teal);
  font-family: var(--ru-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.rune-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--ru-teal);
  box-shadow: 0 0 12px rgba(112, 217, 192, 0.85), 0 0 26px rgba(112, 217, 192, 0.35);
}

.rune-kicker-purple {
  color: var(--ru-purple);
}

.rune-kicker-purple::before {
  background: var(--ru-purple);
  box-shadow: 0 0 12px rgba(166, 107, 212, 0.85), 0 0 26px rgba(166, 107, 212, 0.35);
}

.rune-kicker-pink {
  color: var(--ru-pink);
}

.rune-kicker-pink::before {
  background: var(--ru-pink);
  box-shadow: 0 0 12px rgba(228, 81, 118, 0.85), 0 0 26px rgba(228, 81, 118, 0.3);
}

.rune-title {
  margin: 0 auto 0.7rem;
  color: #f7f4ec;
  font-family: var(--ru-display);
  font-size: clamp(1.75rem, 3.5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 14px 34px rgba(0, 0, 0, 0.5);
}

.rune-title-sm {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.rune-lead {
  max-width: 66ch;
  margin: 0;
  color: var(--ru-soft);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
}

.alcove-head-center .rune-lead {
  margin-inline: auto;
}

.rune-note {
  color: var(--ru-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Carved panels
   -------------------------------------------------------------------------- */

.stone-panel {
  position: relative;
  padding: clamp(1.15rem, 2.4vw, 1.7rem);
  border: 1px solid var(--ru-edge);
  border-radius: var(--ru-radius);
  background: linear-gradient(158deg, rgba(52, 58, 62, 0.5), rgba(16, 20, 25, 0.86) 62%, rgba(11, 14, 17, 0.92));
  box-shadow: var(--ru-carve), 0 14px 34px rgba(0, 0, 0, 0.38);
  transition: transform 0.24s var(--ru-ease), border-color 0.24s var(--ru-ease),
    box-shadow 0.24s var(--ru-ease);
}

.stone-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--ru-radius);
  pointer-events: none;
  opacity: 0.5;
  background: linear-gradient(180deg, rgba(243, 240, 232, 0.045), transparent 26%);
}

.stone-panel:hover {
  transform: translateY(-3px);
  border-color: var(--ru-edge-strong);
  box-shadow: var(--ru-carve), 0 22px 48px rgba(0, 0, 0, 0.48);
}

.stone-panel-teal:hover {
  border-color: rgba(112, 217, 192, 0.34);
}

.stone-panel-purple:hover {
  border-color: rgba(166, 107, 212, 0.34);
}

.stone-panel.edge-teal {
  box-shadow: var(--ru-carve), inset 3px 0 0 rgba(112, 217, 192, 0.55);
}

.stone-panel.edge-violet {
  box-shadow: var(--ru-carve), inset 3px 0 0 rgba(166, 107, 212, 0.55);
}

.stone-panel h3,
.stone-panel .panel-title {
  margin: 0 0 0.45rem;
  font-family: var(--ru-display);
  font-size: 1.12rem;
  color: var(--ru-ink);
}

.stone-panel p {
  margin: 0;
  color: var(--ru-muted);
  font-size: 0.97rem;
}

.stone-panel-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(112, 217, 192, 0.28);
  border-radius: var(--ru-radius-sm);
  background: linear-gradient(180deg, rgba(44, 142, 125, 0.22), rgba(9, 11, 14, 0.6));
  color: var(--ru-teal);
  font-family: var(--ru-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.stone-panel-list {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.42rem;
}

.stone-panel-list li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--ru-soft);
  font-size: 0.95rem;
}

.stone-panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--ru-teal);
  box-shadow: 0 0 8px rgba(112, 217, 192, 0.6);
}

.panel-grid {
  display: grid;
  gap: clamp(0.85rem, 1.8vw, 1.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr));
}

/* --------------------------------------------------------------------------
   Screenshot chrome
   -------------------------------------------------------------------------- */

.stone-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ru-edge-strong);
  border-radius: var(--ru-radius);
  background: linear-gradient(180deg, rgba(37, 41, 44, 0.95), rgba(11, 14, 17, 0.96));
  box-shadow: var(--ru-carve), 0 20px 46px rgba(0, 0, 0, 0.46);
  transition: transform 0.24s var(--ru-ease), border-color 0.24s var(--ru-ease),
    box-shadow 0.24s var(--ru-ease);
}

.stone-frame:hover {
  transform: translateY(-3px);
  border-color: rgba(112, 217, 192, 0.32);
  box-shadow: var(--ru-carve), 0 28px 60px rgba(0, 0, 0, 0.56);
}

.stone-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, rgba(69, 75, 79, 0.6), rgba(24, 28, 31, 0.7));
  box-shadow: inset 0 1px 0 rgba(243, 240, 232, 0.06);
}

.stone-frame-bar::before {
  content: "■ ■ ■";
  color: rgba(203, 200, 192, 0.42);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  line-height: 1;
}

.stone-frame-bar span,
.stone-frame-name {
  color: var(--ru-muted);
  font-family: var(--ru-display);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stone-frame > img,
.stone-frame picture img,
.stone-frame-body img,
.stone-frame [data-lightbox] img,
.stone-frame button img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
  background: var(--ru-bg-3);
  /* Prefer intrinsic ratio; ignore mismatched HTML width/height hints */
  aspect-ratio: auto;
}

.stone-frame [data-lightbox],
.stone-frame > button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
}

.stone-frame-cap {
  margin: 0;
  padding: 0.6rem 0.75rem 0.75rem;
  border-top: 1px solid rgba(243, 240, 232, 0.05);
  color: var(--ru-muted);
  font-size: 0.85rem;
}

[data-lightbox] {
  cursor: zoom-in;
}

/* --------------------------------------------------------------------------
   Seams — stone dividers
   -------------------------------------------------------------------------- */

.seam-row {
  position: relative;
  height: 1px;
  margin: clamp(2rem, 5vh, 3.4rem) 0;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(243, 240, 232, 0.12) 18%,
    rgba(243, 240, 232, 0.18) 50%,
    rgba(243, 240, 232, 0.12) 82%,
    transparent
  );
}

.seam-row::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--ru-stone-3);
  border: 1px solid rgba(243, 240, 232, 0.2);
}

.seam-row::after {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 3px;
  filter: blur(3px);
  opacity: 0;
  background: currentColor;
  transition: opacity 0.3s var(--ru-ease);
}

.seam-teal {
  color: var(--ru-teal);
}

.seam-teal::before {
  background: linear-gradient(140deg, var(--ru-teal), var(--ru-teal-deep));
  border-color: rgba(112, 217, 192, 0.5);
  box-shadow: 0 0 14px rgba(112, 217, 192, 0.5);
}

.seam-teal::after {
  opacity: 0.16;
}

.seam-purple {
  color: var(--ru-purple);
}

.seam-purple::before {
  background: linear-gradient(140deg, var(--ru-purple), var(--ru-purple-deep));
  border-color: rgba(166, 107, 212, 0.5);
  box-shadow: 0 0 14px rgba(166, 107, 212, 0.5);
}

.seam-purple::after {
  opacity: 0.16;
}

/* --------------------------------------------------------------------------
   Feature layouts
   -------------------------------------------------------------------------- */

.split-relic {
  display: grid;
  gap: clamp(1.4rem, 3.5vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
}

.split-relic-flip .split-relic-copy {
  order: 2;
}

.split-relic-flip .split-relic-art {
  order: 1;
}

.split-relic-copy > :last-child {
  margin-bottom: 0;
}

.split-relic-art {
  min-width: 0;
}

.split-relic + .split-relic {
  margin-top: clamp(2.4rem, 6vh, 4.4rem);
}

.split-relic-points {
  display: grid;
  gap: 0.55rem;
  margin: 1.1rem 0 1.3rem;
}

.split-relic-points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ru-soft);
  font-size: 0.98rem;
}

.split-relic-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--ru-purple);
  box-shadow: 0 0 10px rgba(166, 107, 212, 0.6);
}

.shot-duo {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.35rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.shot-duo-offset > *:nth-child(2) {
  transform: translateY(clamp(0.8rem, 3vh, 2.2rem));
}

.shot-solo {
  width: min(100%, 940px);
  margin-inline: auto;
}

.shot-trio {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* loader tablets */
.loader-tablets {
  display: grid;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  margin-top: clamp(1.2rem, 3vh, 2rem);
}

.loader-tablet {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.35rem 1rem 1.15rem;
  border: 1px solid var(--ru-edge);
  border-radius: var(--ru-radius);
  background: linear-gradient(168deg, rgba(69, 75, 79, 0.42), rgba(11, 14, 17, 0.9));
  box-shadow: var(--ru-carve), 0 18px 38px rgba(0, 0, 0, 0.42);
  text-align: center;
  animation: ruTabletHover 16s ease-in-out infinite;
  transition: transform 0.24s var(--ru-ease), border-color 0.24s var(--ru-ease),
    box-shadow 0.24s var(--ru-ease);
  will-change: transform;
}

.loader-tablet:nth-child(2) {
  animation-duration: 20s;
  animation-delay: -3s;
}

.loader-tablet:nth-child(3) {
  animation-duration: 24s;
  animation-delay: -7s;
}

.loader-tablet:nth-child(4) {
  animation-duration: 18s;
  animation-delay: -11s;
}

.loader-tablet::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(112, 217, 192, 0.6), transparent);
  opacity: 0.6;
}

.loader-tablet:nth-child(even)::before {
  background: linear-gradient(90deg, transparent, rgba(166, 107, 212, 0.6), transparent);
}

.loader-tablet:hover {
  transform: translateY(-4px);
  border-color: rgba(112, 217, 192, 0.32);
  box-shadow: var(--ru-carve), 0 26px 52px rgba(0, 0, 0, 0.52);
  animation-play-state: paused;
}

.loader-tablet-name {
  font-family: var(--ru-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ru-ink);
  letter-spacing: 0.01em;
}

.loader-tablet-note {
  margin: 0;
  color: var(--ru-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.loader-tablet-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: var(--ru-radius-sm);
  background: linear-gradient(160deg, rgba(69, 75, 79, 0.8), rgba(24, 28, 31, 0.8));
  color: var(--ru-teal);
  font-family: var(--ru-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.loader-tablet img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Audience mosaic
   -------------------------------------------------------------------------- */

.crowd-grid {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.3rem);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.crowd-grid > * {
  grid-column: span 2;
}

.crowd-grid > *:nth-child(1) {
  grid-column: span 3;
}

.crowd-grid > *:nth-child(2) {
  grid-column: span 3;
}

.crowd-grid > *:nth-child(6) {
  grid-column: span 3;
}

.crowd-grid > *:nth-child(7) {
  grid-column: span 3;
}

.crowd-card-role {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--ru-purple);
  font-family: var(--ru-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Comparison board
   -------------------------------------------------------------------------- */

.board-shell {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--ru-edge);
  border-radius: var(--ru-radius);
  background: linear-gradient(180deg, rgba(16, 20, 25, 0.9), rgba(9, 11, 14, 0.94));
  box-shadow: var(--ru-carve), 0 18px 44px rgba(0, 0, 0, 0.42);
  -webkit-overflow-scrolling: touch;
}

.board-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.board-table caption {
  padding: 0.9rem 1rem 0;
  color: var(--ru-muted);
  font-size: 0.85rem;
  text-align: left;
}

.board-table th,
.board-table td {
  padding: 0.82rem 1rem;
  border-bottom: 1px solid rgba(243, 240, 232, 0.06);
  text-align: left;
  vertical-align: top;
}

.board-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(52, 58, 62, 0.95), rgba(24, 28, 31, 0.95));
  color: var(--ru-ink);
  font-family: var(--ru-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.board-table tbody th {
  color: var(--ru-soft);
  font-weight: 600;
}

.board-table td {
  color: var(--ru-muted);
}

.board-table tbody tr:hover td,
.board-table tbody tr:hover th {
  background: rgba(52, 58, 62, 0.24);
}

.board-table tbody tr:last-child th,
.board-table tbody tr:last-child td {
  border-bottom: 0;
}

/* highlighted Prism column */
.board-table .is-prism,
.board-table .col-prism,
.board-table [data-col="prism"] {
  background: linear-gradient(180deg, rgba(44, 142, 125, 0.16), rgba(44, 142, 125, 0.07));
  color: #dff6ef;
  box-shadow: inset 1px 0 0 rgba(112, 217, 192, 0.28), inset -1px 0 0 rgba(112, 217, 192, 0.28);
}

.board-table thead .is-prism,
.board-table thead .col-prism,
.board-table thead [data-col="prism"] {
  background: linear-gradient(180deg, rgba(44, 142, 125, 0.6), rgba(24, 60, 55, 0.9));
  color: #eafff8;
  box-shadow: inset 1px 0 0 rgba(112, 217, 192, 0.4), inset -1px 0 0 rgba(112, 217, 192, 0.4),
    inset 0 2px 0 rgba(112, 217, 192, 0.55);
}

.board-yes {
  color: var(--ru-teal);
  font-weight: 600;
}

.board-no {
  color: #a9757f;
}

.board-partial {
  color: #d8c47f;
}

/* --------------------------------------------------------------------------
   Ledger — trust readout
   -------------------------------------------------------------------------- */

.ledger {
  display: grid;
  gap: 0;
  border: 1px solid var(--ru-edge);
  border-radius: var(--ru-radius);
  background: linear-gradient(180deg, rgba(16, 20, 25, 0.86), rgba(9, 11, 14, 0.92));
  box-shadow: var(--ru-carve), 0 16px 38px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 0.6rem 1.4rem;
  padding: 0.95rem clamp(0.9rem, 2vw, 1.4rem);
  border-bottom: 1px solid rgba(243, 240, 232, 0.055);
  transition: background 0.2s var(--ru-ease);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row:hover {
  background: rgba(52, 58, 62, 0.22);
}

.ledger-key {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--ru-soft);
  font-family: var(--ru-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ledger-key::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  transform: translateY(-0.15em);
  background: var(--ru-teal);
  box-shadow: 0 0 9px rgba(112, 217, 192, 0.65);
}

.ledger-val {
  margin: 0;
  color: var(--ru-muted);
  font-size: 0.96rem;
}

.ledger-val strong {
  color: var(--ru-ink);
  font-weight: 600;
}

.ledger-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0.5rem;
  border: 1px solid rgba(112, 217, 192, 0.3);
  border-radius: var(--ru-radius-sm);
  background: rgba(44, 142, 125, 0.14);
  color: var(--ru-teal);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Echoes — reviews marquee
   -------------------------------------------------------------------------- */

.echo-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0 0.85rem;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.echo-track::before,
.echo-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(4.5rem, 10vw);
  z-index: 2;
  pointer-events: none;
}

.echo-track::before {
  left: 0;
  background: linear-gradient(90deg, var(--ru-bg), transparent);
}

.echo-track::after {
  right: 0;
  background: linear-gradient(270deg, var(--ru-bg), transparent);
}

.echo-track-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(0.85rem, 2vw, 1.2rem);
  width: max-content;
  animation: ruMarquee 52s linear infinite;
  will-change: transform;
}

.echo-track:hover .echo-track-inner,
.echo-track-inner.is-paused {
  animation-play-state: paused;
}

.echo-card {
  flex: 0 0 auto;
  width: min(340px, 78vw);
  max-width: 340px;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--ru-edge);
  border-radius: var(--ru-radius);
  background: linear-gradient(145deg, rgba(52, 58, 62, 0.5), rgba(11, 14, 17, 0.92));
  box-shadow:
    var(--ru-carve),
    0 16px 36px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(112, 217, 192, 0.04);
  transition: transform 0.22s var(--ru-ease), border-color 0.22s var(--ru-ease), box-shadow 0.22s var(--ru-ease);
}

.echo-card:nth-child(4n + 2),
.echo-card:nth-child(4n + 3) {
  box-shadow:
    var(--ru-carve),
    0 16px 36px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(166, 107, 212, 0.06);
}

.echo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(112, 217, 192, 0.28);
  box-shadow:
    var(--ru-carve),
    0 20px 42px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(112, 217, 192, 0.12);
}

.echo-card .who {
  margin: 0 0 0.55rem;
  color: var(--ru-teal);
  font-family: var(--ru-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.echo-card .who::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.45rem;
  vertical-align: 0.05rem;
  background: currentColor;
  box-shadow: 0 0 8px rgba(112, 217, 192, 0.7);
}

.echo-card:nth-child(even) .who {
  color: var(--ru-purple);
}

.echo-card:nth-child(even) .who::before {
  box-shadow: 0 0 8px rgba(166, 107, 212, 0.7);
}

.echo-card > p:not(.who) {
  margin: 0;
  color: var(--ru-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.echo-card-quote {
  margin: 0 0 0.8rem;
  color: var(--ru-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

.echo-card-by {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--ru-muted);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Slit FAQ accordion
   -------------------------------------------------------------------------- */

.slit-faq {
  display: grid;
  gap: 0.6rem;
}

.slit-row,
.slit-faq .faq-row,
.slit-faq [data-accordion-item] {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ru-edge);
  border-radius: var(--ru-radius);
  background: linear-gradient(160deg, rgba(37, 41, 44, 0.6), rgba(11, 14, 17, 0.9));
  box-shadow: var(--ru-carve);
  transition: border-color 0.22s var(--ru-ease), box-shadow 0.22s var(--ru-ease),
    transform 0.22s var(--ru-ease);
}

.slit-row:hover,
.slit-faq .faq-row:hover,
.slit-faq [data-accordion-item]:hover {
  transform: translateY(-2px);
  border-color: var(--ru-edge-strong);
}

.slit-row.is-open,
.slit-faq .faq-row.is-open,
.slit-faq [data-accordion-item].is-open {
  border-color: rgba(112, 217, 192, 0.32);
  box-shadow: var(--ru-carve), 0 18px 40px rgba(0, 0, 0, 0.42);
}

.slit-row > button,
.slit-faq .faq-row > button,
.slit-faq [data-accordion-btn] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem clamp(0.9rem, 2vw, 1.25rem);
  border: 0;
  background: transparent;
  color: var(--ru-ink);
  font-family: var(--ru-display);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s var(--ru-ease);
}

.slit-row > button:hover,
.slit-faq .faq-row > button:hover,
.slit-faq [data-accordion-btn]:hover {
  color: var(--ru-teal);
}

.slit-row .q-mark,
.slit-faq .faq-row .q-mark,
.slit-row .slit-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ru-edge-strong);
  border-radius: var(--ru-radius-sm);
  background: rgba(9, 11, 14, 0.6);
  color: var(--ru-teal);
  font-family: var(--ru-body);
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s var(--ru-ease), background 0.2s var(--ru-ease);
}

.slit-row.is-open .q-mark,
.slit-faq .faq-row.is-open .q-mark,
.slit-row.is-open .slit-mark {
  border-color: rgba(112, 217, 192, 0.45);
  background: rgba(44, 142, 125, 0.22);
}

.slit-row .panel,
.slit-faq .faq-row .panel,
.slit-faq [data-accordion-panel] {
  padding: 0 clamp(0.9rem, 2vw, 1.25rem) 1.1rem;
  border-top: 1px solid rgba(243, 240, 232, 0.06);
  margin-top: -1px;
  color: var(--ru-muted);
  font-size: 0.97rem;
}

.slit-row .panel > *:first-child,
.slit-faq .faq-row .panel > *:first-child {
  margin-top: 0.9rem;
}

.slit-row .panel > *:last-child,
.slit-faq .faq-row .panel > *:last-child {
  margin-bottom: 0;
}

.slit-row[hidden],
.slit-faq .faq-row[hidden] {
  display: none;
}

/* faq category tabs */
.slit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.slit-tabs [data-filter] {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--ru-edge);
  border-radius: var(--ru-radius);
  background: rgba(37, 41, 44, 0.6);
  color: var(--ru-muted);
  font-family: var(--ru-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s var(--ru-ease), border-color 0.18s var(--ru-ease),
    background 0.18s var(--ru-ease);
}

.slit-tabs [data-filter]:hover {
  color: var(--ru-ink);
  border-color: var(--ru-edge-strong);
}

.slit-tabs [data-filter].is-active {
  border-color: rgba(112, 217, 192, 0.45);
  background: rgba(44, 142, 125, 0.2);
  color: var(--ru-teal);
}

/* --------------------------------------------------------------------------
   Finale CTA chamber
   -------------------------------------------------------------------------- */

.finale-chamber {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.4rem, 9vh, 6.4rem) 0;
  text-align: center;
  border-top: 1px solid rgba(243, 240, 232, 0.06);
  border-bottom: 1px solid rgba(243, 240, 232, 0.06);
  background: linear-gradient(180deg, var(--ru-bg-2), #070a0c);
}

.finale-chamber::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(38% 62% at 0% 50%, rgba(44, 142, 125, 0.24), transparent 68%),
    radial-gradient(38% 62% at 100% 50%, rgba(104, 64, 135, 0.26), transparent 68%);
}

/* vignette */
.finale-chamber::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(72% 82% at 50% 50%, transparent 38%, rgba(0, 0, 0, 0.62) 100%);
}

.finale-chamber .rune-title {
  font-size: clamp(1.95rem, 4.2vw, 3rem);
}

.finale-chamber .rune-lead {
  margin-inline: auto;
}

.finale-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.finale-fine {
  margin: 1rem 0 0;
  color: var(--ru-muted);
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Community gather stack
   -------------------------------------------------------------------------- */

.alcove-gather {
  position: relative;
}

.alcove-gather::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto;
  height: 55%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 50% at 12% 40%, rgba(44, 142, 125, 0.09), transparent 70%),
    radial-gradient(ellipse 42% 52% at 88% 55%, rgba(104, 64, 135, 0.1), transparent 72%);
}

.gather-board {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.45rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: clamp(1.1rem, 2.5vw, 1.6rem);
}

.gather-panel {
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
}

.gather-panel h3 {
  margin: 0 0 0.95rem;
  font-family: var(--ru-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ru-ink);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.gather-panel .soft-copy {
  margin: 0.95rem 0 0;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 0.15rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--ru-edge);
  border-radius: var(--ru-radius);
  background: linear-gradient(160deg, rgba(52, 58, 62, 0.55), rgba(11, 14, 17, 0.92));
  box-shadow: var(--ru-carve);
  transition: transform 0.2s var(--ru-ease), border-color 0.2s var(--ru-ease), box-shadow 0.2s var(--ru-ease);
}

.social-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 217, 192, 0.4);
  box-shadow: var(--ru-carve), 0 10px 24px rgba(0, 0, 0, 0.4);
}

.social-pill img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  filter: brightness(1.08);
}

.other-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.other-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--ru-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.other-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--ru-purple);
  box-shadow: 0 0 8px rgba(166, 107, 212, 0.55);
}

.patron-chamber {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 2.8vw, 1.85rem);
  background:
    radial-gradient(ellipse 55% 60% at 18% 0%, rgba(44, 142, 125, 0.08), transparent 65%),
    radial-gradient(ellipse 50% 55% at 85% 100%, rgba(104, 64, 135, 0.09), transparent 68%),
    linear-gradient(160deg, rgba(37, 41, 44, 0.72), rgba(11, 14, 17, 0.94));
}

.patron-head {
  text-align: center;
}

.patron-head h3 {
  margin: 0 auto 0.55rem;
  font-family: var(--ru-display);
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ru-ink);
  text-align: center;
}

.patron-head .soft-copy {
  margin: 0 auto 1.1rem;
  max-width: 52rem;
  text-align: center;
}

.cohort-link {
  display: block;
  margin: 0 auto 1.15rem;
  max-width: 920px;
  text-decoration: none;
}

.cohort-mosaic {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  background: transparent !important;
  box-shadow: none;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

.patron-note {
  margin: 0 auto 0.95rem;
  color: var(--ru-muted);
  font-size: 0.92rem;
  text-align: center;
}

.ally-row {
  display: grid;
  gap: clamp(0.7rem, 1.8vw, 1rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.ally-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ru-radius);
  background: linear-gradient(180deg, #f7f5f0, #e8e4dc);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s var(--ru-ease), box-shadow 0.2s var(--ru-ease);
}

.ally-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(112, 217, 192, 0.25);
}

.ally-tile img {
  max-width: min(100%, 140px);
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  opacity: 1;
  filter: none;
}

.ally-tile.wide img {
  max-height: 56px;
}

@media (max-width: 900px) {
  .gather-board {
    grid-template-columns: 1fr;
  }

  .ally-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ally-row {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Crypt footer
   -------------------------------------------------------------------------- */

.crypt-foot {
  position: relative;
  overflow: hidden;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  padding: clamp(2.6rem, 6.5vh, 3.8rem) var(--ru-gutter) clamp(1.8rem, 4vh, 2.6rem);
  background:
    radial-gradient(ellipse 42% 55% at 8% 0%, rgba(44, 142, 125, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 50% at 92% 20%, rgba(104, 64, 135, 0.12), transparent 72%),
    linear-gradient(180deg, #0a0d10 0%, #07090c 55%, #050709 100%);
  border-top: 1px solid rgba(112, 217, 192, 0.22);
  box-shadow: inset 0 1px 0 rgba(166, 107, 212, 0.12);
}

.crypt-foot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(28rem, 70vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(112, 217, 192, 0.75),
    rgba(166, 107, 212, 0.7),
    transparent
  );
  pointer-events: none;
}

.crypt-foot-inner,
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.6rem, 3.5vw, 2.6rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.7fr) minmax(0, 1.15fr);
  width: min(100%, var(--ru-max));
  margin-inline: auto;
  align-items: start;
}

.crypt-foot-brand,
.sigil-lock.foot {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  color: var(--ru-ink);
  font-family: var(--ru-display);
  font-weight: 700;
  text-decoration: none;
}

.crypt-foot-brand:hover,
.sigil-lock.foot:hover {
  color: var(--ru-teal);
}

.crypt-foot-brand img,
.sigil-lock.foot img {
  width: 28px;
  height: 28px;
  border-radius: 0.3rem;
}

.crypt-brand-col p,
.crypt-legal-col p,
.crypt-foot .soft-copy {
  margin: 0;
  max-width: 36rem;
  color: var(--ru-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.crypt-foot h4,
.crypt-foot-title,
.footer-label {
  margin: 0 0 0.85rem;
  color: var(--ru-soft);
  font-family: var(--ru-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.crypt-foot-links,
.foot-links {
  display: grid;
  gap: 0.48rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crypt-foot-links a,
.foot-links a {
  color: var(--ru-muted);
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.18s var(--ru-ease);
}

.crypt-foot-links a:hover,
.foot-links a:hover {
  color: var(--ru-teal);
}

.crypt-copy,
.crypt-foot .soft-copy.small {
  margin-top: 1rem !important;
  font-size: 0.82rem !important;
  color: rgba(152, 154, 154, 0.88) !important;
}

.crypt-foot-legal {
  width: min(100% - (2 * var(--ru-gutter)), var(--ru-max));
  margin: clamp(1.6rem, 4vh, 2.4rem) auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(243, 240, 232, 0.06);
  color: var(--ru-muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .crypt-foot-inner,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .crypt-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .crypt-foot-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Floating download chip
   -------------------------------------------------------------------------- */

.hover-chip {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.6rem);
  bottom: clamp(0.9rem, 3vw, 1.6rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.1rem;
  border: 1px solid rgba(228, 81, 118, 0.5);
  border-radius: var(--ru-radius);
  background: linear-gradient(180deg, #ef5f83, var(--ru-pink) 60%, #b93a5b);
  color: #fff5f7;
  font-family: var(--ru-display);
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 36px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(228, 81, 118, 0.14);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.28s var(--ru-ease), transform 0.28s var(--ru-ease),
    box-shadow 0.24s var(--ru-ease);
}

.hover-chip.is-shown,
.hover-chip.is-revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hover-chip.is-hero-hidden {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.hover-chip:hover {
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 22px 46px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(228, 81, 118, 0.3);
}

.hover-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.pv-lightbox,
.nx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 5, 7, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ru-ease), visibility 0.22s var(--ru-ease);
}

.pv-lightbox.is-open,
.nx-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.pv-lightbox img,
.nx-lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border: 1px solid var(--ru-edge-strong);
  border-radius: var(--ru-radius);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

.pv-lightbox-x,
.nx-lightbox-x {
  position: absolute;
  top: clamp(0.8rem, 3vw, 1.6rem);
  right: clamp(0.8rem, 3vw, 1.6rem);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ru-edge-strong);
  border-radius: var(--ru-radius);
  background: linear-gradient(180deg, var(--ru-stone-2), var(--ru-stone));
  color: var(--ru-ink);
  font-family: var(--ru-display);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.18s var(--ru-ease), color 0.18s var(--ru-ease);
}

.pv-lightbox-x:hover,
.nx-lightbox-x:hover {
  border-color: rgba(228, 81, 118, 0.55);
  color: var(--ru-pink);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ru-ease), transform 0.6s var(--ru-ease);
  will-change: opacity, transform;
}

[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

[data-reveal][data-reveal-delay="1"] {
  transition-delay: 0.08s;
}
[data-reveal][data-reveal-delay="2"] {
  transition-delay: 0.16s;
}
[data-reveal][data-reveal-delay="3"] {
  transition-delay: 0.24s;
}
[data-reveal][data-reveal-delay="4"] {
  transition-delay: 0.32s;
}

[data-reveal="left"] {
  transform: translateX(-22px);
}

[data-reveal="right"] {
  transform: translateX(22px);
}

[data-reveal="scale"] {
  transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes ruFloatCube {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(10px, -26px, 0) rotate(8deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes ruTabletHover {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes ruFogDrift {
  0% {
    transform: translate3d(-4%, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(4%, -3%, 0) scale(1.08);
  }
}

@keyframes ruMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .split-relic {
    gap: clamp(1.2rem, 3vw, 2rem);
  }

  .crowd-grid > *:nth-child(n) {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  :root {
    --ru-gutter: clamp(1rem, 4vw, 1.4rem);
  }

  .route-rail {
    display: none;
  }

  #gate-toggle,
  .gate-toggle {
    display: inline-flex;
  }

  .mast-inner {
    justify-content: space-between;
  }

  .chamber-hero {
    min-height: auto;
    padding-top: calc(var(--ru-header) + 2.4rem);
  }

  .relic-title img {
    width: min(560px, 88vw);
    max-width: min(560px, 88vw);
  }

  .chamber-float > *:nth-child(n + 4) {
    display: none;
  }

  .chamber-float > * {
    opacity: 0.34;
  }

  .split-relic,
  .split-relic-flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-relic-flip .split-relic-copy,
  .split-relic-flip .split-relic-art {
    order: initial;
  }

  .shot-duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot-duo-offset > *:nth-child(2) {
    transform: none;
  }

  .crowd-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .crowd-grid > *,
  .crowd-grid > *:nth-child(n) {
    grid-column: auto;
  }

  .ledger-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }

  .crypt-foot-inner {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  }

  .echo-card {
    width: min(300px, 84vw);
  }
}

@media (max-width: 620px) {
  body.ruins-home {
    font-size: 16px;
  }

  .chamber-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .chamber-meta {
    gap: 0.35rem 0.8rem;
    font-size: 0.84rem;
  }

  .chamber-actions .orb-btn,
  .chamber-actions .pv-btn,
  .finale-actions .orb-btn,
  .finale-actions .pv-btn {
    width: 100%;
  }

  .relic-shot {
    padding: 0.4rem;
  }

  .alcove {
    padding-block: clamp(2.4rem, 6vh, 3.4rem);
  }

  .loader-tablets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hover-chip {
    padding: 0.62rem 0.9rem;
    font-size: 0.88rem;
  }

  .crypt-foot-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 400px) {
  .loader-tablets {
    grid-template-columns: minmax(0, 1fr);
  }

  .lang-btn span,
  .lang-switch-btn span,
  .pv-lang-btn span,
  .nx-lang-btn span {
    font-size: 0.8rem;
  }

  .mast-tools .orb-btn:not(.orb-btn-primary):not(#gate-toggle) {
    display: none;
  }

  .sigil-lock span {
    font-size: 0.94rem;
  }
}

/* --------------------------------------------------------------------------
   Motion / contrast preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html.ruins-doc {
    scroll-behavior: auto;
  }

  body.ruins-home *,
  body.ruins-home *::before,
  body.ruins-home *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .chamber-float,
  .chamber-fog::before,
  .chamber-fog::after {
    animation: none !important;
  }

  .echo-track-inner {
    animation: none !important;
    width: 100%;
    max-width: var(--ru-max);
    margin-inline: auto;
    padding-inline: var(--ru-gutter);
    flex-wrap: wrap;
    justify-content: center;
  }

  .echo-track {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .echo-track::before,
  .echo-track::after {
    display: none;
  }

  .echo-card {
    width: min(100%, 340px);
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .stone-panel:hover,
  .stone-frame:hover,
  .relic-shot:hover,
  .gather-tile:hover,
  .ally-tile:hover,
  .loader-tablet:hover,
  .echo-card:hover,
  .slit-row:hover {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  body.ruins-home {
    color: #fff;
  }

  body.ruins-home p,
  .rune-lead,
  .ledger-val,
  .stone-panel p {
    color: #e8e6df;
  }

  .stone-panel,
  .stone-frame,
  .ledger,
  .board-shell,
  .slit-row {
    border-color: rgba(243, 240, 232, 0.28);
  }
}

@media print {
  .mast-bar,
  #mast-anchor,
  .tongue-nav,
  .hover-chip,
  .chamber-float,
  .chamber-fog,
  .pv-lightbox,
  .nx-lightbox {
    display: none !important;
  }

  body.ruins-home {
    background: #fff;
    color: #000;
  }
}
