:root {
  --ink: #07110e;
  --ink-soft: #0d1d18;
  --paper: #edf7f0;
  --muted: #91a69c;
  --jade: #62f2a1;
  --jade-soft: rgba(98, 242, 161, 0.16);
  --line: rgba(218, 255, 233, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--ink);
  background-size: 28px 28px;
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 0, rgba(0, 0, 0, 0.38) 78%);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
}

.ambient-one {
  top: -22vw;
  right: -12vw;
  background: #31c879;
}

.ambient-two {
  bottom: -28vw;
  left: -20vw;
  background: #194d41;
}

.shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(22px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
  place-items: center;
}

.jump-card {
  position: relative;
  width: min(100%, 440px);
  min-height: min(720px, calc(100svh - 44px));
  padding: 30px 28px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px 10px 32px 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 34%),
    rgba(8, 23, 18, 0.82);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.19em;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: var(--jade);
}

.portal {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 50px auto 38px;
}

.portal::before {
  position: absolute;
  inset: 34px;
  content: "";
  border-radius: 45% 55% 52% 48%;
  background: radial-gradient(circle at 40% 34%, #a1ffd0, var(--jade) 42%, #227d50 75%);
  box-shadow: 0 0 60px rgba(98, 242, 161, 0.28);
  animation: breathe 2.8s ease-in-out infinite;
}

.portal-ring {
  position: absolute;
  border: 1px solid rgba(159, 255, 203, 0.36);
  border-radius: 50%;
}

.ring-one {
  inset: 12px;
  border-left-color: transparent;
  animation: orbit 9s linear infinite;
}

.ring-two {
  inset: 0 44px;
  border-right-color: transparent;
  transform: rotate(63deg);
  animation: orbit 7s linear infinite reverse;
}

.portal-mark {
  position: absolute;
  inset: 0;
  display: grid;
  color: #062116;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 72px;
  font-weight: 700;
  place-items: center;
  transform: translateY(-4px);
}

.portal-arrow {
  position: absolute;
  right: 14px;
  bottom: 28px;
  display: grid;
  width: 48px;
  height: 48px;
  color: var(--ink);
  border: 4px solid var(--ink-soft);
  border-radius: 50%;
  background: var(--paper);
  font-size: 22px;
  font-weight: 700;
  place-items: center;
}

.step {
  margin: 0 0 12px;
  color: var(--jade);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.13em;
}

h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: clamp(36px, 10vw, 50px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.12;
}

h1 em {
  color: var(--jade);
  font-style: normal;
}

.status {
  min-height: 44px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.progress {
  display: flex;
  gap: 6px;
  margin-top: 22px;
}

.progress[hidden],
.fallback[hidden] {
  display: none;
}

.progress span {
  width: 24px;
  height: 3px;
  background: var(--jade);
  animation: pulse 1.1s ease-in-out infinite;
}

.progress span:nth-child(2) {
  animation-delay: 0.16s;
}

.progress span:nth-child(3) {
  animation-delay: 0.32s;
}

.fallback {
  margin-top: 22px;
  animation: reveal 0.45s ease-out both;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  color: #07110e;
  border-radius: 4px 18px 4px 18px;
  background: var(--jade);
  box-shadow: 0 10px 30px rgba(39, 206, 114, 0.2);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action span {
  font-size: 22px;
}

.primary-action:focus-visible,
.text-action:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

.text-action {
  padding: 12px 0 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.text-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.footnote {
  position: absolute;
  right: 28px;
  bottom: 22px;
  left: 28px;
  margin: 0;
  color: rgba(214, 235, 222, 0.4);
  font-size: 11px;
  letter-spacing: 0.02em;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes breathe {
  0%, 100% { transform: scale(0.96) rotate(-2deg); }
  50% { transform: scale(1.04) rotate(2deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scaleX(0.6); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 690px) {
  .jump-card {
    min-height: calc(100svh - 32px);
    padding-top: 24px;
  }

  .portal {
    width: 178px;
    height: 178px;
    margin: 25px auto 22px;
  }

  .portal-mark {
    font-size: 56px;
  }

  h1 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

