.rx-dish {
  --dish-fade: 3rem;
  margin-inline: calc(50% - 50vw);
  padding: calc(2.2rem + 1rem) 1rem calc(2.6rem + 1rem);
  margin-block: -1rem;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(20,179,145,0.20), transparent 55%),
    radial-gradient(90% 70% at 12% 100%, rgba(216,178,106,0.12), transparent 60%),
    linear-gradient(165deg, #0e242e 0%, #0f2832 45%, #000000 100%);
  border-block: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--dish-fade), #000 calc(100% - var(--dish-fade)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--dish-fade), #000 calc(100% - var(--dish-fade)), transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rx-dish-stage {
  position: relative;
  width: min(1180px, 94vw);
  aspect-ratio: 16 / 7;
  border-radius: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(90% 90% at 50% 42%, rgba(20, 179, 145, 0.14), transparent 62%),
    linear-gradient(165deg, #0f2832 0%, #0e242e 55%, #000000 100%);
  border: 1px solid rgba(20, 179, 145, 0.36);
  box-shadow:
    inset 0 0 90px rgba(3, 15, 10, 0.85),
    inset 0 0 26px rgba(20, 179, 145, 0.12),
    0 30px 80px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  touch-action: none;
}
@media (max-width: 991.98px) {
  .rx-dish-stage { aspect-ratio: 16 / 8; }
}

.rx-dish-stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20, 179, 145, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 179, 145, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 30%, transparent 78%);
          mask-image: radial-gradient(75% 75% at 50% 50%, #000 30%, transparent 78%);
  pointer-events: none;
}

.rx-dish-stage::after {
  content: "";
  position: absolute; left: -20%; right: -20%; top: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(20, 179, 145, 0.08) 46%, rgba(160, 232, 96, 0.18) 50%, rgba(20, 179, 145, 0.08) 54%, transparent);
  animation: rx-scan 9s linear infinite;
  pointer-events: none;
}
@keyframes rx-scan {
  0%   { transform: translateY(-140px); }
  100% { transform: translateY(680px); }
}

.rx-dish-orbs {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.rx-dish-orbs > span {
  position: absolute; left: 0; top: 0;
  width: var(--d); height: var(--d);
  animation: rx-orb-x var(--tx) ease-in-out infinite alternate;
  animation-delay: var(--dx);
}
.rx-dish-orbs > span > span {
  display: block; width: 100%; height: 100%;
  animation: rx-orb-y var(--ty) ease-in-out infinite alternate;
  animation-delay: var(--dy);
  background:
    radial-gradient(closest-side circle at 45% 42%,
      rgba(160, 232, 96, 0.16) 0%,
      rgba(160, 232, 96, 0.06) 44%,
      rgba(20, 179, 145, 0) 72%),
    radial-gradient(closest-side circle at 60% 60%,
      rgba(20, 179, 145, 0.10) 0%,
      rgba(20, 179, 145, 0) 58%);
}
.rx-dish-orbs > span:nth-child(1) { --d: 62%;  --tx: 37s; --ty: 29s; --dx: 0s;   --dy: -11s; }
.rx-dish-orbs > span:nth-child(2) { --d: 44%;  --tx: 47s; --ty: 23s; --dx: -17s; --dy: -5s; }
.rx-dish-orbs > span:nth-child(3) { --d: 78%;  --tx: 29s; --ty: 41s; --dx: -23s; --dy: -19s; }
.rx-dish-orbs > span:nth-child(2) > span {
  background:
    radial-gradient(closest-side circle at 58% 38%,
      rgba(160, 232, 96, 0.15) 0%,
      rgba(160, 232, 96, 0.05) 42%,
      rgba(20, 179, 145, 0) 70%),
    radial-gradient(closest-side circle at 38% 62%,
      rgba(216, 178, 106, 0.08) 0%,
      rgba(20, 179, 145, 0) 55%);
}
.rx-dish-orbs > span:nth-child(3) > span {
  background:
    radial-gradient(closest-side circle at 48% 55%,
      rgba(20, 179, 145, 0.14) 0%,
      rgba(20, 179, 145, 0.06) 46%,
      rgba(20, 179, 145, 0) 74%),
    radial-gradient(closest-side circle at 62% 38%,
      rgba(160, 232, 96, 0.07) 0%,
      rgba(160, 232, 96, 0) 52%);
}
@keyframes rx-orb-x { from { transform: translateX(-25%); } to { transform: translateX(210%); } }
@keyframes rx-orb-y { from { transform: translateY(-25%); } to { transform: translateY(180%); } }

.rx-dish-hex {
  position: absolute;
  width: 46%; aspect-ratio: 1 / 1;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  border: 1px solid rgba(20, 179, 145, 0.18);
  background: rgba(20, 179, 145, 0.04);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.rx-dish-hex-a { animation: rx-hex 60s linear infinite; }
.rx-dish-hex-b { width: 30%; border-color: rgba(13, 138, 112, 0.30); animation: rx-hex 44s linear infinite; }
@keyframes rx-hex { to { transform: translate(-50%, -50%) rotate(360deg); } }

.rx-dish-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

.rx-dish-core {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%);
  color: rgba(160, 232, 96, 0.85);
  filter: drop-shadow(0 0 12px rgba(160, 232, 96, 0.55));
  animation: rx-core-spin 14s linear infinite;
  pointer-events: none;
  z-index: 2;
}
.rx-dish-core svg { width: 100%; height: 100%; display: block; }
@keyframes rx-core-spin {
  0%   { transform: translate(-50%, -50%) rotate(0deg)   scaleX(1); }
  50%  { transform: translate(-50%, -50%) rotate(180deg) scaleX(0.42); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scaleX(1); }
}

.rx-node {
  position: absolute;
  left: var(--nx); top: var(--ny);
  transform: translate(-50%, -50%);
  z-index: 3;
  touch-action: none;
  cursor: grab;
}
.rx-node.rx-dragging { cursor: grabbing; z-index: 9; }
.rx-node.rx-homing .rx-node-disc {
  filter: drop-shadow(0 0 14px rgba(160, 232, 96, 0.45));
}
.rx-node-link {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  -webkit-user-drag: none;
  user-select: none;
}

.rx-node-disc {
  width: clamp(64px, 13vw, 96px);
  aspect-ratio: 1 / 1;
  border-radius: 26%;
  background: var(--nx-fill, var(--nx-raised));
  border: 1px solid var(--nx-fill, var(--nx-raised));
  box-shadow:
    0 0 0 5px rgba(3, 19, 13, 0.62),
    0 0 26px rgba(20, 179, 145, 0.22),
    0 14px 30px -14px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.25, 1),
              box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}
