/* [코대리] ORG UNIVERSE 3D 관리자 관제 화면의 레이아웃, 상태, 반응형 스타일 */

#wxGalaxyOverlay.wxu3d-ready {
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, #14143a 0%, #0a0a24 45%, #04040d 75%, #000 100%) !important;
}

.wxu3d-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, #14143a 0%, #0a0a24 45%, #04040d 75%, #000 100%);
  opacity: 0;
  transition: opacity 260ms ease-out;
}

.wxu3d-stage.is-active {
  opacity: 1;
}

.wxu3d-stage[hidden] {
  display: none;
}

.wxu3d-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

.wxu3d-toolbar {
  position: absolute;
  top: 100px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100vw - 390px);
  min-height: 42px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(6, 10, 23, 0.88);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  overflow-x: auto;
  scrollbar-width: none;
}

.wxu3d-toolbar::-webkit-scrollbar {
  display: none;
}

.wxu3d-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 9px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  color: #f8fafc;
  white-space: nowrap;
}

.wxu3d-brand strong {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

.wxu3d-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5eead4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.wxu3d-live::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 9px rgba(45, 212, 191, 0.9);
  content: '';
}

.wxu3d-segment {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.wxu3d-control {
  min-width: 54px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font: 750 11px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.wxu3d-control:hover {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(51, 65, 85, 0.5);
  color: #f8fafc;
}

.wxu3d-control:active {
  transform: scale(0.97);
}

.wxu3d-control:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

.wxu3d-control.is-active {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(8, 145, 178, 0.26);
  color: #ecfeff;
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.08), 0 0 18px rgba(6, 182, 212, 0.12);
}

.wxu3d-icon-control {
  width: 32px;
  min-width: 32px;
  padding: 0;
  font-size: 14px;
}

.wxu3d-control[data-layer='risk'].is-active {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(190, 24, 93, 0.24);
  color: #ffe4e6;
}

.wxu3d-control[data-layer='online'].is-active {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(13, 148, 136, 0.24);
  color: #ccfbf1;
}

.wxu3d-control[data-layer='settlement'].is-active {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(180, 83, 9, 0.24);
  color: #fef3c7;
}

.wxu3d-divider {
  width: 1px;
  height: 22px;
  background: rgba(148, 163, 184, 0.18);
  flex: 0 0 auto;
}

.wxu3d-performance {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 92px;
  padding: 0 7px;
  color: #94a3b8;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wxu3d-performance b {
  color: #e2e8f0;
  font-size: 10px;
}

.wxu3d-label-layer,
.wxu3d-fx-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.wxu3d-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 168px;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 6px;
  background: rgba(5, 8, 18, 0.74);
  color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: opacity 120ms ease, border-color 120ms ease, background 120ms ease;
  will-change: transform, opacity;
}

.wxu3d-label[hidden] {
  display: none;
}

