:root {
  --ink: #e7f1ec;
  --muted: #b7a0a0;
  --line: #48292c;
  --mint: #4a1c20;
  --accent: #ef4f5f;
  --paper: #160e10;
  --white: #261719;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 17% 16%, rgba(125, 29, 43, .3), transparent 28rem),
    radial-gradient(circle at 88% 78%, rgba(92, 31, 24, .16), transparent 30rem),
    var(--paper);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .3;
  content: "";
  background-image: linear-gradient(rgba(218, 74, 87, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(218, 74, 87, .07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.background-orbs { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; top: 0; left: 0; display: block; width: 190px; aspect-ratio: 1; border: 1px solid rgba(239, 79, 95, .2); border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(239, 79, 95, .22), rgba(119, 20, 35, .08) 46%, transparent 70%); filter: blur(1px); opacity: .7; will-change: transform; }
.orb-two { width: 250px; }
.orb-three { width: 135px; }
.orb-four { width: 95px; opacity: .45; }
.orb-five { width: 115px; opacity: .48; }
.orb-six { width: 75px; opacity: .4; }
.orb-seven { width: 175px; opacity: .42; }
.orb-eight { width: 70px; opacity: .5; }
.orb-nine { width: 125px; opacity: .35; }
.orb-ten { width: 52px; opacity: .35; }

.ambient { position: fixed; z-index: -1; border: 1px solid rgba(40, 167, 122, .12); border-radius: 50%; pointer-events: none; }
.ambient-one { width: 31rem; height: 31rem; top: -17rem; right: -8rem; }
.ambient-two { width: 22rem; height: 22rem; bottom: -14rem; left: -6rem; }

.page-shell { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; padding: 0 6.5vw; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; }
.topbar { height: 92px; border-bottom: 1px solid rgba(170, 210, 194, .13); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px 8px 8px 2px; background: var(--ink); transform: rotate(-8deg); }
.brand-mark span { width: 8px; height: 8px; border: 2px solid var(--mint); border-radius: 50%; }
.topbar-label { color: #81958f; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.topbar-label i { display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(40, 167, 122, .12); }

.challenge-wrap { width: min(100%, 380px); margin: auto; padding: 28px 0; }
.visitor-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 9px; overflow: hidden; border: 1px solid rgba(194, 69, 80, .3); border-radius: 7px; background: rgba(194, 69, 80, .3); }
.meta-item { display: grid; gap: 4px; padding: 9px 12px; background: rgba(31, 18, 20, .8); }
.meta-item span { color: #977c80; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.meta-item strong { overflow: hidden; color: #e8cdd0; font-family: "Space Grotesk", sans-serif; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.meta-ip { text-align: right; }
.challenge-card { padding: 29px; border: 1px solid rgba(194, 69, 80, .45); border-radius: 11px; background: rgba(31, 18, 20, .94); box-shadow: 0 20px 55px rgba(0, 0, 0, .35), 0 2px 5px rgba(0, 0, 0, .18); backdrop-filter: blur(12px); animation: arrive .7s ease both; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(239, 79, 95, .14); }
h1 { max-width: 340px; margin: 20px 0 9px; font-family: "Space Grotesk", sans-serif; font-size: clamp(32px, 7vw, 42px); line-height: 1; letter-spacing: -.07em; }
.lead { max-width: 370px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.demo-check { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 60px; margin-top: 21px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #241619; font: inherit; text-align: left; cursor: pointer; }
.demo-check:hover { border-color: rgba(239, 79, 95, .65); background: #2b191d; }
.demo-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.demo-check.is-checked .check-visual { border-color: var(--accent); background: var(--accent); }
.demo-check.is-checked .check-visual::after { position: absolute; top: 3px; left: 7px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; content: ""; transform: rotate(45deg); }
.check-visual { position: relative; width: 22px; height: 22px; flex: 0 0 auto; border: 1.5px solid #89535a; border-radius: 4px; background: #130c0e; }
.check-copy { display: grid; gap: 4px; }
.check-copy strong { font-size: 14px; font-weight: 600; }
.check-copy small { color: #9f8587; font-size: 11px; }
.check-badge { margin-left: auto; padding: 5px 7px; border-radius: 4px; color: #ff8b95; background: var(--mint); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.progress-line { height: 3px; margin-top: 20px; overflow: hidden; border-radius: 4px; background: #263936; }
.progress-line span { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--accent); animation: scan 2.8s ease-in-out infinite; }
.status-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; color: #829892; font-size: 10px; }
.status-icon { display: inline-grid; width: 13px; height: 13px; margin-right: 4px; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: 9px; font-weight: 700; }
.note { margin: 20px 0 0; color: #81958f; font-size: 10px; line-height: 1.6; text-align: center; }
.under-card { display: flex; align-items: center; gap: 12px; padding: 17px 5px; color: #788e87; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.under-line { height: 1px; flex: 1; background: rgba(113, 157, 141, .35); }
.footer { height: 74px; color: #71877f; font-size: 10px; }
.footer-links { display: flex; gap: 22px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* IP под спойлером: размыт, показывается при наведении, фокусе или тапе */
.meta-ip strong {
  filter: blur(4px);
  cursor: help;
  transition: filter .18s ease;
}

.meta-ip:hover strong,
.meta-ip:focus-within strong,
.meta-ip:active strong {
  filter: blur(0);
}

.meta-ip strong:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

@keyframes arrive { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scan { 0%, 100% { transform: translateX(-10%); } 50% { transform: translateX(145%); } }

@media (max-width: 560px) {
  .page-shell { padding: 0 20px; }
  .topbar { height: 74px; }
  .topbar-label { font-size: 8px; letter-spacing: .11em; }
  .challenge-wrap { padding: 42px 0 28px; }
  .challenge-card { padding: 31px 23px 27px; }
  .status-row { align-items: flex-start; flex-direction: column; }
  .footer { height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
