/* ============================================================
   WILDWATCH · 野排记录站
   Dark tactical UI / orange signal accent
   ============================================================ */

:root {
  --bg: #070a0f;
  --bg-soft: #0a0f17;
  --panel: #0e1520;
  --panel-2: #121b28;
  --panel-3: #172231;
  --line: rgba(151, 170, 197, 0.13);
  --line-strong: rgba(151, 170, 197, 0.26);
  --text: #f3f6fa;
  --text-soft: #c6d0dd;
  --muted: #8d9bb0;
  --muted-2: #5d6a7d;
  --accent: #ff6b2c;
  --accent-bright: #ff8c54;
  --accent-soft: rgba(255, 107, 44, 0.12);
  --accent-line: rgba(255, 107, 44, 0.38);
  --success: #38e0a1;
  --success-soft: rgba(56, 224, 161, 0.1);
  --danger: #ff4d63;
  --danger-soft: rgba(255, 77, 99, 0.1);
  --warning: #ffb020;
  --cyan: #64d8ff;
  --font-display: "Bahnschrift", "DIN Alternate", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --header-h: 78px;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(255, 107, 44, 0.32);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

h1, h2, h3, h4, p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Atmosphere ---------- */

.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(255, 107, 44, 0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 38%, rgba(100, 216, 255, 0.045), transparent 60%),
    linear-gradient(180deg, #070a0f 0%, #070a0f 45%, #080c12 100%);
}

.atmo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(151, 170, 197, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 170, 197, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 65% at 55% 10%, #000 20%, transparent 78%);
  opacity: 0.65;
}

.atmo-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.atmo-glow-a {
  width: 460px;
  height: 460px;
  right: -160px;
  top: 120px;
  background: rgba(255, 107, 44, 0.13);
}

.atmo-glow-b {
  width: 360px;
  height: 360px;
  left: -180px;
  top: 540px;
  background: rgba(100, 216, 255, 0.08);
}

.atmo-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
  opacity: 0.5;
}

/* ---------- Shared type ---------- */

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.mobile-break { display: none; }

.section {
  padding: 66px 0;
  position: relative;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-head p {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.section-head-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

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

.btn:active {
  transform: translateY(0);
}

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

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0d12;
  box-shadow: 0 10px 30px rgba(255, 107, 44, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 14px 38px rgba(255, 107, 44, 0.3);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: rgba(255, 107, 44, 0.5);
  background: var(--accent-soft);
  color: var(--text);
}

.btn-quiet {
  min-height: 38px;
  padding: 0 14px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 12px;
}

.btn-quiet:hover {
  border-color: var(--accent-line);
  color: var(--text);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: 0.2s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--accent-line);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(7, 10, 15, 0.7);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(130%);
  transition: background 0.25s, border-color 0.25s;
}

.site-header.is-scrolled {
  background: rgba(7, 10, 15, 0.92);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
  background: rgba(255, 107, 44, 0.08);
  border: 1px solid rgba(255, 107, 44, 0.2);
  border-radius: 8px;
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 14px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s;
}

.main-nav a span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a.active span {
  color: var(--accent);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(56, 224, 161, 0.8);
  animation: pulse 2s infinite;
}

.header-cta {
  min-height: 37px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* ---------- Demo banner ---------- */

.demo-banner {
  position: relative;
  z-index: 40;
  background: rgba(255, 176, 32, 0.07);
  border-bottom: 1px solid rgba(255, 176, 32, 0.16);
}

.demo-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  color: #e9c98a;
  font-size: 12px;
}

.demo-banner p {
  flex: 1;
}

.demo-banner a {
  color: var(--warning);
  font-weight: 700;
  white-space: nowrap;
}

.demo-tag {
  padding: 2px 7px;
  border: 1px solid rgba(255, 176, 32, 0.4);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.trial-banner {
  position: relative;
  z-index: 39;
  border-bottom: 1px solid rgba(100, 216, 255, 0.12);
  background: rgba(100, 216, 255, 0.035);
}

.trial-banner-inner {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 34px;
  color: #8faab7;
  font-size: 11px;
}

.trial-banner p { flex: 1; }
.trial-banner a { color: var(--cyan); white-space: nowrap; font-size: 10px; }

.trial-tag {
  padding: 2px 7px;
  border: 1px solid rgba(100, 216, 255, 0.28);
  border-radius: 3px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  padding: 74px 0 58px;
  min-height: 590px;
}

.hero-copy {
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hero-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 107, 44, 0.8);
}

.hero h1 {
  margin: 22px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.3vw, 86px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  display: inline-block;
  color: var(--accent);
  font-style: normal;
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 0;
  bottom: 2px;
  height: 10px;
  background: rgba(255, 107, 44, 0.16);
  z-index: -1;
}

.hero-lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-lead strong {
  color: var(--text-soft);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions .btn {
  min-height: 50px;
  padding-inline: 26px;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .icon {
  width: 13px;
  height: 13px;
  color: var(--success);
}

/* ---------- Scanner visual ---------- */

.scanner {
  position: relative;
  width: 100%;
  max-width: 510px;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: fadeUp 0.8s 0.12s var(--ease) both;
}

.scanner::before,
.scanner::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 2;
}

.scanner::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.scanner::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.scanner-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.scanner-dots {
  display: flex;
  gap: 5px;
}

.scanner-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}

.scanner-dots i:first-child { background: var(--accent); }

.scanner-title {
  margin-left: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.scanner-top .scan-state {
  margin-left: auto;
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.scanner-body {
  position: relative;
  padding: 20px 22px 18px;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 44, 0.8), transparent);
  box-shadow: 0 0 18px rgba(255, 107, 44, 0.38);
  animation: scanDown 5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.scanner-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.scanner-target-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
}

.scanner-target-name {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.scanner-target-number {
  margin-top: 2px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
}

.flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 77, 99, 0.35);
  border-radius: 3px;
  background: var(--danger-soft);
  color: #ff8090;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.scanner-main {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 0 18px;
}

