:root {
  --xst-bg: #f6f9ff;
  --xst-card: rgba(255, 255, 255, 0.92);
  --xst-ink: #1f2a37;
  --xst-sub: #6b7280;
  --xst-primary: #3b82f6;
  --xst-primary-2: #22c55e;
  --xst-warn: #f59e0b;
  --xst-danger: #ef4444;
}

html,
body {
  min-height: 100%;
}

body {
  background: radial-gradient(circle at 12% 12%, rgba(59, 130, 246, 0.15), transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(34, 197, 94, 0.14), transparent 46%),
    radial-gradient(circle at 52% 92%, rgba(245, 158, 11, 0.12), transparent 50%),
    var(--xst-bg);
  background-attachment: fixed;
  color: var(--xst-ink);
}

.xst-shadow {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.xst-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.xst-header-wrap {
  position: relative;
}

.xst-main-slot {
  padding-top: 0;
}

.xst-sticky-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 0 0 2px;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.985), rgba(246, 249, 255, 0.92));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .xst-sticky-header {
    background: rgba(246, 249, 255, 0.99);
  }
}

.xst-site-nav {
  backdrop-filter: blur(14px);
}

.xst-header-glass {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.xst-float {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.xst-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.xst-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.xst-modal-mask.show {
  display: flex;
}

.xst-modal {
  width: min(520px, calc(100vw - 40px));
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  animation: xst-pop 220ms ease forwards;
}

@keyframes xst-pop {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.xst-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.92);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.2px;
  display: none;
  z-index: 60;
}

.xst-toast.show {
  display: block;
  animation: xst-toast-in 120ms ease;
}

@keyframes xst-toast-in {
  from {
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.xst-fall-stage {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.9));
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.14);
}

.xst-fall-item {
  position: absolute;
  width: 56px;
  height: 56px;
  pointer-events: none;
}

.xst-fall-item-inner {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
  user-select: none;
}

.xst-fall-item.hit .xst-fall-item-inner {
  animation: xst-hit 200ms ease forwards;
}

@keyframes xst-hit {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  40% {
    transform: scale(1.08);
    filter: brightness(1.06);
  }
  100% {
    transform: scale(0.96);
    filter: brightness(1.1);
    opacity: 0;
  }
}

.xst-pc-only {
  display: none;
}

.xst-pc-only.show {
  display: block;
}

.xst-mode-grid {
  align-items: stretch;
}

.xst-mode-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.xst-hero-desc {
  overflow-wrap: normal;
}

@media (min-width: 960px) {
  .xst-hero-desc {
    white-space: nowrap;
  }
}

.xst-footer-note {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding-top: 18px;
  text-align: center;
}

.xst-footer-note-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--xst-ink);
}

.xst-footer-note-text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--xst-sub);
}
