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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  color: var(--text-primary);
  min-height: 100vh;
}

body.site-page {
  background: var(--bg-deep);
  padding: 28px max(20px, 4vw) 56px;
  overflow-x: hidden;
}

/* ============ Ambient background（与安装页一致的光晕渐变） ============ */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 720px 480px at 18% -5%, var(--mesh-a), transparent 72%),
    radial-gradient(ellipse 640px 520px at 82% 105%, var(--mesh-b), transparent 72%),
    radial-gradient(ellipse 480px 360px at 50% 45%, var(--mesh-c), transparent 80%);
}

/* ============ Layout ============ */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 768px) {
  .container {
    max-width: var(--content-max-wide);
    gap: 20px;
  }
}

/* ============ Entrance ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

body.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ============ Brand ============ */
.brand {
  text-align: center;
  padding: 8px 0 4px;
}

.brand-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-3);
  background: var(--highlight-bg);
  border: 1px solid var(--highlight-border);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.logo-ring {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  padding: 2px;
  box-shadow: var(--shadow-soft);
}

.logo-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.15;
  filter: blur(10px);
  z-index: -1;
}

.logo-ring .logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-name {
  margin: 0;
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============ Cards ============ */
.card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  pointer-events: none;
}

.card-hero {
  padding-top: 24px;
  padding-bottom: 22px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.section-tag--sm {
  font-size: 14px;
}

.section-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-cta);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}

.lines-block .section-tag-dot {
  animation: tagDotBreathe 2s ease-in-out infinite;
}

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

.section-head .card-desc--tight {
  margin: 4px 0 0;
}

.card-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============ Main access (lines primary) ============ */
.card-main {
  padding: 24px 20px;
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.main-head {
  margin-bottom: 18px;
}

.section-tag--hero {
  font-size: 18px;
  margin-bottom: 8px;
}

.card-desc--hero {
  margin-bottom: 0;
  font-size: 14px;
}

.web-desc-dual .card-desc--hero[hidden] {
  display: none;
}

.web-desc-dual .card-desc--hero {
  margin-top: 0;
}

.web-desc-dual .card-desc--hero + .card-desc--hero {
  margin-top: 6px;
}

.main-divider {
  height: 1px;
  margin: 22px 0 20px;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.2), transparent);
}

.lines-block .section-head {
  margin-bottom: 12px;
}

.lines-block .line-item {
  padding: 15px 16px;
}

.lines-block .line-latency {
  font-size: 18px;
}

/* ============ Entry card (永久网址 · 截图保存) ============ */
.card-entry {
  position: relative;
  padding: 22px 20px 20px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background:
    linear-gradient(165deg, rgba(37, 99, 235, 0.14) 0%, rgba(14, 165, 233, 0.06) 45%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.entry-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60a5fa, #38bdf8, transparent);
  pointer-events: none;
}

.entry-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.entry-label {
  margin: 0;
  font-size: clamp(17px, 4.5vw, 20px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--text-primary);
  text-shadow: 0 0 24px rgba(96, 165, 250, 0.35);
}

.entry-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0a1424;
  background: linear-gradient(135deg, #93c5fd, #38bdf8);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

.entry-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

.entry-stage {
  padding: clamp(14px, 3vw, 22px);
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 2px dashed rgba(96, 165, 250, 0.35);
  box-shadow: inset 0 0 32px rgba(37, 99, 235, 0.08);
}

.entry-domains-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

/* 单个域名：居中大字 */
.entry-domains-list--single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.entry-domains-list--single .entry-chip {
  width: 100%;
  max-width: 520px;
}

.entry-domains-list--single .entry-chip-row {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.entry-domains-list--single .entry-chip-url {
  text-align: center;
}

.entry-domains-list--single .entry-chip-host {
  font-size: clamp(22px, 5vw, 32px);
}

/* 多个域名：响应式网格卡片 */
.entry-domains-list--multi {
  grid-template-columns: 1fr;
}

.entry-empty,
.lines-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  padding: 12px;
}

.lines-empty {
  grid-column: unset;
  padding: 16px 12px;
}

.entry-chip {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147, 197, 253, 0.12);
  transition: border-color var(--transition), background var(--transition);
}

.entry-chip:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(96, 165, 250, 0.28);
}

.entry-chip-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.entry-chip-url {
  flex: 1;
  min-width: 0;
  text-align: left;
  cursor: pointer;
}

.entry-chip-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-3);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.entry-chip-host {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(17px, 3.5vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  word-break: break-all;
  background: var(--gradient-domain);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.entry-chip-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.entry-chip-copy,
.entry-chip-visit {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.entry-chip-copy {
  border: 1px solid var(--accent-border);
  color: var(--accent-3);
  background: var(--accent-bg);
}

.entry-chip-copy:hover {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.5);
}

.entry-chip-visit {
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #fff;
  background: var(--gradient-cta);
}

.entry-chip-visit:hover {
  filter: brightness(1.08);
}

.entry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-entry-action {
  width: 100%;
}

.entry-actions .btn-ghost {
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) {
  .entry-domains-list--multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .entry-domains-list--multi {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .card-entry {
    padding: 24px 28px 22px;
  }

  .entry-stage {
    padding: 20px 24px;
  }
}

@media (max-width: 479px) {
  .entry-chip-row {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-chip-url {
    text-align: center;
  }

  .entry-chip-actions {
    width: 100%;
    justify-content: center;
  }

  .entry-chip-copy,
  .entry-chip-visit {
    flex: 1;
    text-align: center;
  }

  .entry-actions {
    grid-template-columns: 1fr;
  }
}

/* ============ Buttons ============ */
.btn {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-icon {
  font-size: 1.1em;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-cta);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 13px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--glass-border-bright);
  color: var(--text-primary);
}

.btn-cta {
  position: relative;
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  border-radius: var(--radius-md);
  background: var(--gradient-cta);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-cta);
}

.btn-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-cta:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
  filter: brightness(1.06);
}

.cta-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}

