:root {
  --bg: #0b0d10;
  --card: var(--base-color);
  --text: #e9eef2;
  --muted: #9aa5b1;
  --green: #28c76f;
  --yellow: #f2c94c;
  --red: #ff5b5b;
  --accent: #61dafb;
  --border: #FFFEFE4D;
  --neon-bar: #39e2fc;
  --neon-bar-shadow: #3486b5;
  --card-contrast: #0f1418;
  --form-narrow-width: clamp(29rem, 39.423vw + 16.385rem, 70rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
.site-root {
  /* min-height: 50vh; */
  height: auto;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1000px 600px at 20% -10%, #0e1420 0%, var(--bg) 60%),
              radial-gradient(800px 600px at 100% 0%, #0f1016 0%, var(--bg) 70%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.main-grow {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  justify-content: flex-start;
  position: relative;
}
.footer-spacer {
  flex-grow: 1;
  min-height: 16px;
}

/* Header and info */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin-top: 68px; */
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 8px;
}
.brand h1.title {
  margin: 0 0 6px 0;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* hide backend status bar entirely */
#backend-status { display: none !important; }

#info {
  margin: 12px auto 20px auto;
  padding: 14px 28px 14px 28px;
  background: linear-gradient(180deg, rgba(14,19,24,0.92), rgba(14,19,24,0.84));
  border: 1px solid rgba(30,36,43,0.9);
  border-radius: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: justify;
  text-align-last: left;
  word-break: break-word;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 6px 22px rgba(3,6,10,0.45);
}

/* Apply similar narrow styling to the explain panel text block, left-aligned */
.explain-desc {
  margin: 12px auto 20px auto;
  padding: 14px 28px 14px 28px;
  background: linear-gradient(180deg, rgba(14,19,24,0.92), rgba(14,19,24,0.84));
  border: 1px solid rgba(30,36,43,0.9);
  border-radius: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: justify;
  text-align-last: left;
  word-break: break-word;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 6px 22px rgba(3,6,10,0.45);
}

/* make the explain warning cyan (normal weight) */
.explain-warning { color: var(--accent); font-weight: 400; }

/* stronger <strong> inside #info (by default) */
#info strong { font-weight: 900; color: inherit; }

/* paragraphs in #info that should match footer social-link color and be normal weight */
.info-accent {
  color: var(--accent);
  font-weight: 400;
}
.info-accent strong {
  color: inherit;
  font-weight: 400; /* ensure cyan paragraphs are not bold even if strong used */
}

#info p {
  margin: 0 0 8px 0;
  text-align: justify;
  text-align-last: left;
}

/* last paragraph should center on small screens */
@media (max-width: 480px) {
  #info p.last-par {
    text-align: center;
    text-align-last: center;
  }
}

/* neutral accent (used instead of bold white) */
.accent-muted { color: var(--muted); font-weight: 400; }

/* Toolbar */
#toolbar { width: 100%; display: flex; flex-direction: column; align-items: center; }
.form-narrow { display: flex !important; flex-direction: column; align-items: center; width: 100%; max-width: var(--form-narrow-width); margin: 0 auto; padding: calc(var(--container-padding) * 2); background: transparent; gap: 30px; } /* reduced bottom padding */
.audittitle { font-size: 24px; font-weight: 900; margin-bottom: 12px; margin-top: 14px; color: #ffffff; letter-spacing: 0.04em; text-align: center; width: 100%; }
.audittitle h4 {
  font-family: var(--title-font);
  font-size: var(--h3-fontsize);
  font-weight: 600;
}
.url-label-center { width: 100%; display: flex; flex-direction: column; align-items: center; }
.url-label-center > span { display: block; text-align: center; font-size: var(--text-l); color: var(--muted); font-family: var(--text-font); font-weight: 600; margin-bottom: 6px; width: 100%; letter-spacing: 0.01em; }
.input-narrow { width: 100%; max-width: 92vw; border-radius: 10px; border: 1px solid rgba(234,246,252,0.06); padding: 12px 16px; background: #0f1418; color: var(--text); font-size: var(--text-l); margin: 0 auto; display: block; box-sizing: border-box; transition: box-shadow .14s, border-color .12s; }

/* Run button — Neon Teal gradient */
#run {
  display: block;
  margin: 12px auto 6px auto;
  font-size: var(--text-l);
  padding: 10px 26px;
  border-radius: 36px;
  /* background: linear-gradient(90deg, #00E5FF 0%, #00B8E6 100%) !important; */
  color: var(--text-color);
  font-family: var(--text-font);
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,229,255,0.12);
  border: 2px solid var(--text-color);
  transition: transform .12s ease, box-shadow .18s ease, background .18s;
  outline: none;
  cursor: pointer;
}
#run:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,229,255,0.16); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 36px rgba(0,0,0,0.45); margin-bottom: 0; transition: transform .12s ease, box-shadow .12s ease; }