.gauge {
  position: relative;
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
}

.gauge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent) var(--angle, 0deg), rgba(151, 170, 197, 0.12) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  transform: rotate(0deg);
}

.gauge::before {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.04), transparent 70%);
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gauge-value {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.gauge-label {
  margin-top: 5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.scanner-metrics {
  flex: 1;
  display: grid;
  gap: 13px;
}

.metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.metric-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.metric-row span {
  color: var(--muted);
  font-size: 11px;
}

.metric-row b {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
}

.metric-row b.alert {
  color: var(--accent);
}

.scanner-verdict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 77, 99, 0.2);
  border-left: 2px solid var(--danger);
  background: linear-gradient(90deg, rgba(255, 77, 99, 0.08), transparent);
}

.scanner-verdict .v-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.scanner-verdict .v-value {
  margin-top: 2px;
  color: #ff8d9a;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.scanner-verdict .v-rate {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.scanner-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.scanner-foot .ok {
  color: var(--success);
}

/* ---------- Stats strip ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.stat {
  position: relative;
  padding: 22px 26px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-label .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-value small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.stat-value.accent { color: var(--accent); }
.stat-value.success { color: var(--success); }

/* ---------- Toolbar ---------- */

.wall-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box .icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.04);
}

.search-clear {
  position: absolute;
  right: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.search-clear.visible { display: inline-flex; }

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrap select {
  height: 44px;
  min-width: 142px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text-soft);
  font-size: 12px;
  appearance: none;
  cursor: pointer;
}

.select-wrap .icon {
  position: absolute;
  right: 12px;
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}

.result-count {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.result-count b {
  color: var(--text-soft);
  font-weight: 600;
}

/* ---------- Player cards ---------- */

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.player-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 107, 44, 0.055), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 42%),
    var(--panel);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.45s var(--ease) both;
}

.player-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 65%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.player-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(151, 170, 197, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.player-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.player-card:hover::before {
  transform: scaleX(1);
}

.card-top {
  display: grid;
  grid-template-columns: 24px 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.rank {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  align-self: start;
  padding-top: 3px;
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background:
    linear-gradient(145deg, hsl(var(--hue, 24) 48% 25%), hsl(var(--hue, 24) 38% 12%));
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 45%);
}

.avatar .status-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--panel);
  border-radius: 50%;
  background: var(--danger);
  z-index: 1;
}

.identity {
  min-width: 0;
}

.identity h3 {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.number-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.number-text {
  overflow: hidden;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.masked-note {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  white-space: nowrap;
}

.copy-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted-2);
  font-size: 8.5px;
  transition: 0.2s;
  flex: 0 0 auto;
}