.btn-cta:disabled .cta-shimmer {
  animation: none;
  opacity: 0;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.btn-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-pill:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
}

.btn-pill:disabled {
  opacity: 0.5;
  cursor: wait;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.retest-icon {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.btn-pill.testing .retest-icon {
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-tip {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}

/* ============ Lines ============ */
.lines-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.line-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  color: inherit;
}

.line-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-border);
  transform: translateX(3px);
}

.line-item.is-fastest {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  box-shadow: inset 3px 0 0 var(--accent-2);
}

.line-item.is-unreachable {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  opacity: 0.72;
  cursor: default;
}

.line-item.is-unreachable:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  transform: none;
  box-shadow: none;
}

.line-item.is-unreachable .line-name-text,
.line-item.is-unreachable .line-host {
  color: var(--text-faint);
}

.line-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.line-status-dot.testing {
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes dotBreathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2), 0 0 10px rgba(52, 211, 153, 0.4);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12), 0 0 18px rgba(52, 211, 153, 0.65);
  }
}

@keyframes tagDotBreathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.22), 0 0 8px rgba(56, 189, 248, 0.45);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 0 16px rgba(56, 189, 248, 0.65);
  }
}

.line-status-dot.fast {
  background: var(--fast);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.45);
}

.line-item.is-fastest .line-status-dot.fast {
  animation: dotBreathe 2s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25), 0 0 12px rgba(52, 211, 153, 0.5);
}

.line-status-dot.medium {
  background: var(--medium);
  box-shadow: none;
}

.line-status-dot.slow {
  background: var(--slow);
}

.line-status-dot.timeout,
.line-status-dot.unreachable {
  background: rgba(248, 113, 113, 0.35);
}

.line-name {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.line-host {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin-top: 3px;
  word-break: break-all;
}

.line-meta {
  text-align: right;
  min-width: 48px;
}

.line-latency {
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.line-latency.fast { color: var(--fast); }
.line-latency.medium { color: var(--medium); }
.line-latency.slow { color: var(--slow); }
.line-latency.timeout,
.line-latency.testing {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.line-latency.unreachable {
  color: #f87171;
  font-size: 12px;
  font-weight: 700;
}

.line-unit {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
}

.line-actions {
  display: flex;
  gap: 6px;
}

.btn-line {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-line-copy {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-line-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-line-visit {
  background: var(--accent-bg);
  color: var(--text-secondary);
  border: 1px solid var(--accent-border);
}

.btn-line-visit:hover {
  background: rgba(59, 130, 246, 0.22);
  color: var(--text-primary);
}

.fastest-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--gradient-cta);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-accent);
}

@media (max-width: 767px) {
  body.site-page {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  /* 手机端：测速入口优先于永久网址区 */
  .container {
    display: flex;
    flex-direction: column;
  }

  .container > .brand {
    order: 0;
  }

  .container > #access-section {
    order: 1;
  }

  .container > #permanent-section {
    order: 2;
  }

  .container > #download-section {
    order: 3;
  }

  .container > .footer {
    order: 4;
  }

  /* 手机端：CTA 下方紧跟线路列表（最快线路已排在首位） */
  .card-main {
    display: flex;
    flex-direction: column;
  }

  .card-main .lines-block {
    display: contents;
  }

  .card-main .main-head {
    order: 0;
  }

  .card-main #cta-fastest {
    order: 1;
  }

  .card-main .hero-tip {
    order: 2;
  }

  .card-main .lines-list {
    order: 3;
    margin-bottom: 4px;
  }

  .card-main .main-divider {
    order: 4;
    margin: 16px 0 14px;
  }

  .card-main .lines-block .section-head {
    order: 5;
  }

  .card-main .line-item.is-fastest {
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(96, 165, 250, 0.35);
  }
}

@media (max-width: 480px) {
  .line-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .line-meta {
    grid-column: 2;
    text-align: left;
  }

  .line-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* ============ Download ============ */
.download-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.download-platform {
  font-size: 15px;
  font-weight: 700;
}

.download-version {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============ Footer ============ */
.footer {
  text-align: center;
  padding: 20px 8px 4px;
}

.footer-domain {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.footer-domain strong {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-2);
}

.footer-links {
  margin: 14px 0 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links[hidden] {
  display: none;
}

.footer-links-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.footer-links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.footer-link-item {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link-item:hover {
  color: var(--accent-3);
}

.copyright {
  font-size: 11px;
  color: var(--text-faint);
  margin: 0;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(16px) scale(0.96);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  color: var(--text-primary);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--glass-border-bright);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  z-index: 200;
  max-width: min(340px, calc(100vw - 36px));
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .cta-shimmer,
  .line-status-dot.testing,
  .line-item.is-fastest .line-status-dot.fast,
  .lines-block .section-tag-dot {
    animation: none !important;
    transition: none !important;
  }

  body.is-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