/* Results block spacing decreased to save vertical space */

#result {
  padding: calc(var(--container-padding) * 2) 0;
}

.hidden { display: none !important; }
.results-list-container {     display: flex; flex-direction: column; width: 100%; max-width: var(--form-narrow-width); margin: 0 auto 8px auto; padding: calc(var(--container-padding) * 2) 0; gap: 20px; }
.prelim-title { font-family: var(title-font); font-size: var(--h4-fontsize); font-weight: 500; margin-bottom: 6px; color: var(--text); text-align: center; }

/* Reduce summary spacing (badge/summary area) */
.summary { display: flex; gap: 0px; align-items: center; justify-content: center; }

/* Badge (original ID rules preserved + class-based duplicates so cloned badge is styled identically) */

#badge.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: calc(var(--container-padding) * 2) 0;
  border-radius: 16px;
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease;
  background: #000;
  border: 1px solid rgba(255,255,255,0.04);
  font-weight: normal;
  font-size: calc(var(--text-l) * 0.9);
  color: var(--text);
}
#badge .b-header-wide { font-family: var(--title-font); font-weight: 600; font-size: var(--h3-fontsize); letter-spacing: 0.06em; color: #ffffff; width: 100%; }
#badge .b-quick { font-size: calc(var(--text-l) * 0.9); color: var(--muted); width: 100%; font-weight: normal; }
#badge .b-domain-inline { font-weight: 700; color: #ffffff; font-size: calc(var(--text-l) * 0.9); }
#badge .b-meta { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: calc(var(--text-l) * 0.9); color: var(--muted); width: 100%; }
#badge .b-status { display: flex; gap: 8px; align-items: center; justify-content: center; width: 100%; }
/* default: transparent background so color comes from panel class */
#badge .b-status-value { font-size: calc(var(--text-l) * 0.9); font-weight: 600; padding: 3px 8px; border-radius: 8px; color: var(--text); background: transparent; min-width: 84px; text-align: center; transition: background-color .12s ease, color .12s ease; }
#badge-note { margin-top: 4px; text-align: center; font-weight: 700; font-size: var(--text-l); width: 100%; }

.b-meta-label {
  padding-right: 5px;
}

.badge.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  width: 100%;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease;
  background: #000;
  border: 1px solid rgba(255,255,255,0.04);
  font-weight: normal;
  font-size: 13px;
  color: var(--text);
}
.badge .b-header-wide { font-weight: 900; font-size: 22px; letter-spacing: 0.06em; color: #ffffff; width: 100%; }
.badge .b-quick { font-size: 12px; color: var(--muted); width: 100%; font-weight: normal; }
.badge .b-domain-inline { font-weight: 700; color: #ffffff; font-size: 13px; padding-left: 5px; }
.badge .b-meta { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); width: 100%; }
.badge .b-status { display: flex; gap: 8px; align-items: center; justify-content: center; width: 100%; }
/* default: transparent background so color comes from panel class */
.badge .b-status-value { font-size: calc(var(--text-l) * 0.9); font-weight: 600; padding: 3px 8px; border-radius: 8px; color: var(--text); background: transparent; min-width: 84px; text-align: center; transition: background-color .12s ease, color .12s ease; }

/* Checks list (kept for results panel) */
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; width: 100%; }
.checks li { padding: calc(var(--container-padding) * 0.7) calc(var(--container-padding) * 0.8); border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(180deg, rgba(14,19,24,0.96), rgba(12,16,20,0.98)); display: flex; justify-content: space-between; align-items: center; font-size: var(--text-l); transition: background .12s, transform .08s; }
.checks li span:first-child { flex: 1; text-align: left; color: var(--muted); }
.checks li span:last-child, .profiles, #social { font-weight: 600; min-width: 72px; text-align: right; color: var(--text); }

/* Icons */
.checks li .ok { color: var(--green); font-weight: 500; font-size: var(--text-l); position: relative; padding-left: 6px; }
.checks li .ok::before { content: "✓"; margin-right: 6px; font-weight: 500; color: var(--green); }
.checks li .warn { color: var(--yellow); font-weight: 500; font-size: var(--text-l); position: relative; padding-left: 6px; }
.checks li .warn::before { content: "⚠"; margin-right: 6px; font-weight: 500; color: var(--yellow); }
.checks li .bad { color: var(--red); font-weight: 500; font-size: var(--text-l); position: relative; padding-left: 6px; }
.checks li .bad::before { content: "✕"; margin-right: 6px; font-weight: 500; color: var(--red); }

