#overview a[aria-label="Backed by Alliance"],
#trusted [role="group"],
main > section:not([id]):has(img[src*="imgAlliance1"]),
main > section:not([id]):has(img[src*="/audits/"]),
footer [aria-label="socials"],
footer [aria-label="contact"],
footer [aria-label="legal"],
footer a[href*="/bridge/stake"] {
  display: none !important;
}

div:has(> img[alt^="The RIFTEX trading"])::after {
  position: absolute;
  z-index: 1;
  top: .65rem;
  right: .65rem;
  padding: .35rem .5rem;
  border: 1px solid #81d6e366;
  background: #071219;
  color: #81d6e3;
  content: "RIFTEX terminal";
  font: .65rem/1.2 monospace;
  letter-spacing: .04em;
  pointer-events: none;
}

.elysium-rpc {
  width: min(100% - 2.5rem, 58rem);
  margin-inline: auto;
  padding: clamp(1.25rem, 5vw, 3rem);
  border: 1px solid #81d6e366;
  background: linear-gradient(145deg, #0d222d, #05090c 72%);
  color: #f4f8f7;
}
.elysium-rpc h2 { margin: .5rem 0; font-size: clamp(1.65rem, 4vw, 2.5rem); }
.elysium-rpc p { margin: 0 0 1.25rem; }
.elysium-rpc .network-label { margin: 0; color: #81d6e3; font: .8rem monospace; }
.elysium-rpc fieldset { display: flex; gap: .5rem; border: 0; padding: 0; }
.elysium-rpc button, .elysium-rpc a {
  display: inline-block; padding: .62rem .8rem; border: 1px solid #81d6e36b;
  color: inherit; font: .85rem monospace; cursor: pointer;
}
.elysium-rpc button[aria-pressed="true"], .elysium-rpc button:hover, .elysium-rpc a:hover {
  color: #071219; background: #81d6e3;
}
.elysium-rpc dl { margin: 1.25rem 0; font-family: monospace; }
.elysium-rpc dl div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #81d6e336; }
.elysium-rpc dd { margin: 0; overflow-wrap: anywhere; }
.elysium-rpc [role="status"] { margin-inline-start: .5rem; color: #81d6e3; }



/* Tint decorative motion assets without changing terminal screenshots. */
#overview video,
#overview canvas,
#features canvas,
#execution video,
#security video {
  filter: hue-rotate(-33deg) saturate(.72);
}

/* Original dither textures have their own baked-in blue and charcoal. */
img[src*="imgFrame2136140462.png"],
img[src*="imgDitherExecution.png"],
img[src*="imgDitherSecurity.png"],
[style*="imgDitherExecution.png"],
[style*="imgDitherSecurity.png"],
[style*="imgFrame2136140492.png"],
[style*="imgFrame2136140572.png"],
[style*="imgCareerHeroBg.png"],
[style*="imgWhyHyperlinkBg.png"] {
  filter: url("/elysium-texture.svg#black-teal");
}

[style*="imgFrame2136140483.png"] {
  filter: url("/elysium-texture.svg#black-teal") blur(40px);
}

/* The mobile and desktop hero share the mark beside the rotating headline. */
#overview svg:has(> path[d^="M144 71.6991"]) {
  flex: none;
  background: url("/brand/riftex-mark.svg") center / contain no-repeat;
}
#overview svg > path[d^="M144 71.6991"] { visibility: hidden; }

a[aria-label="RIFTEX home"] > svg[viewBox="0 0 19.6709 19.6456"] {
  background: url("/brand/riftex-mark.svg") center / contain no-repeat;
}
a[aria-label="RIFTEX home"] > svg[viewBox="0 0 19.6709 19.6456"] > path {
  visibility: hidden;
}

/* Replace the screenshot header branding at the image's native proportions. */
div:has(> img[src="/figma-assets/imgScreenshot20260511At52147Pm1.png"]),
div:has(> img[src="/figma-assets/imgAppTradeMobile.png"]) {
  container-type: inline-size;
}
div:has(> img[src="/figma-assets/imgScreenshot20260511At52147Pm1.png"])::before,
div:has(> img[src="/figma-assets/imgAppTradeMobile.png"])::before {
  position: absolute;
  z-index: 1;
  top: .75cqw;
  left: 1.35cqw;
  width: 9.45cqw;
  aspect-ratio: 180 / 40;
  background: url("/brand/riftex-terminal-preview-header.svg") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}
div:has(> img[src="/figma-assets/imgAppTradeMobile.png"])::before {
  top: 3cqw;
  left: 4.75cqw;
  width: 28cqw;
}

/* The hero mark uses the surrounding page's dither treatment. */
#overview div:has(> video[src="/media/logo.webm"]) {
  perspective: 650px;
}
#overview video[src="/media/logo.webm"] {
  display: none;
}
#overview div:has(> video[src="/media/logo.webm"])::after {
  position: absolute;
  inset: 5%;
  background: radial-gradient(circle, #8adde7 46%, transparent 55%) 0 0 / 3px 3px;
  mask: url("/brand/riftex-mark.svg") center / contain no-repeat;
  animation: riftex-hero-turn 8s ease-in-out infinite;
  content: "";
}
@keyframes riftex-hero-turn {
  0%, 100% { transform: rotateY(-29deg) rotateZ(-4deg); opacity: .76; }
  50% { transform: rotateY(29deg) rotateZ(3deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #overview div:has(> video[src="/media/logo.webm"])::after {
    animation: none;
  }
}
