:root {
  color-scheme: light dark;
  --page: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --red: #d70015;
  --red-soft: rgba(215, 0, 21, 0.1);
  --shadow: 0 36px 90px rgba(0, 0, 0, 0.12);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(0, 113, 227, 0.1), transparent 44%),
    linear-gradient(180deg, #fbfbfd 0%, var(--page) 48%, #ececf0 100%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-one {
  top: 8rem;
  left: -18rem;
  background: #8ab4ff;
}

.ambient-two {
  right: -20rem;
  bottom: -4rem;
  background: #d8b5ff;
}

.site-header,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 7px 7px 10px 10px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 6px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.privacy-note {
  color: var(--muted);
  font-size: 12px;
}

.page-shell {
  width: min(1060px, calc(100% - 32px));
  margin: clamp(28px, 7vh, 78px) auto 0;
}

.guard-card {
  position: relative;
  padding: clamp(38px, 6vw, 78px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(32px) saturate(130%);
  -webkit-backdrop-filter: blur(32px) saturate(130%);
}

.signal-wrap {
  width: 124px;
  height: 124px;
  margin: 0 auto 28px;
  position: relative;
  display: grid;
  place-items: center;
}

.signal-ring,
.signal-core {
  position: absolute;
  border-radius: 50%;
}

.signal-ring-outer {
  inset: 0;
  background: rgba(215, 0, 21, 0.06);
  animation: breathe 3s ease-in-out infinite;
}

.signal-ring-inner {
  inset: 17px;
  background: rgba(215, 0, 21, 0.1);
}

.signal-core {
  inset: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff453a, #d70015);
  box-shadow: 0 12px 30px rgba(215, 0, 21, 0.28);
}

.signal-line {
  width: 5px;
  height: 23px;
  border-radius: 99px;
  background: white;
  position: relative;
}

.signal-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  transform: translateX(-50%);
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.76;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px var(--red-soft);
}

h1 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.lead {
  max-width: 700px;
  margin: 26px auto 34px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.62;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.target-panel {
  max-width: 680px;
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 16px 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(118, 118, 128, 0.06);
  text-align: left;
}

.target-panel > div {
  min-width: 0;
}

.target-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.target-panel strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-chip {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.actions,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.actions {
  margin-top: 30px;
}

.button {
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.button:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.3);
  outline-offset: 3px;
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-primary:hover {
  background: var(--blue-hover);
}

.button-quiet {
  background: rgba(118, 118, 128, 0.1);
  color: var(--text);
}

.button-danger {
  background: var(--red);
  color: white;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.technical-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.gambling-actions {
  max-width: 560px;
  margin: 30px auto 0;
}

.gambling-actions p {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.redirect-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(118, 118, 128, 0.14);
}

.redirect-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transform-origin: left;
  animation: redirect 2.2s linear forwards;
}

@keyframes redirect {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.trust-grid article {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.number {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.trust-grid h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.trust-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

footer {
  padding: 34px 0 42px;
  color: var(--muted);
  font-size: 11px;
}

dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(34px);
  -webkit-backdrop-filter: blur(34px);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

dialog form {
  padding: 34px;
  text-align: center;
}

.dialog-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 24px;
  font-weight: 750;
}

dialog h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.035em;
}

dialog p {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.dialog-target {
  margin-bottom: 24px;
  padding: 13px 16px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(118, 118, 128, 0.08);
  text-align: left;
}

.dialog-target span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.dialog-target strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .privacy-note {
    display: none;
  }

  .page-shell {
    margin-top: 18px;
  }

  .guard-card {
    padding: 42px 22px 32px;
  }

  .signal-wrap {
    width: 102px;
    height: 102px;
  }

  .signal-core {
    inset: 30px;
  }

  .target-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --page: #050506;
    --surface: rgba(28, 28, 30, 0.76);
    --surface-strong: rgba(36, 36, 38, 0.94);
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.1);
    --red: #ff453a;
    --red-soft: rgba(255, 69, 58, 0.12);
    --shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
  }

  body {
    background:
      radial-gradient(circle at 50% -20%, rgba(41, 151, 255, 0.14), transparent 45%),
      linear-gradient(180deg, #101012 0%, #070708 48%, #000 100%);
  }

  .guard-card,
  .trust-grid article,
  dialog {
    border-color: rgba(255, 255, 255, 0.08);
  }

  .trust-grid article {
    background: rgba(28, 28, 30, 0.52);
  }
}