/* Actions */
.actions { display:flex; gap: 12px; justify-content:center; margin-top: 8px; flex-wrap:wrap; align-items:center; }
.btn-secondary, .btn-explain { padding: 10px 26px; border: none; color: #fff; cursor: pointer; transition: transform .08s ease, background .12s ease, box-shadow .12s ease; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Hide raw JSON debug details via CSS (display:none) */
details.json { display: none !important; }

/* Make "Check again" cyan (match #run) */
#check-again {
  color: var(--text-color);
  border: 2px solid var(--text-color);
  border-radius: 36px;
  font-family: var(--text-font);
  font-weight: 600;
  font-size: var(--text-l);
  box-shadow: 0 8px 30px rgba(0,229,255,0.10);
  transition: transform .12s ease, box-shadow .18s ease;
}
#check-again:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,229,255,0.14); }

/* Make "Explain Back" cyan too (explain panel back button) */
#explain-back {
  background: linear-gradient(90deg, #00E5FF 0%, #00B8E6 100%);
  color: #081018;
  font-weight: 800;
  border: none;
  box-shadow: 0 8px 30px rgba(0,229,255,0.10);
  transition: transform .12s ease, box-shadow .18s ease;
}
#explain-back:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,229,255,0.14); }

/* Designer: yellow button gradient class used for explain and send-pdf */
.btn-yellow {
  background: linear-gradient(90deg, #FFC107 0%, #FFB300 100%) !important;
  color: #081018;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(255,193,7,0.10);
  border: none;
  transition: transform .12s ease, box-shadow .18s ease;
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,193,7,0.14); }

/* Explain My Results — Amber Glow with pulse + same hover effect as check-again */
@keyframes amberPulse {
  0%   { box-shadow: 0 6px 18px rgba(255,193,7,0.18); transform: translateY(0); }
  50%  { box-shadow: 0 12px 36px rgba(255,193,7,0.22); transform: translateY(-2px); }
  100% { box-shadow: 0 6px 18px rgba(255,193,7,0.18); transform: translateY(0); }
}
button#explain.btn-explain {
  background: linear-gradient(90deg, #FFC107 0%, #FFB300 100%) !important;
  color: #081018;
  animation: amberPulse 2.4s ease-in-out infinite;
  transition: transform .12s ease, box-shadow .18s ease;
}
button#explain.btn-explain:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,193,7,0.14); }
@media (prefers-reduced-motion: reduce) {
  button#explain.btn-explain { animation: none; }
}

/* Send me PDF — yellow like Explain My Results (applies when button has class btn-yellow) */
#send-pdf.btn-yellow {
  background: linear-gradient(90deg, #FFC107 0%, #FFB300 100%) !important;
  color: #081018;
  padding: 10px 26px;
  min-height: 44px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(255,193,7,0.10);
  transition: transform .12s ease, box-shadow .18s ease;
  font-weight: 800;
  font-size: 16px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#send-pdf.btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,193,7,0.14);
}

/* Keep disabled appearance usable */
#run[disabled], #check-again[disabled], button#explain[disabled], #send-pdf[disabled] {
  opacity: 0.5;
  transform: none;
  animation: none;
  box-shadow: none;
  cursor: default;
}

/* Stopwatch overlay: centered number — set to original (smaller) size as requested (9.0vh) */
#stopwatch {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: var(--form-narrow-width);
  /* max-width: 80vw; */
  background-color: black;
  border: 1px solid #FFFEFE4D;
  border-radius: 16px;
  padding: calc(var(--container-padding) * 2);
}
#stopwatch .stopwatch-label {
  color: var(--neon-bar);
  font-weight: 500;
  font-family: var(--title-font);
  text-shadow: 0 6px 20px rgba(57,226,252,0.12), 0 0 30px rgba(57,226,252,0.22);
  font-size: var(--h3-fontsize);
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
}
#stopwatch .stopwatch-body {
  position: relative;
  width: auto;
  display: block;
  min-width: 8ch;
}
#stopwatch .stopwatch-num {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--title-font);
  font-weight: 700;
  /* font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace; */
  font-size: var(--h1-fontsize); /* reduced to half per request */
  line-height: 0.95;
  color: var(--neon-bar);
  text-shadow: 0 6px 30px rgba(57,226,252,0.18), 0 0 40px rgba(57,226,252,0.35);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(57,226,252,0.12);
  box-shadow: 0 8px 40px rgba(3,6,10,0.65);
  min-width: 5ch;
  text-align: center;
}

