:root {
  --bg-top: #edf3f7;
  --bg-bottom: #dce4f0;
  --card: rgba(255, 255, 255, 0.91);
  --card-border: rgba(255, 255, 255, 0.78);
  --text: #111827;
  --muted: #6b7280;
  --soft: #eef4f5;
  --line: rgba(17, 24, 39, 0.08);
  --accent: #5fe0c4;
  --accent-deep: #16b89a;
  --shadow: 0 22px 80px rgba(52, 73, 94, 0.14);
  --ring: 0deg;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-bottom);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 33rem),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  letter-spacing: 0;
}

.page-shell {
  display: grid;
  flex: 1;
  min-height: auto;
  padding: max(4.25rem, env(safe-area-inset-top)) 1.25rem 1.7rem;
  place-items: center;
}

.verification {
  display: grid;
  width: min(100%, 31.25rem);
  gap: 1.55rem;
  justify-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 3.2rem;
  padding: 0 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 0.75rem 2rem rgba(51, 65, 85, 0.06);
  color: #5b6573;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(18px);
}

.status-dot {
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0.34rem rgba(95, 224, 196, 0.14);
}

.card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 1.75rem;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.card-content {
  display: grid;
  justify-items: center;
  padding: 3.2rem 2rem 2.25rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-deep);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  max-width: 21rem;
  margin: 0;
  font-size: clamp(2rem, 8.6vw, 2.72rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.subtitle {
  max-width: 24rem;
  margin: 1.45rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 4.2vw, 1.19rem);
  font-weight: 500;
  line-height: 1.45;
}

.instruction {
  margin: 1.45rem 0 1.95rem;
  color: #202938;
  font-size: clamp(1rem, 4.1vw, 1.1rem);
  font-weight: 700;
  line-height: 1.3;
}

.hold-button {
  position: relative;
  display: grid;
  width: min(13rem, 54vw);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hold-button:focus-visible {
  outline: 0.2rem solid rgba(22, 184, 154, 0.42);
  outline-offset: 0.35rem;
}

.hold-ring,
.hold-ring::before,
.hold-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.hold-ring {
  background:
    conic-gradient(from -90deg, var(--accent-deep) var(--ring), rgba(199, 218, 220, 0.88) 0),
    linear-gradient(180deg, #ffffff, #f8fbfc);
  box-shadow:
    inset 0 0 0 1px rgba(95, 224, 196, 0.18),
    0 1.2rem 2.7rem rgba(44, 61, 76, 0.12);
  transition: filter 180ms ease, transform 180ms ease;
}

.hold-ring::before {
  inset: 0.38rem;
  content: "";
  background: linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.035);
}

.hold-inner {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.76rem;
  padding: 2.2rem;
  color: #81899a;
  text-transform: uppercase;
}

.lock-icon {
  display: block;
  font-size: clamp(2.6rem, 11vw, 3.35rem);
  line-height: 1;
  filter: saturate(0.92);
  transform: translateY(0);
  transition: transform 180ms ease;
}

.hold-label {
  display: block;
  max-width: 9.4rem;
  font-size: clamp(0.76rem, 3.4vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
}

.hold-button.is-holding .hold-ring {
  filter: drop-shadow(0 1rem 1.6rem rgba(22, 184, 154, 0.22));
  transform: scale(0.985);
}

.hold-button.is-holding .lock-icon {
  transform: translateY(-0.12rem);
}

.hold-button.is-verified .hold-ring {
  background:
    conic-gradient(from -90deg, var(--accent-deep) 360deg, var(--accent-deep) 0),
    linear-gradient(180deg, #ffffff, #f8fbfc);
}

.state-message {
  min-height: 1.4rem;
  margin: 1.2rem 0 0;
  color: #7a8595;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.card-note {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 3.9rem;
  padding: 0.82rem 1.7rem;
  border-top: 1px solid var(--line);
  background: rgba(250, 252, 253, 0.78);
  color: #7a828d;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.info-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  place-items: center;
  background: #d6dce5;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
}

.copy-link {
  border: 0;
  background: transparent;
  color: rgba(92, 101, 115, 0.58);
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.copy-link span {
  color: rgba(63, 72, 88, 0.68);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16rem;
}

.copy-link:focus-visible {
  border-radius: 0.6rem;
  outline: 0.18rem solid rgba(22, 184, 154, 0.28);
  outline-offset: 0.24rem;
}

.legal {
  padding: 0 1rem max(1rem, env(safe-area-inset-bottom));
  color: rgba(77, 86, 101, 0.52);
  text-align: center;
}

.legal p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.legal a {
  color: inherit;
  pointer-events: auto;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.13rem;
}

@media (max-width: 430px) {
  .page-shell {
    align-items: start;
    padding-top: max(3.45rem, env(safe-area-inset-top));
  }

  .verification {
    gap: 1.48rem;
  }

  .card {
    border-radius: 1.45rem;
  }

  .card-content {
    padding: 2.5rem 1.55rem 1.6rem;
  }

  .card-note {
    padding: 0.82rem 1.25rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .card-content {
    padding-right: 1.15rem;
    padding-left: 1.15rem;
  }

  .status-pill {
    min-height: 2.9rem;
    padding: 0 1.2rem;
    font-size: 0.93rem;
  }

  .hold-button {
    width: min(12rem, 58vw);
  }
}

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