.copy-number:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cyan);
}

.copy-number .icon {
  width: 11px;
  height: 11px;
}

.rate-block {
  text-align: right;
}

.rate-value {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rate-value small {
  font-size: 12px;
  font-weight: 600;
  margin-left: 1px;
}

.rate-label {
  margin-top: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.rate-track {
  position: relative;
  height: 4px;
  margin: 19px 0 14px;
  border-radius: 2px;
  background: rgba(151, 170, 197, 0.12);
  overflow: visible;
}

.rate-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--bar, 0%);
  max-width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--warning), var(--accent) 58%, var(--danger));
}

.threshold-mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 66.66%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.threshold-mark::after {
  content: "10%";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-stat {
  min-width: 0;
}

.card-stat b {
  display: block;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.card-stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  margin-top: auto;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.card-meta .dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--muted-2);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--accent);
}

.card-link .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.card-link:hover .icon {
  transform: translateX(2px);
}

.demo-chip {
  display: inline-flex;
  padding: 1px 5px;
  border: 1px solid rgba(255, 176, 32, 0.25);
  border-radius: 3px;
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

/* ---------- Skeleton / empty ---------- */

.card-skeleton {
  height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.045) 40%, transparent 60%),
    var(--panel);
  background-size: 200% 100%, auto;
  animation: shimmer 1.5s infinite linear;
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 42px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.empty-icon .icon {
  width: 24px;
  height: 24px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 20px;
}

.empty-state p {
  max-width: 380px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state .btn {
  margin-top: 20px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* ---------- Rules teaser ---------- */

.rules-teaser {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 130% at 0% 0%, rgba(255, 107, 44, 0.11), transparent 55%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.025), transparent 50%),
    var(--panel);
  overflow: hidden;
}