#stopwatch .stopwatch-note {
  margin-top: 6px;
  font-family: var(--text-font);
  font-weight: 600;
  font-size: calc(var(--text-l) * 0.8);
  color: var(--yellow);
  display: block;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
  -webkit-font-smoothing: antialiased;
}

/* when stopwatch is red, make note red and prominent */
#stopwatch.red .stopwatch-note {
  color: var(--red);
  text-shadow: 0 6px 20px rgba(255,91,91,0.14);
}

/* Badge status color variants — ensure these override default transparent background */
/* green keeps the solid green */
.badge.panel.green .b-status-value { background: var(--green) !important; color: #081018 !important; }
/* yellow uses same gradient as explain button (kept as yellow gradient) */
.badge.panel.yellow .b-status-value {
  background: linear-gradient(90deg, #FFC107 0%, #FFB300 100%) !important;
  color: #081018 !important;
}
/* red keeps solid red */
.badge.panel.red .b-status-value { background: var(--red) !important; color: #ffffff !important; }



/* Центровка всего текстового блока только на экране 4 */
#final-panel .explain-desc h2,
#final-panel .explain-desc p {
  text-align: center;
  text-align-last: center;
}

/* Перебить инлайн text-align:left у подписи email внутри финального блока */
#final-panel .explain-desc label span {
  text-align: center !important;
}

/* Кнопка Back на экране 4 — как "Back to check" */
#final-back {
  background: linear-gradient(90deg, #00E5FF 0%, #00B8E6 100%);
  color: #081018;
  font-weight: 800;
  border: none;
  box-shadow: 0 8px 30px rgba(0,229,255,0.10);
  transition: transform .12s ease, box-shadow .18s ease;
}
#final-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,229,255,0.14);
}

/* "I confirm" — тот же размер, что и "Send me PDF" */
#final-confirm.btn-yellow {
  padding: 10px 26px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* === Text justification for Verify Email instructions === */

/* Равномерная выключка основного текста и подписи */
#final-panel .explain-desc p,
#final-panel .explain-desc label span {
  text-align: justify !important;
  text-align-last: center;
}

/* Чтобы последние строки выглядели гармонично по центру */
#final-panel .explain-desc p:last-child {
  text-align-last: justify;
}
/* Final panel — label / email / confirmation note */
#final-panel .email-label {
  display: block;
  text-align: left;
  font-size: 15px; /* было 13px -> предлагаю 15px */
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

#final-panel .email-display {
  font-size: 18px; /* предложение: 18px — можно увеличить до 20px при желании */
  font-weight: 900;
  color: var(--text);
  margin-top: 6px;
  text-align: left;
  word-break: break-word;
}

/* стиль для сообщения после подтверждения — большой отступ от кнопок */
#final-panel .final-note {
  margin-top: 18px; /* увеличенный отступ */
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
/* Final panel: равномерная выключка и поведение последней строки */
#final-panel .explain-desc p {
  text-align: justify;              /* равномерное распределение слов по строке */
  text-align-last: left;            /* последняя строка — слева */
  -webkit-text-align-last: left;
  -moz-text-align-last: left;
  text-justify: inter-word;         /* распределять пробелы между словами */
  hyphens: auto;                    /* перенос слов, чтобы лучше заполнять строки */
  line-height: 1.45;
}

/* сохранить контейнер-центровку */
/* .footer .wrap {
  max-width: 980px;
  margin: 0 auto;
} */

/* Prevent content being covered by fixed footer: add bottom padding to main area */
.main-grow {
  /* padding-bottom: 92px; /* высота футера + запас; подбери значение при тесте */ */
}

/* Mobile tweak */
@media (max-width: 480px) {
   .b-meta {
     flex-direction: column;
   }
   
   .b-sep-dot {
     display: none;
   }
}
.brand { margin-top: 28px; } /* или .brand { margin-top: 40px; } */
.brand h1.title { margin-top: 12px; } /* тонкая настройка внутри */
@media (max-width: 480px) {
  .brand { margin-top: 18px; }
  .brand h1.title { margin-top: 6px; }
}
/* Animated neon wave around the input on first screen */
#audit-form .url-label-center { position: relative; display: block; }

/* base input should be above the glow */
#audit-form .url-label-center .input-narrow {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(234,246,252,0.06);
  border-radius: 10px;
  transition: box-shadow .18s ease, transform .12s ease;
}

