/* STRIKEBG_CONNECTION_FX_V1 */
:root {
  --sbfx-bg: #05070a;
  --sbfx-panel: rgba(8, 11, 15, 0.92);
  --sbfx-orange: #28d4df;
  --sbfx-orange-hot: #ff9a4a;
  --sbfx-red: #c70f24;
  --sbfx-cyan: #45d9ff;
  --sbfx-green: #35e07a;
  --sbfx-text: #f4f1eb;
  --sbfx-muted: #98a3ad;
}

.sbfx-overlay {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  color: var(--sbfx-text);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 72, 33, 0.13), transparent 32%),
    linear-gradient(145deg, rgba(4, 7, 11, 0.98), rgba(18, 5, 8, 0.97));
  font-family: Rajdhani, system-ui, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.sbfx-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sbfx-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(69, 217, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 217, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, #000 20%, transparent 74%);
  animation: sbfx-grid-drift 10s linear infinite;
}

.sbfx-overlay::after {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background: linear-gradient(180deg, transparent 47%, rgba(255, 90, 47, 0.14) 50%, transparent 53%);
  transform: translateY(-40%);
  animation: sbfx-scan-screen 2.8s linear infinite;
  pointer-events: none;
}

.sbfx-shell {
  position: relative;
  width: min(760px, 100%);
  min-height: 540px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 90, 47, 0.34);
  border-radius: 4px 22px 4px 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.025), transparent 35%),
    var(--sbfx-panel);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.66),
    inset 0 0 70px rgba(255, 60, 32, 0.035);
  isolation: isolate;
}

.sbfx-shell::before,
.sbfx-shell::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  pointer-events: none;
}

.sbfx-shell::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--sbfx-orange);
  border-left: 2px solid var(--sbfx-orange);
}

.sbfx-shell::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--sbfx-cyan);
  border-bottom: 2px solid var(--sbfx-cyan);
}

.sbfx-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  text-transform: uppercase;
}

.sbfx-brand-main {
  display: block;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: clamp(2rem, 7vw, 4.4rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: transparent;
  background: linear-gradient(105deg, #fff, #8d969e 26%, #f4f5f4 48%, #62e89a 72%, #28d4df);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.6));
}

.sbfx-brand-image {
  display: block;
  width: min(430px, 76vw);
  height: auto;
  margin: 0 auto;
  filter:
    contrast(1.08)
    saturate(1.08)
    drop-shadow(0 10px 18px rgba(0,0,0,.7))
    drop-shadow(0 0 18px rgba(40,212,223,.12));
}

.sbfx-brand-fallback { display: none; }
.sbfx-brand-image.is-missing { display: none; }
.sbfx-brand-image.is-missing + .sbfx-brand-fallback { display: block; }

.sbfx-brand-main b {
  color: var(--sbfx-orange-hot);
  -webkit-text-fill-color: var(--sbfx-orange-hot);
}

.sbfx-brand-sub {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 7px 16px;
  border-top: 1px solid rgba(69, 217, 255, 0.44);
  border-bottom: 1px solid rgba(255, 90, 47, 0.44);
  color: #ccd6dd;
  font: 700 clamp(.66rem, 2vw, .82rem)/1 Orbitron, sans-serif;
  letter-spacing: .2em;
}

.sbfx-brand-sub i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sbfx-green);
  box-shadow: 0 0 12px var(--sbfx-green);
  animation: sbfx-pulse 1.1s ease-in-out infinite;
}

.sbfx-network {
  position: relative;
  z-index: 2;
  width: min(470px, 82vw);
  aspect-ratio: 1;
  margin: 2px auto -8px;
}

.sbfx-network svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sbfx-ring {
  fill: none;
  stroke: rgba(69, 217, 255, 0.18);
  stroke-width: 1;
  stroke-dasharray: 6 12;
  transform-origin: 240px 240px;
  animation: sbfx-spin 16s linear infinite;
}

.sbfx-ring--hot {
  stroke: rgba(255, 90, 47, 0.25);
  stroke-dasharray: 2 18;
  animation-direction: reverse;
  animation-duration: 10s;
}

.sbfx-link {
  fill: none;
  stroke: rgba(69, 217, 255, 0.26);
  stroke-width: 2;
  stroke-dasharray: 8 12;
  animation: sbfx-flow 1.25s linear infinite;
}

.sbfx-link--hot {
  stroke: rgba(255, 90, 47, 0.45);
  animation-duration: .9s;
}

.sbfx-node circle {
  fill: #08131a;
  stroke: var(--sbfx-cyan);
  stroke-width: 2;
  filter: drop-shadow(0 0 7px rgba(69, 217, 255, .7));
}

.sbfx-node text {
  fill: #ccefff;
  font: 700 13px Rajdhani, sans-serif;
  letter-spacing: .05em;
  text-anchor: middle;
}

.sbfx-node {
  transform-origin: center;
  animation: sbfx-node-breathe 1.8s ease-in-out infinite;
}

.sbfx-node:nth-of-type(2) { animation-delay: -.3s; }
.sbfx-node:nth-of-type(3) { animation-delay: -.7s; }
.sbfx-node:nth-of-type(4) { animation-delay: -1.1s; }