.wxu3d-label-name {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wxu3d-label-rank {
  flex: 0 0 auto;
  color: #67e8f9;
  font-size: 8px;
  font-weight: 850;
}

.wxu3d-label.is-root {
  min-height: 28px;
  border-color: rgba(251, 191, 36, 0.54);
  background: rgba(69, 42, 8, 0.76);
  color: #fff7d6;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.2);
}

.wxu3d-label.is-selected {
  border-color: rgba(103, 232, 249, 0.76);
  background: rgba(8, 47, 73, 0.9);
  color: #ecfeff;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.24);
}

.wxu3d-label.is-search {
  border-color: rgba(253, 224, 71, 0.78);
  background: rgba(74, 50, 10, 0.9);
  color: #fef9c3;
  box-shadow: 0 0 22px rgba(253, 224, 71, 0.24);
}

.wxu3d-label.is-related {
  border-color: rgba(34, 211, 238, 0.48);
  color: #cffafe;
}

.wxu3d-generation-label {
  position: absolute;
  color: rgba(165, 180, 252, 0.56);
  font-size: 10px;
  font-weight: 800;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.wxu3d-generation-label[hidden] {
  display: none;
}

.wxu3d-tooltip {
  position: absolute;
  z-index: 4;
  display: none;
  width: 210px;
  padding: 10px;
  border: 1px solid rgba(103, 232, 249, 0.38);
  border-radius: 8px;
  background: rgba(4, 10, 24, 0.94);
  color: #e2e8f0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.wxu3d-tooltip.is-visible {
  display: block;
}

.wxu3d-tooltip-title {
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wxu3d-tooltip-meta {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.55;
}

.wxu3d-tooltip-value {
  color: #5eead4;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.wxu3d-amount {
  position: absolute;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.92);
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, -50%);
  animation: wxu3d-amount-flight 2.6s ease-out forwards;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity;
}

.wxu3d-amount.is-outgoing {
  border: 1px solid rgba(251, 113, 133, 0.5);
  color: #fda4af;
}

.wxu3d-amount.is-incoming {
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
}

.wxu3d-event-amount {
  position: absolute;
  z-index: 5;
  max-width: 220px;
  padding: 5px 8px;
  border: 1px solid rgba(103, 232, 249, 0.52);
  border: 1px solid color-mix(in srgb, var(--wxu3d-event-color, #67e8f9) 58%, transparent);
  border-radius: 6px;
  background: rgba(3, 7, 18, 0.92);
  color: var(--wxu3d-event-color, #67e8f9);
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transform: translate(-50%, -50%);
  animation: wxu3d-amount-flight 2.6s ease-out forwards;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.wxu3d-event-banner {
  position: absolute;
  top: 164px;
  left: 50%;
  z-index: 5;
  max-width: min(520px, calc(100vw - 32px));
  padding: 7px 12px;
  border: 1px solid rgba(103, 232, 249, 0.46);
  border: 1px solid color-mix(in srgb, var(--wxu3d-event-color, #67e8f9) 52%, transparent);
  border-radius: 6px;
  background: rgba(3, 7, 18, 0.86);
  color: var(--wxu3d-event-color, #67e8f9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.wxu3d-birth-label {
  position: absolute;
  z-index: 7;
  display: grid;
  min-width: 156px;
  padding: 8px 11px;
  border: 1px solid rgba(240, 171, 252, 0.76);
  border-radius: 7px;
  background: rgba(4, 7, 20, 0.9);
  color: #fdf4ff;
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.13), 0 0 28px rgba(217, 70, 239, 0.4), 0 10px 24px rgba(0, 0, 0, 0.42);
  text-align: center;
  transform: translate(-50%, -112%);
  backdrop-filter: blur(9px);
  will-change: transform, opacity;
}

.wxu3d-birth-label::after {
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(240, 171, 252, 0.72);
  border-bottom: 1px solid rgba(240, 171, 252, 0.72);
  background: rgba(4, 7, 20, 0.9);
  content: '';
  transform: translateX(-50%) rotate(45deg);
}

.wxu3d-birth-kicker {
  color: #67e8f9;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.wxu3d-birth-label strong {
  margin-top: 2px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.wxu3d-birth-label small {
  margin-top: 1px;
  color: #d8b4fe;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0;
}

@keyframes wxu3d-amount-flight {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.7); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
  22% { transform: translate(-50%, -54%) scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(1.05); }
}

.wxu3d-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 17, 0.86);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 750;
  transition: opacity 180ms ease-out;
  pointer-events: none;
}

.wxu3d-loading.is-done {
  opacity: 0;
}

.wxu3d-loading-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 8px;
  background: rgba(8, 15, 31, 0.88);
}

.wxu3d-loading-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  animation: wxu3d-pulse 900ms ease-in-out infinite alternate;
}

@keyframes wxu3d-pulse {
  from { opacity: 0.45; transform: scale(0.74); }
  to { opacity: 1; transform: scale(1); }
}

#wxGalaxyOverlay.wxu3d-active #wxGalaxyCanvas {
  opacity: 0 !important;
  pointer-events: none !important;
}

#wxGalaxyOverlay.wxu3d-active #wxGalaxyTransferStats {
  border-color: rgba(45, 212, 191, 0.32) !important;
  background: rgba(5, 13, 27, 0.9) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34) !important;
}