.rules-teaser::after {
  content: "10%";
  position: absolute;
  right: 28px;
  top: -30px;
  color: rgba(255, 107, 44, 0.055);
  font-family: var(--font-display);
  font-size: 240px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.threshold-display {
  position: relative;
  z-index: 1;
}

.threshold-display .big {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(75px, 9vw, 126px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.threshold-display .big sup {
  margin-top: 12px;
  font-size: 30px;
  letter-spacing: 0;
}

.threshold-display p {
  max-width: 250px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.teaser-copy {
  position: relative;
  z-index: 1;
}

.teaser-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.teaser-copy > p {
  max-width: 560px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.teaser-step {
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}

.teaser-step b {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.teaser-step h4 {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
}

.teaser-step p {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.6;
}

/* ---------- Page hero ---------- */

.page-hero {
  padding: 62px 0 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.breadcrumb a:hover { color: var(--text); }

.breadcrumb .sep { color: var(--muted-2); }

.page-hero h1 {
  max-width: 900px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.page-hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.page-lead {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.page-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-hero-meta .icon {
  width: 13px;
  height: 13px;
  color: var(--success);
}

/* ---------- Stepper ---------- */

.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 28px 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 14px 18px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}

.step-pill + .step-pill {
  border-left: 1px solid var(--line);
}

.step-pill b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.step-pill.active {
  color: var(--text);
  background: rgba(255, 107, 44, 0.04);
}

.step-pill.active b {
  border-color: var(--accent);
  background: var(--accent);
  color: #0a0d12;
}

.step-pill.done b {
  border-color: rgba(56, 224, 161, 0.5);
  background: rgba(56, 224, 161, 0.1);
  color: var(--success);
}

/* ---------- Submit layout ---------- */

.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
  padding-bottom: 72px;
}

.upload-stack {
  display: grid;
  gap: 18px;
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 38%), var(--panel);
}

.upload-card {
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.step-badge {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border: 1px solid var(--accent-line);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.panel-head h2,
.panel-head h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.panel-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.required-chip {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.dropzone {
  position: relative;
  display: block;
  min-height: 212px;
  border: 1.5px dashed rgba(151, 170, 197, 0.25);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
    rgba(0, 0, 0, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: rgba(255, 107, 44, 0.55);
  background: rgba(255, 107, 44, 0.035);
}

.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 208px;
  padding: 26px;
  text-align: center;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  transition: transform 0.24s var(--ease), border-color 0.2s;
}

.dropzone:hover .drop-icon {
  transform: translateY(-2px);
  border-color: var(--accent-line);
}

.drop-icon .icon {
  width: 23px;
  height: 23px;
}

.drop-empty strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.drop-empty span {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
}

.drop-empty small {
  margin-top: 12px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.drop-preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 208px;
  background: #05080c;
}

.drop-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) contrast(1.03);
}

.preview-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 15px rgba(255, 107, 44, 0.6);
  animation: scanDown 3.4s linear infinite;
  opacity: 0;
}

.dropzone.is-scanning .preview-scanline {
  opacity: 1;
}

.preview-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(7, 10, 15, 0.72);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.preview-badge .icon {
  width: 11px;
  height: 11px;
  color: var(--success);
}

.preview-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.preview-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(7, 10, 15, 0.76);
  color: var(--text-soft);
  font-size: 9.5px;
  backdrop-filter: blur(8px);
}

.preview-action:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

.preview-action .icon {
  width: 12px;
  height: 12px;
}

.upload-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: 0 0 auto;
}

.upload-status.scanning { color: var(--warning); }
.upload-status.scanning .status-dot {
  background: var(--warning);
  animation: pulse 1s infinite;
}

.upload-status.success { color: var(--success); }
.upload-status.success .status-dot { background: var(--success); }

.upload-status.error { color: var(--danger); }
.upload-status.error .status-dot { background: var(--danger); }

.upload-status .conf {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.ocr-warning {
  margin-top: 9px;
  padding: 8px 10px;
  border-left: 2px solid var(--warning);
  background: rgba(255, 176, 32, 0.06);
  color: #d7b578;
  font-size: 10.5px;
  line-height: 1.6;
}

.ocr-warning ul {
  display: grid;
  gap: 2px;
}

/* ---------- Form ---------- */

.form-card {
  padding: 22px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.field label .tag {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.field label .tag.ocr {
  border-color: rgba(100, 216, 255, 0.25);
  color: var(--cyan);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}

.field input {
  height: 43px;
  padding: 0 12px;
}

.field textarea {
  min-height: 82px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  background: rgba(0, 0, 0, 0.26);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: rgba(255, 77, 99, 0.65);
}

.field input.mono-input {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.field-hint {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.5;
}

.field-error {
  margin-top: 5px;
  color: var(--danger);
  font-size: 9.5px;
}

.form-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}

.checkmark::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #0b0f15;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s;
}

.checkbox-row input:checked + .checkmark {
  border-color: var(--accent);
  background: var(--accent);
}

.checkbox-row input:checked + .checkmark::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-row input:focus-visible + .checkmark {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox-text {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.checkbox-text a {
  color: var(--text-soft);
  border-bottom: 1px solid var(--line-strong);
}

.submit-error {
  display: none;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 77, 99, 0.25);
  border-radius: 7px;
  background: var(--danger-soft);
  color: #ff9aa6;
  font-size: 11px;
  line-height: 1.6;
}

.submit-error.visible {
  display: block;
}

/* ---------- Verdict panel ---------- */

.verdict-panel {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(255, 107, 44, 0.06), transparent 40%),
    var(--panel);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.verdict-panel[data-state="pass"] {
  border-color: rgba(56, 224, 161, 0.36);
  box-shadow: 0 0 0 1px rgba(56, 224, 161, 0.06), 0 22px 54px rgba(0, 0, 0, 0.3);
}

.verdict-panel[data-state="fail"] {
  border-color: rgba(255, 77, 99, 0.35);
}

.verdict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.verdict-head h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.verdict-head h3 .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.verdict-head .live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.verdict-body {
  padding: 18px;
}

.formula {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.7;
  text-align: center;
}

.formula b {
  color: var(--text-soft);
  font-weight: 600;
}

.formula .lt {
  color: var(--accent);
  font-weight: 700;
}

.verdict-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.verdict-rate-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.verdict-rate {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 47px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.verdict-rate small {
  margin-left: 2px;
  font-size: 17px;
  font-weight: 600;
}

.verdict-rate .rate-empty {
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.verdict-panel[data-state="pass"] .verdict-rate { color: var(--success); }
.verdict-panel[data-state="fail"] .verdict-rate { color: var(--danger); }

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.verdict-panel[data-state="pass"] .verdict-badge {
  border-color: rgba(56, 224, 161, 0.35);
  background: var(--success-soft);
  color: var(--success);
}

.verdict-panel[data-state="fail"] .verdict-badge {
  border-color: rgba(255, 77, 99, 0.35);
  background: var(--danger-soft);
  color: #ff8d9a;
}

.threshold-track {
  position: relative;
  height: 7px;
  margin: 17px 0 7px;
  border-radius: 4px;
  background: rgba(151, 170, 197, 0.12);
  overflow: visible;
}

.threshold-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  max-width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--success), var(--warning) 60%, var(--danger));
  transition: width 0.35s var(--ease);
}

.threshold-marker {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 66.66%;
  width: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.threshold-marker::after {
  content: "10% 阈值";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  white-space: nowrap;
}

.threshold-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
}

.verdict-message {
  min-height: 58px;
  margin-top: 15px;
  padding: 11px 12px;
  border-left: 2px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.verdict-panel[data-state="pass"] .verdict-message {
  border-left-color: var(--success);
  background: rgba(56, 224, 161, 0.045);
  color: #9bd8bd;
}

.verdict-panel[data-state="fail"] .verdict-message {
  border-left-color: var(--danger);
  background: rgba(255, 77, 99, 0.045);
  color: #d9a0a8;
}

.verdict-message strong {
  color: var(--text-soft);
}

.verdict-actions {
  padding: 0 18px 18px;
}

.verdict-actions .btn {
  min-height: 48px;
}

.verdict-actions .btn-primary:disabled {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--muted-2);
  box-shadow: none;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 11px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.55;
}

.privacy-note .icon {
  width: 11px;
  height: 11px;
  margin-top: 1px;
}

/* ---------- Detail page ---------- */

.detail-wrap {
  padding: 42px 0 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text); }

.back-link .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.detail-avatar {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  font-size: 34px;
}

.detail-identity {
  min-width: 0;
  flex: 1;
}

.detail-identity .detail-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.detail-identity h1 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.detail-number {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
}

.copy-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
}

.copy-inline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.copy-inline .icon { width: 11px; height: 11px; }

.detail-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.endorse-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 11px;
}

.endorse-btn:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}

.endorse-btn .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.endorse-btn:disabled {
  cursor: default;
  opacity: 0.55;
}

.detail-actions small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.verdict-summary {
  padding: 24px;
}

.verdict-summary .summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.summary-rate {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--success);
}

.summary-rate small {
  font-size: 20px;
  font-weight: 600;
}

.summary-copy h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.summary-copy p {
  max-width: 420px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(56, 224, 161, 0.3);
  border-radius: 4px;
  background: var(--success-soft);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.summary-stat {
  padding: 13px;
  background: var(--panel);
}

.summary-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}

.summary-stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

.side-card {
  padding: 20px;
}

.side-card h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.side-card h3 .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.side-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.side-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.side-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-item span {
  color: var(--muted);
  font-size: 10.5px;
}

.side-item b {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.side-note {
  margin-top: 14px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.65;
}

.evidence-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.evidence-card {
  overflow: hidden;
}

.evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.evidence-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.evidence-head h3 .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.evidence-date {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.evidence-body {
  padding: 16px 18px 18px;
}

.evidence-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.evidence-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #05080c;
  overflow: hidden;
  cursor: zoom-in;
}

.evidence-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 0.35s var(--ease), filter 0.2s;
}

.evidence-figure:hover img {
  transform: scale(1.015);
  filter: brightness(1);
}

.evidence-figure figcaption {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  background: rgba(7, 10, 15, 0.72);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}

.evidence-meta b {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-weight: 500;
}

.evidence-note {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.evidence-locked {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
}

.evidence-locked > .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--accent);
}

