.world-stage > .dynamic-world { z-index: 3; }

.world-nodes {
  position: absolute;
  z-index: 11;
  inset: 0;
  pointer-events: none;
}

.world-node {
  position: absolute;
  top: var(--node-y);
  left: var(--node-x);
  display: grid;
  width: 120px;
  min-height: 48px;
  padding: 0;
  grid-template-columns: 42px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  color: #eafff9;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-21px,-50%);
}

.world-node > i {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #f0d993;
  background: radial-gradient(circle,rgba(19,92,81,.88),rgba(7,49,45,.76));
  border: 1px solid rgba(202,237,221,.68);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(127,218,197,.08),0 7px 24px rgba(3,29,27,.32);
  font: normal 17px "STKaiti","KaiTi",serif;
  transition: transform .28s,box-shadow .28s,background .28s;
}

.world-node > i::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px dashed rgba(205,239,224,.25);
  border-radius: inherit;
  animation: world-node-orbit 12s linear infinite;
}

.world-node > span {
  display: grid;
  min-width: 0;
  padding: 5px 7px;
  gap: 1px;
  background: linear-gradient(90deg,rgba(4,43,40,.72),rgba(4,43,40,0));
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
  opacity: .7;
  transition: opacity .25s,transform .25s;
}

.world-node b { overflow: hidden; font: 400 12px "STKaiti","KaiTi",serif; text-overflow: ellipsis; white-space: nowrap; }
.world-node small { color: rgba(223,245,237,.66); font-size: 7px; letter-spacing: .06em; white-space: nowrap; }
.world-node:hover > i,.world-node:focus-visible > i,.world-node.is-active > i { background: radial-gradient(circle,#2e998b,#0b5049); box-shadow: 0 0 0 7px rgba(133,236,211,.13),0 0 28px rgba(97,230,204,.46); transform: scale(1.1); }
.world-node:hover > span,.world-node:focus-visible > span,.world-node.is-active > span { opacity: 1; transform: translateX(3px); }
.world-node:disabled { opacity: .62; }
.world-node.is-active { opacity: 1; }
.world-node:nth-child(1) { top: 29%; left: 27%; }
.world-node:nth-child(2) { top: 43%; left: 44%; }
.world-node:nth-child(3) { top: 26%; left: 57%; }

.world-node-guide {
  position: absolute;
  z-index: 11;
  top: 204px;
  left: 31px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(228,247,240,.68);
  font-size: 8px;
  letter-spacing: .08em;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
  pointer-events: none;
}

.world-node-guide i { width: 24px; height: 1px; background: linear-gradient(90deg,#e4cc85,transparent); }

.world-node-card {
  position: absolute;
  z-index: 16;
  top: 215px;
  left: clamp(28px,22vw,300px);
  display: grid;
  width: min(330px,calc(100% - 500px));
  min-width: 270px;
  padding: 14px 15px 13px;
  grid-template-columns: 39px minmax(0,1fr) 28px;
  align-items: start;
  gap: 10px;
  color: #eafff9;
  background: linear-gradient(135deg,rgba(7,48,44,.94),rgba(14,79,70,.9));
  border: 1px solid rgba(179,229,211,.4);
  border-radius: 3px 17px 3px 17px;
  box-shadow: 0 20px 55px rgba(2,25,24,.38),inset 0 0 28px rgba(117,225,198,.06);
  backdrop-filter: blur(13px);
  animation: world-node-card-in .38s cubic-bezier(.16,.82,.2,1) both;
}

.world-node-card[hidden] { display: none; }
.world-node-card > i { display: grid; width: 38px; height: 38px; place-items: center; color: #143f38; background: #e7d18e; border-radius: 50%; font: normal 18px "STKaiti","KaiTi",serif; }
.world-node-card > div { min-width: 0; }
.world-node-card small { color: #9fdacf; font-size: 8px; letter-spacing: .12em; }
.world-node-card h3 { margin: 2px 0 5px; font: 400 20px "STKaiti","KaiTi",serif; letter-spacing: .08em; }
.world-node-card p { margin: 0; color: rgba(226,244,237,.84); font-size: 10.5px; line-height: 1.65; }
.world-node-card__close { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; color: rgba(230,249,241,.72); background: rgba(255,255,255,.04); border: 1px solid rgba(207,240,229,.16); border-radius: 50%; cursor: pointer; }
.world-node-card__enter { grid-column: 2 / 4; min-height: 34px; padding: 0 12px; color: #163e37; background: linear-gradient(90deg,#ead897,#d8efcf); border: 0; border-radius: 2px 10px 2px 10px; font: 600 11px "STKaiti","KaiTi",serif; letter-spacing: .08em; cursor: pointer; }

.sound-button { position: relative; transition: background .25s,border-color .25s,box-shadow .25s; }
.sound-button::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 5px; height: 5px; background: #788b84; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; transition: background .25s,box-shadow .25s; }
.sound-button.is-on { background: rgba(99,201,185,.18) !important; border-color: rgba(61,173,157,.62) !important; box-shadow: 0 0 18px rgba(84,205,185,.18); }
.sound-button.is-on::after { background: #42c7ae; box-shadow: 0 0 9px #6ce8d0; }
.sound-button.is-on > .ui-icon { animation: ambient-sound-on 1.9s ease-in-out infinite alternate; }

@keyframes world-node-orbit { to { transform: rotate(360deg); } }
@keyframes world-node-card-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ambient-sound-on { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 5px rgba(69,196,176,.66)); } }

@media (max-width:980px) {
  .world-node-card { left: 172px; width: min(320px,calc(100% - 370px)); }
  .world-node-guide { display: none; }
}

@media (max-width:760px) {
  .world-node { width: 46px; min-height: 46px; grid-template-columns: 46px; transform: translate(-23px,-50%); }
  .world-node > i { width: 46px; height: 46px; font-size: 18px; }
  .world-node > span { position: absolute; top: 48px; left: 50%; width: 92px; padding: 3px 5px; text-align: center; background: rgba(4,43,40,.62); border-radius: 8px; opacity: 0; transform: translateX(-50%); }
  .world-node:hover > span,.world-node:focus-visible > span,.world-node.is-active > span { opacity: 1; transform: translateX(-50%) translateY(2px); }
  .world-node small { display: none; }
  .world-node-card { top: 126px; right: 12px; left: 12px; width: auto; min-width: 0; padding: 11px 12px; grid-template-columns: 34px minmax(0,1fr) 28px; }
  .world-node-card > i { width: 34px; height: 34px; }
  .world-node-card h3 { font-size: 18px; }
  .world-node-card small { font-size: 9px; }
  .world-node-card p { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .world-node-card__enter { min-height: 38px; }
  .world-node-card__enter { font-size: 12px; }
}

@media (max-width:430px) {
  .world-node:nth-child(1) { top: 25%; left: 22%; }
  .world-node:nth-child(2) { top: 40%; left: 43%; }
  .world-node:nth-child(3) { top: 53%; left: 25%; }
  .world-node-card { top: 106px; }
}

@media (prefers-reduced-motion:reduce) {
  .world-node > i::before,.sound-button.is-on > .ui-icon { animation: none !important; }
  .world-node-card { animation: none; }
}