/* the moving glow element (behind the input) */
#audit-form .url-label-center::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -8px;
  bottom: -8px;
  border-radius: 14px;
  background: linear-gradient(90deg,
    rgba(57,226,252,0.95) 0%,
    rgba(99,102,241,0.95) 35%,
    rgba(255,193,7,0.95) 70%,
    rgba(57,226,252,0.95) 100%);
  filter: blur(8px);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
  background-size: 300% 100%;
  animation: neonWave 3.2s linear infinite;
  transition: opacity .18s ease, filter .18s ease;
}

/* усиление эффекта при фокусе */
#audit-form .url-label-center:focus-within::before {
  opacity: 1;
  filter: blur(6px);
  animation-duration: 2s;
}

#audit-form .url-label-center:focus-within .input-narrow {
  box-shadow: 0 8px 30px rgba(57,226,252,0.06), 0 0 18px rgba(99,102,241,0.05);
  transform: translateY(-1px);
}

@keyframes neonWave {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* мобильная оптимизация */
@media (max-width: 480px) {
  #audit-form .url-label-center::before { filter: blur(6px); opacity: 0.5; animation-duration: 4s; left: -6px; right: -6px; top: -6px; bottom: -6px; border-radius: 12px; }
}
/* Cyan radial pulse for header — use class "neon-pulse" on .brand */
.brand.neon-pulse {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 12px;
  z-index: 1; /* контейнер выше фона */
}
.brand.neon-pulse .title {
  position: relative;
  z-index: 2; /* заголовок всегда над свечением */
}

.brand.neon-pulse::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: -12px;
  bottom: -12px;
  border-radius: 16px;
  background: radial-gradient(circle at center,
    rgba(57,226,252,0.55) 0%,
    rgba(57,226,252,0.30) 30%,
    rgba(57,226,252,0.12) 55%,
    transparent 80%);
  filter: blur(12px);
  opacity: 0.9;
  transform: scale(0.95);
  pointer-events: none;
  z-index: 0; /* между фоном и заголовком */
  animation: neonPulse 3.6s ease-in-out infinite;
  transition: filter .18s ease, opacity .18s ease;
}

/* Пульсация: масштаб + изменение прозрачности (медленная, плавная) */
@keyframes neonPulse {
  0%   { transform: scale(0.92); opacity: 0.9; }
  50%  { transform: scale(1.12); opacity: 0.28; }
  100% { transform: scale(0.92); opacity: 0.9; }
}

/* Reduced motion / mobile tweaks */
@media (prefers-reduced-motion: reduce) {
  .brand.neon-pulse::before { animation: none; filter: blur(8px); }
}
@media (max-width: 480px) {
  .brand.neon-pulse::before { left: -8px; right: -8px; top: -8px; bottom: -8px; filter: blur(8px); animation-duration: 4.2s; }
}

/* TEST: force neon pulse on .stopwatch-label (uses !important to rule out overrides) */
.stopwatch-label {
  position: relative !important;
  color: #bff9ff !important;
  animation: testNeonPulse 1.2s ease-in-out infinite !important;
  text-shadow: 0 0 6px rgba(57,226,252,0.6) !important;
}

/* keyframes */
@keyframes testNeonPulse {
  0%   { text-shadow: 0 0 6px rgba(57,226,252,0.5); opacity: 1; }
  50%  { text-shadow: 0 0 18px rgba(57,226,252,1); opacity: 1; }
  100% { text-shadow: 0 0 6px rgba(57,226,252,0.5); opacity: 1; }
}

/* disable for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .stopwatch-label { animation: none !important; text-shadow: none !important; }
}
/* Centered container and justified text with last line left-aligned */
.scan-top {
  display: block;
  max-width: 720px;        /* ширина блока текста */
  margin: 10px auto 12px;  /* центрирование блока по ширине страницы */
  padding: 0 12px;         /* небольшой внутренний отступ */
  text-align: center;      /* заголовок центрируем */
}

.scan-top .title {
  margin: 0 0 8px 0;
  font-family: var(--title-font);
  font-size: var(--h1-fontsize);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  /* анимация оставляем как было */
}

/* Основной параграф: равномерная выключка, но последняя строка — слева */
.scan-text {
  margin: 0;
  color: var(--text-color);
  font-family: var(--text-font);
  font-size: var(--text-l);
  line-height: 1.45;
  /* равномерная выключка */
  text-align: center;
  /* text-justify: inter-word; */
  /* -webkit-text-align-last: left;
  -moz-text-align-last: left;
  text-align-last: left; */
  /* чтобы параграф визуально был по центру, оставляем max-width у контейнера */
}

/* На узких экранах уменьшим размеры */
@media (max-width: 480px) {
  /* .scan-top .title { font-size: 28px; }
  .scan-text { font-size: 14px; max-width: 320px; } */
}