.evidence-locked strong {
  display: block;
  color: var(--text-soft);
  font-size: 11.5px;
}

.evidence-locked p {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.6;
}

.evidence-note span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  margin-right: 6px;
}

/* ---------- Rules ---------- */

.rules-wrap {
  padding-bottom: 80px;
}

.rule-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-top: 24px;
}

.rule-card {
  padding: 26px;
}

.rule-card h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rule-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.formula-block {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(255, 107, 44, 0.07), transparent 65%),
    rgba(0, 0, 0, 0.16);
  text-align: center;
}

.formula-block .formula-line {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.4vw, 16px);
  color: var(--text-soft);
  line-height: 1.8;
}

.formula-block .formula-line b {
  color: var(--accent);
}

.formula-block .formula-note {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 10px;
}

.example-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 11.5px;
}

.example-table th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
}

.example-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}

.example-table td.mono {
  font-size: 11px;
}

.verdict-pass {
  color: var(--success);
  font-weight: 600;
}

.verdict-fail {
  color: var(--danger);
  font-weight: 600;
}

.rule-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.rule-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.rule-list .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--success);
  flex: 0 0 auto;
}

.rule-list.warn .icon {
  color: var(--warning);
}

.rule-list strong {
  color: var(--text-soft);
  font-weight: 600;
}

