/* screens/access-scan.css — CIPHER GUARD 認証スキャン */
.sp-stage--access-scan .sp-stage__canvas {
  background:
    radial-gradient(circle at center, #051620 0%, #020a0f 70%),
    #020a0f;
  color: #cfe8f5;
  font-family: "SF Mono", "Menlo", "Consolas", "Roboto Mono", monospace;
  overflow: hidden;
}
.as-wrap {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: auto 1fr;
}
.as-head {
  padding: 12px 24px;
  border-bottom: 1px solid #1e4055;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .14em;
  color: #8ee0ff;
}
.as-head__brand { font-weight: 700; letter-spacing: .2em; }
.as-head__node { color: #4d7fa0; font-size: 11px; }

.as-body {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  padding: 32px 24px;
  overflow: hidden;
  position: relative;
}
.as-subject {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 13px; letter-spacing: .1em;
}
.as-subject__label { color: #4d7fa0; letter-spacing: .18em; font-size: 11px; }
.as-subject__name  { color: #cfe8f5; font-weight: 700; letter-spacing: .12em; font-size: 15px; }

.as-scanwrap {
  width: min(320px, 60vh);
  aspect-ratio: 1 / 1;
  border: 2px solid #1e4055;
  padding: 12px;
  background: rgba(4, 20, 30, .5);
  position: relative;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.as-scanwrap.is-scanning { border-color: #8ee0ff; }
.as-scanwrap.is-ok       { border-color: #4ade80; background: rgba(74, 222, 128, .1); }
.as-scanwrap.is-fail     { border-color: #ff4444; background: rgba(255, 68, 68, .12); }
.as-svg { width: 100%; height: 100%; display: block; }

.as-scanwrap.is-scanning #as-scanline {
  opacity: 1;
  animation: as-scan 1.6s ease-in-out infinite;
}
@keyframes as-scan {
  0%   { transform: translateY(-100px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(100px); opacity: 0; }
}

.as-status {
  font-size: 15px; letter-spacing: .18em;
  padding: 6px 20px;
  color: #8ee0ff;
  border: 1px solid #1e4055;
}
.as-status.is-scan { color: #ffcc66; border-color: #ffcc66; animation: as-pulse 1.2s ease-in-out infinite; }
.as-status.is-ok   { color: #4ade80; border-color: #4ade80; background: rgba(74, 222, 128, .1); }
.as-status.is-fail { color: #ff4444; border-color: #ff4444; background: rgba(255, 68, 68, .15); }
@keyframes as-pulse { 0%,100%{opacity:1;} 50%{opacity:.5;} }

.as-lines {
  position: absolute; bottom: 12px; left: 24px; right: 24px;
  max-height: 100px;
  overflow: hidden;
  font-size: 10px;
  color: #4d7fa0;
}
.as-line {
  display: flex; gap: 10px;
  padding: 2px 0;
  border-top: 1px dotted rgba(30, 64, 85, .5);
}
.as-line--ok   { color: #4ade80; }
.as-line--fail { color: #ff8080; }
.as-line__ts { color: #4d7fa0; font-variant-numeric: tabular-nums; }
