/* src/client/styles.css */
:root {
  --xyg-bg-deep: #030b16;
  --xyg-bg-mid: #071b2f;
  --xyg-bg-horizon: #0c314c;
  --xyg-surface: rgba(8, 26, 44, 0.88);
  --xyg-surface-elevated: rgba(12, 37, 61, 0.95);
  --xyg-border: rgba(125, 211, 252, 0.22);
  --xyg-text: #f0f9ff;
  --xyg-text-muted: #94b8d0;
  --xyg-gold: #fbbf24;
  --xyg-coral: #f25a55;
  --xyg-teal: #2dd4bf;
  --xyg-cyan: #38bdf8;
  --xyg-danger: #ef4444;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans",
    "Noto Sans CJK SC",
    "Apple SD Gothic Neo",
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(
      circle at 50% 44%,
      var(--xyg-bg-horizon) 0%,
      var(--xyg-bg-mid) 46%,
      var(--xyg-bg-deep) 100%);
  color: var(--xyg-text);
  overflow: hidden;
  text-align: start;
}
.xyg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.xyg-app-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.xyg-app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      1.5px 1.5px at 18% 22%,
      rgba(255, 255, 255, 0.55),
      transparent),
    radial-gradient(
      1px 1px at 74% 16%,
      rgba(186, 230, 253, 0.5),
      transparent),
    radial-gradient(
      1.5px 1.5px at 84% 38%,
      rgba(251, 191, 36, 0.45),
      transparent),
    radial-gradient(
      1px 1px at 32% 42%,
      rgba(255, 255, 255, 0.35),
      transparent);
  pointer-events: none;
  z-index: 0;
}
.xyg-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 18px;
  background:
    linear-gradient(
      180deg,
      rgba(3, 11, 22, 0.86) 0%,
      rgba(3, 11, 22, 0.24) 100%);
  backdrop-filter: blur(8px);
}
.xyg-brand-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.xyg-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.xyg-brand-mark {
  font-size: 22px;
  line-height: 1;
}
.xyg-brand-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}
.xyg-brand-slogan {
  margin: 0;
  font-size: 12px;
  color: var(--xyg-text-muted);
}
.xyg-telemetry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.xyg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(14, 48, 76, 0.65);
  border: 1px solid var(--xyg-border);
  color: #cbd5e1;
}
.xyg-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
}
.xyg-pill.is-live .xyg-status-dot {
  background: var(--xyg-teal);
  box-shadow: 0 0 8px var(--xyg-teal);
}
.xyg-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.xyg-nav-btn,
.xyg-locale-select {
  appearance: none;
  background: rgba(11, 36, 58, 0.78);
  color: var(--xyg-text);
  border: 1px solid var(--xyg-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.xyg-nav-btn:hover,
.xyg-locale-select:hover {
  background: rgba(20, 62, 96, 0.9);
  border-color: rgba(125, 211, 252, 0.5);
}
.xyg-nav-auth {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}
.xyg-badge {
  background: var(--xyg-coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}
.xyg-scene-center {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  z-index: 5;
}
.xyg-globe-stage {
  position: relative;
  width: min(74vmin, 560px);
  height: min(74vmin, 560px);
  min-width: 260px;
  min-height: 260px;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.xyg-globe-stage:active {
  cursor: grabbing;
}
.xyg-globe-canvas-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.xyg-globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.xyg-marker-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.xyg-marker-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background: transparent;
  border: 0;
  padding: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
}
@supports (anchor-name: --cobe-probe) and (position-anchor: --cobe-probe) {
  .xyg-marker-pin {
    position-anchor: var(--xyg-anchor-name);
  }
}
.xyg-marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--xyg-coral);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(242, 90, 85, 0.85);
  transition: transform 0.18s ease;
}
.xyg-marker-pin:hover .xyg-marker-dot,
.xyg-marker-pin.is-selected .xyg-marker-dot {
  transform: scale(1.45);
  background: var(--xyg-gold);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.95);
}
.xyg-marker-label {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(6, 22, 38, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fef3c7;
  white-space: nowrap;
}
.xyg-webgl-fallback {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  gap: 12px;
}
.xyg-fallback-svg {
  width: 150px;
  height: 150px;
}
.xyg-fallback-notice {
  margin: 0;
  font-size: 13px;
  max-width: 380px;
  color: var(--xyg-text-muted);
}
.xyg-fallback-city-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.xyg-person-card {
  position: absolute;
  inset-inline-start: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: min(340px, calc(100vw - 32px));
  background: var(--xyg-surface-elevated);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  z-index: 16;
  backdrop-filter: blur(12px);
}
.xyg-person-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.xyg-person-meta {
  flex: 1;
}
.xyg-person-title {
  margin: 0 0 4px;
  font-size: 15px;
  color: #fff;
}
.xyg-person-privacy {
  margin: 0;
  font-size: 12px;
  color: var(--xyg-text-muted);
}
.xyg-person-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  font-size: 12px;
  color: #bae6fd;
}
.xyg-person-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xyg-flight-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 18;
}
.xyg-flying-bottle {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.55));
}
.xyg-ocean-surface {
  position: relative;
  width: 100%;
  height: clamp(128px, 21vh, 195px);
  margin-top: -42px;
  z-index: 10;
  pointer-events: none;
}
.xyg-ocean-horizon-glow {
  position: absolute;
  inset-inline: 10%;
  top: 18px;
  height: 36px;
  background:
    radial-gradient(
      ellipse at center,
      rgba(56, 189, 248, 0.34) 0%,
      transparent 72%);
  pointer-events: none;
}
.xyg-ocean-waves-svg {
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes xygWaveDrift {
  0%, 100% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-18px) translateY(4px);
  }
}
.xyg-wave-back {
  animation: xygWaveDrift 9s ease-in-out infinite;
}
.xyg-wave-mid {
  animation: xygWaveDrift 6.5s ease-in-out infinite reverse;
}
.xyg-wave-front {
  animation: xygWaveDrift 5s ease-in-out infinite;
}
.xyg-floating-sea-bottle {
  position: absolute;
  inset-inline-start: 24%;
  top: 56%;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  pointer-events: auto;
  animation: xygWaveDrift 4.2s ease-in-out infinite;
}
.xyg-splash-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.xyg-ocean-splash {
  position: absolute;
  top: 48%;
  width: 84px;
  height: 44px;
  transform: translate(-50%, -50%);
}
@keyframes xygSplashRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.25);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.7);
    opacity: 0;
  }
}
@keyframes xygSplashDrop {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-28px) scale(0.4);
    opacity: 0;
  }
}
.xyg-splash-ring {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 56px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #bae6fd;
  animation: xygSplashRipple 1.05s ease-out forwards;
}
.xyg-splash-ring-2 {
  animation-delay: 0.16s;
  border-color: var(--xyg-gold);
}
.xyg-splash-droplet {
  position: absolute;
  top: 46%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0f2fe;
  animation: xygSplashDrop 0.75s ease-out forwards;
}
.xyg-drop-left {
  left: 34%;
}
.xyg-drop-center {
  left: 50%;
}
.xyg-drop-right {
  left: 66%;
}
.xyg-ocean-splash.is-static .xyg-splash-ring,
.xyg-ocean-splash.is-static .xyg-splash-droplet {
  animation: none;
  opacity: 0.85;
  transform: translate(-50%, -50%) scale(1);
}
.xyg-ocean-cta-dock {
  position: absolute;
  inset-inline-end: 24px;
  bottom: 22px;
  display: flex;
  gap: 12px;
  z-index: 15;
  pointer-events: auto;
}
.xyg-btn {
  appearance: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    background 0.15s ease;
}
.xyg-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.xyg-btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}
.xyg-btn-primary {
  background:
    linear-gradient(
      135deg,
      #f59e0b 0%,
      #ea580c 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}
.xyg-btn-secondary {
  background: rgba(14, 116, 144, 0.88);
  border-color: rgba(125, 211, 252, 0.45);
  color: #f0f9ff;
}
.xyg-btn-ghost {
  background: rgba(15, 38, 62, 0.72);
  border-color: var(--xyg-border);
  color: var(--xyg-text);
}
.xyg-btn-danger {
  background: rgba(185, 28, 28, 0.85);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fff;
}
.xyg-btn-link {
  background: transparent;
  color: #7dd3fc;
  padding-inline: 4px;
  justify-content: flex-start;
}
.xyg-status-toast {
  position: fixed;
  inset-inline: 50% auto;
  transform: translateX(-50%);
  bottom: 88px;
  z-index: 25;
  background: rgba(7, 29, 49, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  max-width: min(560px, calc(100vw - 28px));
  text-align: center;
}
.xyg-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.xyg-sheet {
  width: min(580px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--xyg-surface-elevated);
  border: 1px solid var(--xyg-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
}
.xyg-sheet-compact {
  width: min(460px, 100%);
}
.xyg-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.xyg-sheet-header h2 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}
.xyg-icon-close {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}
.xyg-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.xyg-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.xyg-form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.xyg-form-row label {
  font-size: 13px;
  color: #bae6fd;
  font-weight: 500;
}
.xyg-form-row input,
.xyg-form-row select,
.xyg-form-row textarea,
.xyg-report-panel select,
.xyg-report-panel input,
.xyg-reply-box textarea {
  width: 100%;
  background: rgba(4, 16, 29, 0.85);
  border: 1px solid var(--xyg-border);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.xyg-label-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.xyg-char-counter {
  font-size: 12px;
  color: var(--xyg-text-muted);
}
.xyg-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
}
.xyg-preview-hint,
.xyg-subtext {
  margin: 4px 0 10px;
  font-size: 12.5px;
  color: var(--xyg-text-muted);
}
.xyg-sheet-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.xyg-alert {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.xyg-alert-info {
  background: rgba(14, 116, 144, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}
.xyg-alert-warn {
  background: rgba(180, 83, 9, 0.32);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fef3c7;
}
.xyg-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 8px;
}
.xyg-region-item {
  background: rgba(7, 25, 43, 0.8);
  border: 1px solid var(--xyg-border);
  border-radius: 12px;
  padding: 10px;
  color: var(--xyg-text);
  text-align: start;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.xyg-region-item.is-active {
  border-color: var(--xyg-gold);
  background: rgba(251, 191, 36, 0.14);
}
.xyg-region-item span {
  font-size: 12px;
  color: var(--xyg-text-muted);
}
.xyg-chip {
  background: rgba(9, 31, 52, 0.8);
  border: 1px solid var(--xyg-border);
  color: var(--xyg-text);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  cursor: pointer;
}
.xyg-chip.is-active {
  border-color: var(--xyg-gold);
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.2);
}
.xyg-scope-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.xyg-bottle-letter {
  background: rgba(5, 18, 33, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 14px;
  padding: 16px;
}
.xyg-letter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--xyg-text-muted);
  margin-bottom: 8px;
}
.xyg-letter-topic {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fde68a;
}
.xyg-letter-body {
  margin: 0 0 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #f8fafc;
  font-size: 14.5px;
}
.xyg-letter-author {
  margin: 0 0 8px;
  font-size: 13px;
  color: #94b8d0;
  text-align: end;
}
.xyg-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.xyg-list-card {
  background: rgba(6, 20, 36, 0.78);
  border: 1px solid var(--xyg-border);
  border-radius: 14px;
  padding: 14px;
}
.xyg-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.xyg-verified-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.4);
}
.xyg-empty-state {
  text-align: center;
  padding: 22px 12px;
  color: var(--xyg-text-muted);
}
.xyg-report-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--xyg-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xyg-thread-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-inline: 2px;
}
.xyg-thread-bubble {
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid var(--xyg-border);
  background: rgba(8, 27, 46, 0.85);
}
.xyg-thread-bubble.is-me {
  background: rgba(14, 116, 144, 0.34);
  border-color: rgba(56, 189, 248, 0.45);
  margin-inline-start: 28px;
}
.xyg-thread-bubble.is-peer {
  margin-inline-end: 28px;
}
.xyg-thread-bubble-meta {
  font-size: 12px;
  color: #94b8d0;
  margin-bottom: 4px;
}
.xyg-thread-bubble-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  color: #f8fafc;
}
@media (prefers-reduced-motion: reduce) {
  .xyg-wave-back,
  .xyg-wave-mid,
  .xyg-wave-front,
  .xyg-floating-sea-bottle,
  .xyg-splash-ring,
  .xyg-splash-droplet {
    animation: none !important;
    transition: none !important;
  }
}
.xyg-ocean-surface.is-reduced-motion .xyg-wave-back,
.xyg-ocean-surface.is-reduced-motion .xyg-wave-mid,
.xyg-ocean-surface.is-reduced-motion .xyg-wave-front,
.xyg-ocean-surface.is-reduced-motion .xyg-floating-sea-bottle {
  animation: none !important;
}
@media (max-width: 767px) {
  .xyg-topbar {
    padding: 10px 12px;
    gap: 8px;
  }
  .xyg-brand-slogan,
  .xyg-hide-xs {
    display: none;
  }
  .xyg-globe-stage {
    width: min(86vw, 370px);
    height: min(86vw, 370px);
  }
  .xyg-person-card {
    inset-inline: 12px;
    top: auto;
    bottom: 132px;
    transform: none;
    width: auto;
  }
  .xyg-ocean-cta-dock {
    inset-inline: 12px;
    bottom: 14px;
    justify-content: stretch;
  }
  .xyg-ocean-cta-dock .xyg-btn {
    flex: 1 1 0;
    padding: 12px 10px;
    font-size: 13.5px;
  }
  .xyg-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .xyg-sheet {
    width: 100%;
    max-height: 86dvh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 18px 14px 24px;
  }
  .xyg-form-grid-2 {
    grid-template-columns: 1fr;
  }
}
/*# sourceMappingURL=index.css.map */