.faq {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.2s;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq .faq-answer {
  padding: 0 15px 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.highlight-card {
  border-color: rgba(255, 107, 44, 0.25);
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(255, 107, 44, 0.09), transparent 55%),
    var(--panel);
}

.rule-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(255, 107, 44, 0.09), transparent 60%), var(--panel);
}

.rule-cta h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.rule-cta p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  padding: 42px 0 34px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.footer-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.footer-links {
  display: flex;
  gap: 70px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links h4 {
  margin-bottom: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a,
.footer-links span {
  color: var(--muted);
  font-size: 11px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9.5px;
}

.footer-build {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.footer-build .sep { opacity: 0.5; margin: 0 5px; }

/* ---------- Toast ---------- */

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 140;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100% - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--success);
  border-radius: 8px;
  background: rgba(14, 21, 32, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.45;
  backdrop-filter: blur(12px);
  pointer-events: auto;
  animation: toastIn 0.28s var(--ease) both;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.info {
  border-left-color: var(--cyan);
}

.toast .icon {
  width: 15px;
  height: 15px;
  color: var(--success);
}

.toast.error .icon { color: var(--danger); }
.toast.info .icon { color: var(--cyan); }

/* ---------- Modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 10, 0.72);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease both;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(86vh, 880px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 107, 44, 0.08), transparent 45%),
    var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.3s var(--ease) both;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(7, 10, 15, 0.5);
  color: var(--muted);
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.modal-body {
  padding: 30px;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  border: 1px solid rgba(56, 224, 161, 0.35);
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.result-icon.fail {
  border-color: rgba(255, 77, 99, 0.35);
  background: var(--danger-soft);
  color: var(--danger);
}

.result-icon .icon {
  width: 26px;
  height: 26px;
}

.result-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.modal h2 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.modal-lead {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.result-card {
  margin-top: 19px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
}

.result-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.result-name strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.result-rate {
  color: var(--success);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
}

.result-rate.fail { color: var(--danger); }

.result-number-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.result-number-row span {
  color: var(--muted-2);
  font-size: 9px;
}

.result-number {
  flex: 1;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.03em;
}

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

.modal-stat {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}

.modal-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.modal-stat span {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 8px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
  min-width: 130px;
}

.modal-footnote {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
}

/* Lightbox */

.lightbox {
  width: min(1100px, 100%);
  max-height: 90vh;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.lightbox .modal-body {
  padding: 0;
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #05080c;
}

.lightbox-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.lightbox-cap .mono { color: var(--muted-2); }

/* ---------- Boot / misc ---------- */

.boot-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.boot-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  color: var(--accent);
  animation: pulse 1.8s infinite;
}

.boot-mark .icon { width: 24px; height: 24px; }

.noscript {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  padding: 14px;
  border: 1px solid var(--danger);
  background: #1a0d10;
  color: #ffb3bc;
  font-size: 12px;
  text-align: center;
}

.section-tight { padding-top: 0; }

.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Removal appeal ---------- */

.appeal-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.appeal-icon .icon { width: 22px; height: 22px; }

.appeal-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.16);
}

.appeal-target span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.appeal-target code {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
}

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

.appeal-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.35;
  border: 1.5px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
  cursor: pointer;
}

.appeal-slot:hover { border-color: var(--accent-line); }

.appeal-slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.appeal-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.appeal-slot .appeal-plus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent);
}

.appeal-slot .appeal-plus .icon { width: 15px; height: 15px; }

.appeal-slot small {
  color: var(--muted-2);
  font-size: 8px;
}

.appeal-slot.has-image {
  border-style: solid;
  border-color: rgba(56, 224, 161, 0.36);
}

.appeal-slot.has-image small {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(7, 10, 15, 0.7);
  color: var(--success);
}