#wxGalaxyOverlay.wxu3d-active #wxGalaxyToast {
  top: 154px !important;
}

#wxGalaxyDimensionBtn[data-mode='3d'] {
  border-color: rgba(103, 232, 249, 0.72) !important;
  background: rgba(8, 145, 178, 0.58) !important;
  color: #ecfeff !important;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.2) !important;
}

@media (max-width: 1100px) {
  .wxu3d-toolbar {
    left: 12px;
    right: 12px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-width: 0;
    transform: none;
  }

  .wxu3d-brand {
    display: none;
  }

  .wxu3d-performance {
    min-width: 76px;
  }
}

@media (max-width: 720px) {
  .wxu3d-toolbar {
    top: 112px;
    left: 8px;
    right: 8px;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    min-height: 38px;
    padding: 4px;
  }

  #wxGalaxyOverlay.wxu3d-active > div[style*="top:14px"][style*="left:14px"] {
    top: 8px !important;
    left: 8px !important;
    max-width: calc(100vw - 62px) !important;
  }

  #wxGalaxyOverlay.wxu3d-active #wxGalaxyMenu,
  #wxGalaxyOverlay.wxu3d-active #wxGalaxyHardReload,
  #wxGalaxyOverlay.wxu3d-active #wxGalaxyClassic,
  #wxGalaxyOverlay.wxu3d-active #wxGalaxyDimensionBtn {
    height: 32px !important;
    padding: 0 9px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
  }

  #wxGalaxyOverlay.wxu3d-active #wxGalaxyMig {
    display: none !important;
  }

  #wxGalaxyOverlay.wxu3d-active #wxGalaxyClose {
    top: 8px !important;
    right: 8px !important;
    width: 36px !important;
    height: 36px !important;
  }

  #wxGalaxyOverlay.wxu3d-active #wxGalaxyTitle {
    top: 48px !important;
  }

  #wxGalaxyOverlay.wxu3d-active .wxGalaxyTitleMain {
    font-size: 14px !important;
    letter-spacing: 0 !important;
  }

  #wxGalaxyOverlay.wxu3d-active .wxGalaxyTitleSub {
    display: none !important;
  }

  #wxGalaxyOverlay.wxu3d-active #wxGalaxyLegend {
    top: 72px !important;
    max-height: 36px;
    overflow: hidden;
  }

  #wxGalaxyOverlay.wxu3d-active #wxGalaxyStatus {
    display: none !important;
  }

  #wxGalaxyOverlay.wxu3d-active #wxGalaxyToast {
    top: 158px !important;
    max-width: calc(100vw - 20px);
    padding: 10px 12px !important;
    font-size: 11px !important;
    white-space: normal !important;
  }

  #wxGalaxyOverlay.wxu3d-active #wxGalaxyBread {
    top: 158px !important;
    max-width: calc(100vw - 20px) !important;
  }

  .wxu3d-control {
    min-width: 48px;
    height: 28px;
    padding: 0 8px;
    font-size: 10px;
  }

  .wxu3d-icon-control {
    width: 30px;
    min-width: 30px;
    padding: 0;
  }

  .wxu3d-performance,
  .wxu3d-divider.is-optional {
    display: none;
  }

  .wxu3d-label {
    max-width: 118px;
    min-height: 20px;
    padding: 2px 5px;
  }

  .wxu3d-label-name {
    font-size: 9px;
  }

  .wxu3d-event-banner {
    top: 158px;
    max-width: calc(100vw - 20px);
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .wxu3d-event-amount {
    max-width: 150px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .wxu3d-birth-label {
    min-width: 132px;
    padding: 7px 9px;
  }

  #wxGalaxyOverlay.wxu3d-active #wxGalaxyTransferStats,
  #wxGalaxyOverlay.wxu3d-active #wxGalaxyTransferStatsToggle {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wxu3d-stage,
  .wxu3d-control,
  .wxu3d-label,
  .wxu3d-loading {
    transition: none;
  }

  .wxu3d-amount,
  .wxu3d-loading-dot {
    animation-duration: 1ms;
  }
}