.rx-node-disc img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
.rx-node-mingdao .rx-node-disc { --nx-fill: #F5F5F4; }
.rx-node-nycu    .rx-node-disc { --nx-fill: #2E6084; }
.rx-node-vis     .rx-node-disc { --nx-fill: #F5F5F4; }
.rx-node-ccu     .rx-node-disc { --nx-fill: #EEF6D6; }
.rx-node-okinawa .rx-node-disc,
.rx-node-hia .rx-node-disc { --nx-fill: #f7f1de; }
.rx-node-okinawa .rx-node-disc img,
.rx-node-hia .rx-node-disc img { object-fit: contain; inset: 10%; width: 80%; height: 80%; }
.rx-node-disc::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 26%;
  border: 1.5px solid rgba(46, 219, 180, 0.55);
  opacity: 0;
  animation: rx-pulse 3.2s ease-out infinite;
  animation-delay: var(--pd, 0s);
  pointer-events: none;
}
.rx-node-nycu .rx-node-disc::after { animation-delay: 0.4s; }
.rx-node-vis .rx-node-disc::after { animation-delay: 0.8s; }
.rx-node-okinawa .rx-node-disc::after { animation-delay: 1.2s; }
.rx-node-ccu .rx-node-disc::after { animation-delay: 1.6s; }
.rx-node-hia .rx-node-disc::after { animation-delay: 2.0s; }
@keyframes rx-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.rx-node.rx-magnet .rx-node-disc {
  border-color: var(--nx-lime, #a0e860);
  box-shadow:
    inset 0 0 26px rgba(160, 232, 96, 0.22),
    0 0 22px rgba(160, 232, 96, 0.55),
    0 0 54px rgba(160, 232, 96, 0.28);
}
.rx-node.rx-magnet .rx-node-name {
  color: var(--nx-lime, #a0e860);
  border-color: var(--nx-lime, #a0e860);
}

.rx-node-link:hover .rx-node-disc,
.rx-node-link:focus-visible .rx-node-disc {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--nx-lime, #a0e860);
  box-shadow:
    0 0 0 5px rgba(3, 19, 13, 0.62),
    0 0 0 9px rgba(160, 232, 96, 0.25),
    0 0 44px rgba(20, 179, 145, 0.5),
    0 20px 40px -16px rgba(0, 0, 0, 0.9);
}
.rx-node-link:focus-visible {
  outline: 3px solid var(--nx-lime, #a0e860);
  outline-offset: 8px;
  border-radius: 30%;
}

.rx-node-name {
  font-size: clamp(0.62rem, 1.5vw, 0.74rem);
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
  color: var(--nx-text, #dbe9ee);
  background: rgba(6, 32, 22, 0.8);
  border: 1px solid rgba(20, 179, 145, 0.34);
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  backdrop-filter: blur(4px);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.rx-node-link:hover .rx-node-name {
  color: var(--nx-lime, #a0e860);
  border-color: var(--nx-lime, #a0e860);
  background: rgba(6, 32, 22, 0.92);
}

html.rx-js .rx-dish-stage {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.rx-js .rx-dish-stage.rx-in { opacity: 1; transform: scale(1); }

@media (max-width: 575.98px) {
  .rx-dish-stage { width: min(420px, 92vw); border-radius: 34px; }
  .rx-node-disc { width: 58px; }
  .rx-node-name { font-size: 0.58rem; padding: 0.12rem 0.45rem; }
  .rx-dish-core { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .rx-dish-stage::after, .rx-dish-hex, .rx-dish-core, .rx-node-disc::after { animation: none !important; }
  .rx-dish-orbs > span, .rx-dish-orbs > span > span { animation-play-state: paused; }
  html.rx-js .rx-dish-stage { opacity: 1; transform: none; transition: none; }
}

@media print {
  .rx-dish { background: none !important; -webkit-mask-image: none; mask-image: none; }
  .rx-dish-canvas, .rx-dish-hex, .rx-dish-stage::after { display: none !important; }
}

.rx-node-wist .rx-node-disc { --nx-fill: #f7f1de; }
.rx-node-wist .rx-node-disc img { object-fit: cover; inset: 0; width: 100%; height: 100%; transform: scale(1.5); }
.rx-node-wist .rx-node-disc::after { animation-delay: 2.4s; }

.rx-node-nthu  .rx-node-disc,
.rx-node-cau   .rx-node-disc { --nx-fill: #000000; }
.rx-node-ufrgs .rx-node-disc { --nx-fill: #00d47e; }
.rx-node-alicante .rx-node-disc { --nx-fill: #ffffff; }
.rx-node-cellforge .rx-node-disc { --nx-fill: #ffffff; }
.rx-node-cellforge .rx-node-disc img { object-fit: contain; inset: 4%; width: 92%; height: 92%; }
.rx-node-tau .rx-node-disc,
.rx-node-ais .rx-node-disc { --nx-fill: #f7f1de; }
.rx-node-tau .rx-node-disc img,
.rx-node-ais .rx-node-disc img { object-fit: contain; inset: 8%; width: 84%; height: 84%; }

.rx-node-disc { width: clamp(52px, 9vw, 84px); }
.rx-dish-stage { aspect-ratio: 16 / 7.6; }
@media (max-width: 991.98px) {
  .rx-dish-stage { aspect-ratio: 16 / 10; }
}
@media (max-width: 575.98px) {
  .rx-dish-stage { aspect-ratio: 1 / 1; }
  .rx-node-disc { width: 42px; }
  .rx-node-name { font-size: 0.5rem; padding: 0.1rem 0.35rem; }
}

.collab-teams {
  --collab-logo-w: 44px;
}
.collab-teams li { position: relative; }
.collab-teams li.is-host img { box-shadow: 0 0 0 3px #e6b060, 0 0 18px rgba(230, 176, 96, 0.45); }
.collab-host {
  position: absolute;
  top: -0.55rem;
  left: calc(var(--collab-logo-w) / 2);
  transform: translateX(-50%);
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: #e6b060;
  color: #0e242e;
  font-family: "Changa", sans-serif;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mj-teams li { transition: transform 0.3s ease; }
.mj-teams li:hover { transform: translateY(-4px); }

.mj-format {
  margin: 1.2rem 0 1.6rem;
  padding: 1rem 1.15rem 1.15rem;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  background: var(--nx-panel);
}
.mj-format-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-bottom: 0.75rem;
  font-family: "Changa", sans-serif;
}
.mj-format-k {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-mint);
}
.mj-format-v { color: var(--nx-text); font-size: 0.95rem; }
.mj-format-v b { color: var(--nx-lime); font-size: 1.25rem; }
.mj-format-bar {
  display: flex;
  gap: 4px;
  height: 46px;
}
.mj-seg {
  position: relative;
  flex: var(--w) 1 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.9rem;
  overflow: hidden;
  border-radius: 10px;
  color: #0e242e;
  font-family: "Changa", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mj-seg b { font-weight: 800; }
.mj-seg.is-talk { background: linear-gradient(90deg, #49c5b6, #a0e860); }
.mj-seg.is-qa { background: linear-gradient(90deg, #e6b060, #f0cf8c); }
.mj-seg:hover,
.mj-seg:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.8);
  outline: none;
}
.mj-seg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nx-raised);
  transform-origin: right;
  transition: transform 1s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.mj-seg.is-qa::after { transition-delay: 0.8s; }
html:not(.edx-js) .mj-seg::after,
.mj-format.is-in .mj-seg::after { transform: scaleX(0); }

body.hp-nexus .edu-session-block .mj-wish {
  margin: 1.6rem 0 1.4rem;
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  border: 1px dashed rgba(160, 232, 96, 0.5);
  background: rgba(160, 232, 96, 0.07);
  font-family: "Changa", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  color: #a0e860;
}

@media (max-width: 575.98px) {
  .mj-seg { font-size: 0.72rem; padding: 0 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mj-teams li, .mj-seg, .mj-seg::after { transition: none; }
  .mj-seg::after { transform: scaleX(0); }
}

@media (min-width: 1200px) {
  .container.has-page-toc:has(.rx-dish) > .page-toc { margin-top: 3rem; }
}