.appeal-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 8px;
}

.appeal-hint #appeal-count {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  white-space: nowrap;
}

/* ---------- Animations ---------- */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes scanDown {
  0% { top: 6%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 94%; opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes shimmer {
  from { background-position: 200% 0, 0 0; }
  to { background-position: -200% 0, 0 0; }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(46px, 6vw, 70px);
  }

  .wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 55;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 15, 0.98);
    backdrop-filter: blur(18px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s var(--ease);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .main-nav a::after { display: none; }

  .menu-toggle { display: inline-flex; }

  .live-pill { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    min-height: 0;
  }

  .scanner {
    max-width: 100%;
    justify-self: stretch;
    order: 2;
  }

  .hero-copy { order: 1; }

  .rules-teaser {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px;
  }

  .threshold-display p { max-width: none; }

  .submit-layout {
    grid-template-columns: 1fr;
  }

  .verdict-panel {
    position: static;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

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

  .footer-main {
    gap: 30px;
  }

  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  :root {
    --header-h: 70px;
  }

  .header-inner { gap: 12px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 7px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .header-cta { display: none; }

  .hero {
    padding: 40px 0 40px;
    gap: 34px;
  }

  .hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 12vw, 64px);
  }

  .hero-lead { font-size: 14px; }

  .hero-actions .btn {
    min-height: 46px;
    padding-inline: 20px;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px;
  }

  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }

  .stat-value { font-size: 27px; }

  .section { padding: 46px 0; }

  .section-head {
    display: block;
    margin-bottom: 20px;
  }

  .section-head p { margin-top: 10px; }

  .wall-toolbar {
    grid-template-columns: 1fr auto;
  }

  .wall-toolbar .result-count {
    grid-column: 1 / -1;
    order: 3;
  }

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

  .rules-teaser { padding: 24px; }
  .teaser-steps { grid-template-columns: 1fr; gap: 8px; }
  .teaser-step { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; }
  .teaser-step b { grid-row: span 2; padding-top: 2px; }
  .teaser-step p { margin-top: 0; }

  .page-hero { padding: 42px 0 20px; }
  .breadcrumb { margin-bottom: 18px; }
  .mobile-break { display: block; }

  .stepper {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }

  .stepper .step-pill {
    padding: 9px 12px;
    border-left: 0 !important;
    border-top: 1px solid var(--line);
  }

  .stepper .step-pill:first-child { border-top: 0; }

  .upload-card, .form-card { padding: 16px; }

  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }

  .dropzone { min-height: 180px; }
  .drop-empty { min-height: 176px; padding: 18px; }

  .detail-wrap { padding-top: 26px; }
  .detail-hero {
    flex-wrap: wrap;
    gap: 15px;
  }

  .detail-avatar {
    width: 68px;
    height: 68px;
    font-size: 26px;
    border-radius: 13px;
  }

  .detail-actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .detail-side { grid-template-columns: 1fr; }

  .summary-stats { grid-template-columns: 1fr 1fr; }
  .evidence-images { grid-template-columns: 1fr; }

  .rule-card { padding: 20px; }

  .rule-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .footer-main { flex-direction: column; }
  .footer-links { width: 100%; justify-content: space-between; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  .toast-region {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .modal-backdrop { padding: 14px; align-items: flex-end; }
  .modal { border-radius: 14px 14px 0 0; max-height: 90vh; }
  .modal-body { padding: 24px 20px; }
  .modal h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .hero-meta { gap: 11px; font-size: 9px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .trial-banner-inner {
    flex-wrap: wrap;
    gap: 5px 8px;
    padding: 5px 0;
    font-size: 9.5px;
  }
  .trial-banner p { flex: 1 1 100%; order: 3; }
  .trial-banner a { display: none; }

  .scanner-body { padding: 16px; }
  .scanner-main { gap: 14px; }
  .gauge { width: 112px; height: 112px; }
  .gauge-value { font-size: 26px; }
  .scanner-target-name { font-size: 17px; }

  .card-top {
    grid-template-columns: 20px 46px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .avatar { width: 46px; height: 46px; }

  .rate-value { font-size: 24px; }

  .submit-layout { gap: 16px; }

  .verdict-summary { padding: 18px; }
  .summary-rate { font-size: 48px; }
  .summary-top { flex-direction: column; gap: 10px; }
}
