/* "Analysis run" console + step reveals (site/scan.js) */
.pgs { position: relative; overflow: hidden; border: 1px solid rgba(93,143,240,.35); border-radius: 12px; padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(10,16,26,.92), rgba(8,11,16,.94)); box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.02);
  font: 500 14px/1.5 ui-monospace, Menlo, monospace; color: #cfd9ea; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pgs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; letter-spacing: .12em; font-size: 12px; color: #8fb0ea; }
.pgs-head b { font-weight: 700; }
.pgs-dot { width: 8px; height: 8px; border-radius: 50%; background: #46c47e; box-shadow: 0 0 10px #46c47e; animation: pgs-blink 1s steps(2) infinite; }
.pgs-done .pgs-dot { animation: none; }
@keyframes pgs-blink { 50% { opacity: .25; } }
.pgs-skip { margin-left: auto; font: 600 12px/1 var(--body, sans-serif); letter-spacing: 0; color: #9fb0c8; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.pgs-done .pgs-skip { visibility: hidden; }
.pgs-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pgs-lines li { display: flex; justify-content: space-between; gap: 12px; opacity: .28; transition: opacity .2s; }
.pgs-lines li::before { content: '›'; color: #5d8ff0; margin-right: 8px; }
.pgs-lines li.run, .pgs-lines li.ok { opacity: 1; }
.pgs-t { flex: 1; }
.pgs-n { font-style: normal; color: #fff; font-weight: 700; }
.pgs-st { width: 16px; text-align: right; }
.pgs-lines li.run .pgs-st::after { content: ''; display: inline-block; width: 10px; height: 10px; border: 2px solid #5d8ff0; border-right-color: transparent;
  border-radius: 50%; animation: pgs-spin .7s linear infinite; }
.pgs-lines li.ok .pgs-st::after { content: '✓'; color: #46c47e; font-weight: 700; }
@keyframes pgs-spin { to { transform: rotate(360deg); } }
.pgs-bar { height: 3px; margin-top: 14px; background: rgba(150,170,200,.15); border-radius: 2px; overflow: hidden; }
.pgs-bar i { display: block; height: 100%; background: linear-gradient(90deg, #5d8ff0, #46c47e); transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }
.pgs-pct { position: absolute; right: 18px; bottom: 22px; font-size: 11px; color: #8fb0ea; }
.pgs-sweep { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; pointer-events: none; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(93,143,240,.22), rgba(93,143,240,0) 22%, transparent 100%); animation: pgs-spin 1.6s linear infinite; }
.pgs-done .pgs-sweep { opacity: 0; transition: opacity .4s; }

/* steps: hidden only once scan.js has armed the area, so a script failure never hides content */
.pgs-armed [data-step] { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.pgs-armed [data-step].pgs-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pgs-armed [data-step] { transform: none; transition: opacity .2s; }
}

/* full-screen opening (PGScan.full) */
.pgs-lock, .pgs-lock body { overflow: hidden; }
.pgs-full { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(120% 90% at 50% 40%, #0d1626 0%, #070a10 70%); color: #e7ecf3;
  transition: opacity .55s ease, transform .65s cubic-bezier(.7,0,.2,1); }
.pgs-full.out { opacity: 0; transform: translateY(-4%); pointer-events: none; }
.pgs-full-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pgs-full-bg i { position: absolute; display: block; }
.pgs-grid { inset: -10%; background-image: linear-gradient(rgba(93,143,240,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(93,143,240,.08) 1px, transparent 1px);
  background-size: 48px 48px; transform: perspective(700px) rotateX(58deg) translateY(18%); transform-origin: 50% 100%;
  mask-image: linear-gradient(transparent, #000 45%, #000 80%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 45%, #000 80%, transparent);
  animation: pgs-grid 6s linear infinite; }
@keyframes pgs-grid { to { background-position: 0 48px, 0 0; } }
.pgs-ring { left: 50%; top: 50%; width: min(120vmin, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(93,143,240,.18); box-shadow: inset 0 0 0 80px rgba(93,143,240,.015), 0 0 0 1px rgba(93,143,240,.06);
  background: repeating-radial-gradient(circle, transparent 0 79px, rgba(93,143,240,.09) 79px 80px); }
.pgs-beam { left: 50%; top: 50%; width: min(120vmin, 1100px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, rgba(93,143,240,.28), rgba(93,143,240,0) 16%, transparent 100%); animation: pgs-beam 2.4s linear infinite; }
@keyframes pgs-beam { to { transform: translate(-50%, -50%) rotate(360deg); } }
.pgs-scanline { left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, rgba(143,176,234,.9), transparent);
  box-shadow: 0 0 24px rgba(93,143,240,.8); animation: pgs-scan 2.2s linear infinite; }
@keyframes pgs-scan { from { top: -2%; } to { top: 102%; } }
.pgs-full-in { position: relative; width: min(720px, 100%); }
.pgs-brand { margin: 0; font: 900 22px/1 var(--display, sans-serif); letter-spacing: .06em; color: #fff; }
.pgs-brand b { color: #e9a23b; } .pgs-brand span { margin-left: 12px; font: 700 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .3em; color: #8fb0ea; }
.pgs-who { margin: 14px 0 0; font-size: clamp(16px, 2vw, 20px); color: #c6cfdb; }
.pgs-big { margin: 6px 0 18px; font: 900 clamp(96px, 18vw, 200px)/.9 var(--display, sans-serif); color: #fff; letter-spacing: -.01em;
  text-shadow: 0 0 40px rgba(93,143,240,.45); font-variant-numeric: tabular-nums; }
.pgs-big span { font-size: .35em; color: #5d8ff0; margin-left: 6px; }
.pgs-full .pgs { font-size: 15px; background: rgba(8,12,20,.82); }
.pgs-full .pgs-sweep { display: none; }
@media (max-width: 520px) { .pgs-full { align-items: flex-end; padding: 16px 16px 28px; } .pgs-full .pgs { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .pgs-grid, .pgs-beam, .pgs-scanline { animation: none; } .pgs-beam, .pgs-scanline { display: none; } }