.sbfx-core-disc {
  fill: rgba(8, 10, 14, 0.96);
  stroke: var(--sbfx-orange);
  stroke-width: 2;
  filter: drop-shadow(0 0 16px rgba(255, 90, 47, .62));
}

.sbfx-core-label {
  fill: #fff;
  font: 900 23px Orbitron, sans-serif;
  letter-spacing: .08em;
  text-anchor: middle;
}

.sbfx-core-detail {
  fill: var(--sbfx-orange-hot);
  font: 700 10px Rajdhani, sans-serif;
  letter-spacing: .22em;
  text-anchor: middle;
}

.sbfx-crosshair {
  fill: none;
  stroke: rgba(255, 90, 47, 0.65);
  stroke-width: 2;
  transform-origin: 240px 240px;
  animation: sbfx-lock 2.2s ease-in-out infinite;
}

.sbfx-sweep {
  fill: rgba(255, 90, 47, 0.08);
  transform-origin: 240px 240px;
  animation: sbfx-radar 2s linear infinite;
}

.sbfx-packet {
  fill: #fff;
  filter: drop-shadow(0 0 8px var(--sbfx-cyan));
}

.sbfx-packet--one { animation: sbfx-packet-one 1.6s ease-in-out infinite; }
.sbfx-packet--two { animation: sbfx-packet-two 1.9s ease-in-out infinite -.5s; }
.sbfx-packet--three { animation: sbfx-packet-three 1.5s ease-in-out infinite -.9s; }

.sbfx-footer {
  position: relative;
  z-index: 3;
  text-align: center;
}

.sbfx-status {
  min-height: 30px;
  margin: 0 0 12px;
  color: var(--sbfx-text);
  font: 700 clamp(1rem, 3vw, 1.3rem)/1.3 Rajdhani, sans-serif;
  letter-spacing: .045em;
}

.sbfx-status.is-changing {
  animation: sbfx-status-in 360ms ease both;
}

.sbfx-progress {
  position: relative;
  width: min(480px, 82vw);
  height: 7px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px;
  background: rgba(255,255,255,.045);
}

.sbfx-progress-bar {
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sbfx-cyan), var(--sbfx-orange), var(--sbfx-orange-hot));
  box-shadow: 0 0 18px rgba(40,212,223,.55);
  transition: width 700ms cubic-bezier(.2,.75,.2,1);
}

.sbfx-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: translateX(-100%);
  animation: sbfx-progress-glint 1.35s ease-in-out infinite;
}

.sbfx-meta {
  display: flex;
  justify-content: space-between;
  width: min(480px, 82vw);
  margin: 9px auto 0;
  color: var(--sbfx-muted);
  font: 600 .72rem/1.2 "Share Tech Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sbfx-retry {
  display: none;
  margin: 18px auto 0;
  padding: 10px 18px;
  border: 1px solid rgba(255, 90, 47, .65);
  border-radius: 3px 10px 3px 10px;
  color: #fff;
  background: rgba(255, 90, 47, .12);
  font: 800 .82rem Orbitron, sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
}

.sbfx-overlay.is-delayed .sbfx-retry { display: inline-flex; }
.sbfx-overlay.is-ready .sbfx-progress-bar { background: linear-gradient(90deg, var(--sbfx-green), #baffd3); }
.sbfx-overlay.is-ready .sbfx-core-disc { stroke: var(--sbfx-green); filter: drop-shadow(0 0 20px rgba(53,224,122,.7)); }

@keyframes sbfx-grid-drift { to { background-position: 42px 42px; } }
@keyframes sbfx-scan-screen { to { transform: translateY(40%); } }
@keyframes sbfx-spin { to { transform: rotate(360deg); } }
@keyframes sbfx-flow { to { stroke-dashoffset: -40; } }
@keyframes sbfx-pulse { 50% { opacity: .45; transform: scale(.75); } }
@keyframes sbfx-node-breathe { 50% { opacity: .65; } }
@keyframes sbfx-lock { 50% { transform: scale(.92) rotate(5deg); opacity: .55; } }
@keyframes sbfx-radar { to { transform: rotate(360deg); } }
@keyframes sbfx-progress-glint { 65%, 100% { transform: translateX(120%); } }
@keyframes sbfx-status-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sbfx-packet-one { 0%,100% { transform: translate(2px, 2px); opacity: 0; } 25%,75% { opacity: 1; } 50% { transform: translate(116px, 108px); } }
@keyframes sbfx-packet-two { 0%,100% { transform: translate(405px, 20px); opacity: 0; } 25%,75% { opacity: 1; } 50% { transform: translate(292px, 112px); } }
@keyframes sbfx-packet-three { 0%,100% { transform: translate(20px, 402px); opacity: 0; } 25%,75% { opacity: 1; } 50% { transform: translate(116px, 292px); } }

@media (max-width: 600px) {
  .sbfx-overlay { padding: 10px; }
  .sbfx-shell { min-height: 100%; padding: 22px 14px; border-radius: 0; }
  .sbfx-network { width: min(390px, 94vw); }
  .sbfx-brand-sub { letter-spacing: .11em; }
  .sbfx-meta { font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sbfx-overlay *,
  .sbfx-overlay::before,
  .sbfx-overlay::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}
