/* Стыковка из мини-приложения */
@keyframes bxFlame {
  from { transform: scaleY(0.72) scaleX(0.9); opacity: 0.8; }
  to { transform: scaleY(1.18) scaleX(1.05); opacity: 1; }
}
@keyframes siWave {
  0% { opacity: 0; transform: translateX(-1.5px); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateX(1.5px); }
}
@keyframes siDraw { to { stroke-dashoffset: 0; } }
@keyframes stSweep {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes stArmPulse {
  0%, 100% { box-shadow: 0 14px 30px rgba(255, 154, 46, 0.36), 0 0 0 0 rgba(255, 214, 140, 0.55); }
  50% { box-shadow: 0 14px 30px rgba(255, 154, 46, 0.36), 0 0 0 7px rgba(255, 214, 140, 0); }
}
@keyframes gptHalo {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes gptUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.port-screen {
  --sp-gold: #ffd27a;
  --sp-muted: #d9c9a8;
  --sp-line: rgba(255, 206, 120, 0.24);
}
.port-screen.on {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.port-screen .sp-qr-ico,
.port-screen .sp-qr-ico * { fill: currentColor; stroke: none; }
.port-screen svg:not(.vf-ico):not(.sp-ship):not(.sp-empty-rocket):not(.sp-inf) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.port-screen .sp-fill { fill: currentColor; stroke: none; }
.port-screen .sp-qr-frame svg,
.port-screen .sp-sub-qr svg { fill: none; stroke: none; }
.port-screen .sp-qr-frame svg *,
.port-screen .sp-sub-qr svg * { stroke: none !important; }

.sp-track {
  --setup-step: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex: none;
  margin: 2px 0 10px;
  padding: 12px 6px 10px;
  border: 1px solid var(--sp-line);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(40, 32, 70, 0.9), rgba(12, 10, 30, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sp-rail {
  position: absolute;
  top: 34px;
  left: calc(6px + (100% - 12px) / 6);
  right: calc(6px + (100% - 12px) / 6);
  height: 3px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0 6px, transparent 6px 11px);
}
.sp-rail i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc((var(--setup-step) - 1) * 50%);
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  transition: width 0.7s cubic-bezier(0.3, 1.2, 0.5, 1);
}
.sp-ship {
  position: absolute;
  top: 25px;
  left: calc(6px + (100% - 12px) / 6 + (var(--setup-step) - 1) * ((100% - 12px) / 3) - 10px);
  z-index: 2;
  width: 20px;
  height: 20px;
  overflow: visible;
  filter: drop-shadow(0 2px 6px rgba(255, 150, 50, 0.7));
  transform: translateY(-15px) rotate(45deg);
  transition: left 0.7s cubic-bezier(0.3, 1.2, 0.5, 1);
  animation: spShip 1.8s ease-in-out infinite;
}
@keyframes spShip {
  0%, 100% { transform: translateY(-15px) rotate(45deg); }
  50% { transform: translateY(-19px) rotate(45deg); }
}
.sp-station {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #9d93b8;
}
.sp-dot {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 206, 120, 0.22);
  border-radius: 50%;
  background: #140f2c;
  color: #a69ec6;
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.sp-dot > svg { width: 24px; height: 24px; }
.sp-station strong { font-size: 12px; font-weight: 800; transition: color 0.3s ease; }
.sp-station.is-on { color: #fff; }
.sp-station.is-on .sp-dot {
  border-color: rgba(255, 220, 150, 0.9);
  background: radial-gradient(circle at 35% 30%, #3a2c62, #16102f);
  color: var(--sp-gold);
  transform: scale(1.08);
}
.sp-station.is-on .sp-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1.5px solid rgba(255, 214, 140, 0.45);
  border-radius: 50%;
  animation: gptHalo 2.4s ease-out infinite;
}
.sp-station.is-done { color: #ffe08a; }
.sp-station.is-done .sp-dot {
  border-color: rgba(255, 206, 120, 0.55);
  background: rgba(255, 196, 90, 0.14);
  color: #ffe08a;
}
.sp-done {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #140f2c;
  border-radius: 50%;
  background: linear-gradient(135deg, #9ff5bb, #52d489);
  color: #0b2a17;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.sp-done svg { width: 11px; height: 11px; stroke-width: 3.2 !important; }
.sp-station.is-done .sp-done { transform: scale(1); }
.sp-station.is-on .sp-drop { animation: spDrop 1.6s ease-in-out infinite; }
.sp-shield-bg { fill: currentColor; fill-opacity: 0.14; }
.sp-bolt { transform-box: fill-box; transform-origin: center; }
.sp-station.is-on .sp-bolt { animation: spBolt 2.2s ease-in-out infinite; }
@keyframes spBolt {
  0%, 62%, 100% { opacity: 1; transform: scale(1); }
  70% { opacity: 0.35; transform: scale(0.86); }
  78% { opacity: 1; transform: scale(1.14); }
}
@keyframes spDrop {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(1.5px); }
}

.port-screen .sp-card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 16px 14px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 206, 120, 0.26);
  border-radius: 26px;
  background:
    radial-gradient(240px 140px at 100% 0%, rgba(255, 196, 90, 0.14), transparent 72%),
    linear-gradient(165deg, rgba(40, 32, 70, 0.93), rgba(12, 10, 30, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sp-step {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px 4px;
  scrollbar-width: none;
}
.sp-step::-webkit-scrollbar { display: none; }
.sp-step.is-on { display: flex; }
.sp-card.is-turn .sp-step.is-on { animation: spIn 0.42s cubic-bezier(0.2, 1, 0.4, 1) both; }
.sp-card.is-turn.is-back .sp-step.is-on { animation-name: spInBack; }
@keyframes spIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes spInBack { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.sp-step h2 {
  margin: 0;
  color: #fff;
  font-family: "Baloo 2", Manrope, sans-serif;
  font-size: clamp(21px, 5.8vw, 25px);
  line-height: 1.1;
}
.sp-lead { margin: 0; color: #fff; font-size: 14px; line-height: 1.45; opacity: 0.92; }

.sp-choices { display: grid; gap: 9px; }
.sp-choice {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 12px 10px 11px;
  border: 1.5px solid rgba(255, 214, 140, 0.75);
  border-radius: 20px;
  background: rgba(14, 10, 32, 0.6);
  color: #fff;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}
.sp-choice:active { transform: scale(0.98); }
.sp-choice.is-selected {
  border-color: rgba(255, 214, 140, 0.8);
  background:
    radial-gradient(160px 80px at 0% 50%, rgba(255, 196, 90, 0.18), transparent 70%),
    rgba(30, 22, 56, 0.85);
}
.sp-choice-ico {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1.5px solid rgba(255, 214, 140, 0.7);
  border-radius: 16px;
  background: transparent;
  color: var(--sp-gold);
}
.sp-choice-ico svg { width: 28px; height: 28px; stroke-width: 2 !important; }
.sp-wave { animation: siWave 1.8s ease-in-out infinite; }
.sp-wave-2 { animation-delay: 0.3s; }
.sp-choice-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-choice-copy strong { font-size: 16px; font-weight: 800; }
.sp-choice-copy small { color: #e6d8bc; font-size: 13px; font-weight: 600; }
.sp-go {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--sp-gold);
  transition: transform 0.2s ease;
}
.sp-go svg { width: 18px; height: 18px; stroke-width: 2.2 !important; }
.sp-choice:active .sp-go { transform: translateX(3px); }

.sp-sub {
  flex: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid rgba(125, 240, 164, 0.24);
  border-radius: 20px;
  background: rgba(14, 26, 30, 0.45);
}
.sp-sub-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #9ff5bb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sp-sub-title i {
  display: block; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: #7df0a4; font-style: normal; line-height: 0;
  animation: stLive 2s ease-in-out infinite;
}
.sp-sub-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.sp-sub-side {
  display: flex;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
}
.sp-sub-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 214, 140, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(120px 40px at 0% 0%, rgba(255, 196, 90, 0.14), transparent 70%),
    rgba(8, 6, 20, 0.55);
  color: #fff8e8;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sp-sub-link-url {
  flex: 1;
  min-width: 0;
  overflow: visible;
  color: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  align-self: stretch;
}
.sp-sub-copy {
  display: grid;
  flex: none;
  place-items: center;
  align-self: stretch;
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: linear-gradient(120deg, #ffe08a, #ff9a2e);
  color: #241503;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.sp-sub-qr {
  display: grid;
  place-items: center;
  width: fit-content;
  height: fit-content;
  align-self: center;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.sp-sub-qr svg { display: block; width: 108px; height: 108px; border-radius: 6px; }
.sp-sub-note {
  margin: 0 0 12px;
  color: #d7c9a4;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.sp-sub-link:active { transform: scale(0.985); }
@media (max-height: 760px) {
  .sp-sub { margin-bottom: 14px; padding: 14px 12px; }
  .sp-sub-qr svg { width: 96px; height: 96px; }
}
.sp-choices { gap: 7px; }
.sp-choice { min-height: 60px; padding-top: 7px; padding-bottom: 7px; }
.sp-choice-ico { width: 44px; height: 44px; border-radius: 14px; }
.sp-choice-ico svg { width: 25px; height: 25px; }
.sp-choice { grid-template-columns: 44px minmax(0, 1fr) 24px; }

.sp-os {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sp-os button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 66px;
  padding: 8px 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 206, 120, 0.18);
  border-radius: 17px;
  background: rgba(14, 10, 32, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.sp-os button:active { transform: scale(0.95); }
.sp-os button svg { width: 24px; height: 24px; margin: 0; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.sp-os [data-os="ios"] svg { width: 30px; height: 30px; }
.sp-os [data-os="ios"] { font-size: 11px; letter-spacing: -0.02em; }
.sp-os button.is-on {
  border-color: rgba(255, 220, 150, 0.95);
  background: linear-gradient(180deg, rgba(255, 196, 90, 0.26), rgba(40, 24, 10, 0.35));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 150, 50, 0.18), inset 0 1px 0 rgba(255, 236, 200, 0.3);
}
.sp-os button.is-on svg { color: #ffe08a; transform: scale(1.1); }

.sp-hint {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 196, 90, 0.08);
  border: 1px solid rgba(255, 206, 120, 0.16);
}
.sp-hint-ico { color: var(--sp-gold); }
.sp-hint-ico svg { width: 20px; height: 20px; margin-top: 1px; }
.sp-hint p { margin: 0; color: #fff; font-size: 13px; line-height: 1.45; white-space: pre-line; animation: gptUp 0.35s ease both; }

.sp-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  background: rgba(8, 6, 22, 0.7);
}
.sp-seg-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 12px;
  background: linear-gradient(120deg, #ffe08a, #ff9a2e);
  box-shadow: 0 6px 16px rgba(255, 154, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.42s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.sp-seg:has([data-setup-mode="qr"].is-on) .sp-seg-pill { transform: translateX(100%); }
.sp-seg button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 0;
  background: none;
  color: var(--sp-muted);
  font-size: 14px;
  font-weight: 800;
  transition: color 0.3s ease;
}
.sp-seg button svg { width: 18px; height: 18px; }
.sp-seg button.is-on { color: #1d1305; }

.sp-get { display: grid; gap: 8px; }
.sp-primary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 8px 10px 8px 14px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(120deg, #ffe9b4, #ffc15c 48%, #f08a28);
  color: #1d1305;
  text-align: left;
  box-shadow: 0 12px 28px rgba(255, 154, 46, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.16s ease;
}
.sp-primary:active { transform: scale(0.98); }
.sp-primary-sm { min-height: 46px; padding: 6px 12px; justify-content: center; }
.sp-primary-sm .sp-primary-text { align-items: center; }
.sp-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
  transform: translateX(-120%);
  animation: stSweep 4s ease-in-out infinite;
  pointer-events: none;
}
.sp-primary-text { position: relative; display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.sp-primary-text small { font-size: 12px; font-weight: 700; opacity: 0.75; }
.sp-primary-text strong { font-size: 16px; font-weight: 800; line-height: 1.15; }
.sp-primary-go {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 13px;
  background: #2a1604;
  color: #ffd27a;
}
.sp-primary-go svg { width: 20px; height: 20px; stroke-width: 2.2 !important; }
.sp-logo { position: relative; flex: none; }
.sp-logo-happ { width: 22px; height: 27px; object-fit: contain; }
.sp-logo-incy { width: 54px; height: 18px; object-fit: contain; }
.sp-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 206, 120, 0.3);
  border-radius: 17px;
  background: rgba(16, 12, 34, 0.75);
  color: #ffe2a0;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
}
.sp-secondary:active { transform: scale(0.98); background: rgba(255, 196, 90, 0.14); }
.sp-secondary svg { width: 19px; height: 19px; }
.sp-secondary.is-on { border-color: rgba(255, 214, 140, 0.85); background: rgba(255, 196, 90, 0.14); color: #fff; }
.sp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-row2 > [hidden] + .sp-secondary,
.sp-row2 > .sp-secondary:only-child { grid-column: 1 / -1; }

.sp-step:has(#setup-qr-panel:not([hidden])) .sp-hint { display: none; }
.sp-qr {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-auto-rows: min-content;
  align-items: start;
  column-gap: 12px;
  row-gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 206, 120, 0.16);
  border-radius: 20px;
  background: rgba(14, 10, 32, 0.55);
  animation: gptUp 0.35s ease both;
}
.sp-qr > .sp-qr-frame { grid-column: 1; grid-row: 1 / span 3; }
.sp-qr > p,
.sp-qr > .sp-mini-seg { grid-column: 2; }
.sp-qr > p { margin: 0; color: #fff; font-size: 12px; line-height: 1.35; }
.sp-qr > .sp-mini-seg { justify-self: start; }
.sp-mini-seg {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--sp-line);
  border-radius: 12px;
  background: rgba(8, 6, 22, 0.6);
}
.sp-mini-seg button {
  min-width: 52px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--sp-muted);
  font-size: 13px;
  font-weight: 800;
}
.sp-mini-seg button.is-on { background: linear-gradient(120deg, #ffe08a, #ff9a2e); color: #1d1305; }
.sp-qr-frame {
  position: relative;
  padding: 6px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 214, 140, 0.25);
}
.sp-qr-frame svg { display: block; border-radius: 8px; }
.sp-scan {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #ffb347, transparent);
  box-shadow: 0 0 12px rgba(255, 170, 70, 0.9);
  animation: spScan 2.4s ease-in-out infinite;
}
@keyframes spScan {
  0%, 100% { transform: translateY(0); opacity: 0.2; }
  10%, 90% { opacity: 1; }
  50% { transform: translateY(112px); }
}

.sp-final { display: flex; flex: 1; flex-direction: column; gap: 10px; }
.sp-radar {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 206, 120, 0.2);
  border-radius: 20px;
  background: rgba(14, 10, 32, 0.6);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.sp-radar-rings, .sp-radar-core { grid-row: 1; grid-column: 1; }
.sp-radar-rings { position: relative; width: 56px; height: 56px; }
.sp-radar-rings i {
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(255, 214, 140, 0.4);
  border-radius: 50%;
  opacity: 0;
}
.sp-radar.is-live .sp-radar-rings i { animation: spRadar 2.4s ease-out infinite; }
.sp-radar.is-live .sp-radar-rings i:nth-child(2) { animation-delay: 0.8s; }
.sp-radar.is-live .sp-radar-rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes spRadar {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.sp-radar-core {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  justify-self: center;
  border-radius: 16px;
  background: linear-gradient(160deg, #2c2150, #120d28);
  border: 1px solid rgba(255, 206, 120, 0.4);
  color: var(--sp-gold);
  transition: background 0.4s ease, color 0.4s ease, transform 0.5s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.sp-radar-core svg { width: 28px; height: 28px; }
.sp-radar-check { stroke-dasharray: 20; stroke-dashoffset: 20; }
.sp-radar.is-done { border-color: rgba(125, 240, 164, 0.5); background: rgba(20, 40, 36, 0.55); }
.sp-radar.is-done .sp-radar-core {
  border-color: transparent;
  background: linear-gradient(135deg, #9ff5bb, #3fbf78);
  color: #0b2a17;
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(125, 240, 164, 0.5);
}
.sp-radar.is-done .sp-radar-check { animation: siDraw 0.6s 0.2s ease forwards; stroke-width: 2.4 !important; }
.sp-radar-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-radar-copy strong { color: #fff; font-size: 15px; font-weight: 800; }
.sp-radar-copy small { color: var(--sp-muted); font-size: 12px; font-weight: 600; line-height: 1.35; }
.sp-radar.is-done .sp-radar-copy strong { color: #9ff5bb; }
.sp-final-qr { align-self: center; padding: 7px; border-radius: 16px; animation: gptUp 0.35s ease both; }
.sp-final .sp-radar { padding: 11px 12px; }
.sp-steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sp-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 206, 120, 0.14);
  border-radius: 14px;
  background: rgba(14, 10, 32, 0.5);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.sp-steps b {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 196, 90, 0.16);
  color: var(--sp-gold);
  font-size: 12px;
}
.sp-empty-art {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 148px;
  place-items: center;
  overflow: visible;
}
.sp-empty-ring,
.sp-empty-ring-2 {
  position: absolute;
  width: 132px;
  height: 132px;
  border: 1.5px solid rgba(255, 214, 140, 0.35);
  border-radius: 50%;
  animation: spPulse 2.4s ease-out infinite;
}
.sp-empty-ring-2 { width: 176px; height: 176px; animation-delay: 1.2s; }
.sp-empty-rocket {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  overflow: visible;
  filter: drop-shadow(0 12px 26px rgba(255, 150, 50, 0.55));
  transform: rotate(-42deg);
  animation: spHover 2s ease-in-out infinite;
}
@keyframes spHover {
  0%, 100% { transform: translateY(0) rotate(-45deg); }
  50% { transform: translateY(-8px) rotate(-43deg); }
}
.sp-empty-art i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff3c4;
  animation: stTwinkle 1.8s ease-in-out infinite;
}
.sp-empty-art i:nth-of-type(1) { left: 18%; top: 28%; }
.sp-empty-art i:nth-of-type(2) { right: 16%; top: 34%; animation-delay: 0.5s; }
.sp-empty-art i:nth-of-type(3) { left: 24%; bottom: 22%; animation-delay: 1s; }
.sp-empty-art i:nth-of-type(4) { right: 22%; bottom: 28%; animation-delay: 1.5s; }
.sp-empty-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sp-empty-perks div {
  --pk: 255, 210, 122;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 104px;
  padding: 14px 6px 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--pk), 0.3);
  border-radius: 20px;
  background:
    radial-gradient(90px 60px at 50% 0%, rgba(var(--pk), 0.26), transparent 72%),
    linear-gradient(180deg, rgba(var(--pk), 0.06), rgba(10, 8, 26, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 24px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.sp-empty-perks div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.14) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: spPerkSweep 5.4s ease-in-out infinite;
  animation-delay: calc(1.2s + var(--i, 0) * 0.35s);
  pointer-events: none;
}
.sp-empty-perks .is-cyan { --pk: 127, 227, 255; }
.sp-empty-perks .is-green { --pk: 125, 240, 164; }
.sp-perk-big {
  display: grid;
  height: 38px;
  place-items: center;
  font-family: "Baloo 2", Manrope, sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, #fffaf0, rgb(var(--pk)) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(var(--pk), 0.45));
  animation: spPerkFloat 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.2s);
}
.sp-perk-big .sp-inf {
  width: 52px;
  height: 30px;
  fill: none;
  stroke: url(#sp-inf-g);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.sp-empty-perks small {
  color: rgba(232, 226, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
@keyframes spPerkFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes spPerkSweep {
  0%, 55% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .sp-perk-big,
  .sp-empty-perks div::after { animation: none; }
}
.sp-final .sp-primary { margin-top: auto; }
#sp-final-empty { gap: 14px; }
#sp-final-empty .sp-lead { text-align: center; font-size: 15px; margin: 0; }
#sp-final-empty .sp-primary { margin-top: 4px; }
.sp-final .sp-radar + .sp-final-qr[hidden] + .sp-primary { margin-top: auto; }
.sp-final .sp-final-qr:not([hidden]) { margin: auto 0; padding: 5px; border-radius: 20px; box-shadow: 0 0 0 4px rgba(255, 214, 140, 0.22); }
.sp-final .sp-final-qr svg { width: 184px; height: 184px; border-radius: 8px; }
@media (max-height: 700px) {
  .sp-final .sp-final-qr svg { width: 156px; height: 156px; }
}

.sp-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 214, 140, 0.12);
}
.sp-nav.is-first { grid-template-columns: 1fr; }
.sp-nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 206, 120, 0.28);
  border-radius: 17px;
  background: rgba(18, 14, 40, 0.75);
  color: #ffe2a0;
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.16s ease;
}
.sp-nav button:active { transform: scale(0.97); }
.sp-nav button svg { width: 18px; height: 18px; stroke-width: 2.2 !important; }
.sp-nav #setup-next {
  border: 0;
  background: linear-gradient(120deg, #ffe08a, #ff9a2e);
  color: #1d1305;
  box-shadow: 0 10px 22px rgba(255, 154, 46, 0.3);
}
.sp-nav #setup-next::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.45) 50%, transparent 68%);
  transform: translateX(-120%);
  animation: stSweep 3.6s ease-in-out infinite;
}
.sp-nav #setup-next .sp-next-go { transition: transform 0.2s ease; }
.sp-nav #setup-next:active .sp-next-go { transform: translateX(3px); }
.sp-nav #setup-next.is-finish .sp-next-go { display: none; }
.sp-nav #setup-next.is-glow { animation: stArmPulse 1s ease-in-out infinite; }

.sp-track { --sp-dot: 56px; --sp-pad: 14px; padding: var(--sp-pad) 2px 8px; margin-bottom: 8px; overflow: visible; }
.sp-dot { width: var(--sp-dot); height: var(--sp-dot); }
.sp-dot > svg { width: 30px; height: 30px; }
.sp-station { gap: 6px; }
.sp-rail { top: calc(var(--sp-pad) + var(--sp-dot) / 2); transform: translateY(-50%); }
.port-screen .sp-card { padding: 13px 12px 10px; }
.sp-step { gap: 7px; }
.sp-step h2 { font-size: clamp(20px, 5.4vw, 23px); }
.sp-os { gap: 6px; }
.sp-os button { min-height: 50px; gap: 3px; padding: 5px 2px; }
.sp-get { gap: 6px; }
.sp-get .sp-secondary { min-height: 42px !important; }
.sp-get .sp-primary { min-height: 52px; }
.sp-os button svg { width: 21px; height: 21px; }
.sp-os [data-os="ios"] svg { width: 22px; height: 22px; }
.sp-hint { padding: 7px 10px; }
.sp-os { gap: 5px; }
.sp-os button { min-height: 48px; }
.sp-hint p { font-size: 12.5px; line-height: 1.4; }
.sp-seg button { min-height: 38px; }
.sp-primary { min-height: 54px; }
.sp-secondary { min-height: 46px; }
.sp-nav { margin-top: 8px; padding-top: 8px; }
.sp-nav button { min-height: 46px; }
@media (max-height: 760px) {
  .sp-track { --sp-dot: 50px; --sp-pad: 12px; margin-bottom: 6px; }
  .sp-dot > svg { width: 27px; height: 27px; }
  .sp-station { gap: 4px; }
  .sp-station strong { font-size: 11px; }
  .sp-station.is-on .sp-dot { transform: none; }
  .port-screen .sp-card { padding: 10px 11px 8px; border-radius: 22px; }
  .sp-step { gap: 6px; }
  .sp-step h2 { font-size: 19px; }
  .sp-lead { font-size: 13px; line-height: 1.4; }
  .sp-os button { min-height: 44px; font-size: 11px; }
  .sp-os button svg { width: 19px; height: 19px; }
  .sp-os [data-os="ios"] svg { width: 20px; height: 20px; }
  .sp-hint p { font-size: 12px; }
  .sp-seg button { min-height: 36px; }
  .sp-choice { min-height: 54px; }
  .sp-get .sp-primary, .sp-primary { min-height: 48px; }
  .sp-get .sp-secondary { min-height: 38px !important; }
  .sp-secondary { min-height: 42px; }
  .sp-final .sp-radar { padding: 9px 11px; }
  .sp-nav { margin-top: 6px; padding-top: 6px; }
  .sp-nav button { min-height: 42px; font-size: 15px; }
}
@media (max-height: 700px) {
  .sp-os button { min-height: 48px; font-size: 11px; }
  .sp-os button svg { width: 19px; height: 19px; }
  .sp-choice { min-height: 60px; }
  .sp-primary { min-height: 50px; }
  .sp-nav button { min-height: 44px; }
}
@media (max-width: 360px) {
  .sp-os button { font-size: 10.5px; }
  .sp-os [data-os="ios"] { font-size: 10px; }
  .sp-choice { grid-template-columns: 44px minmax(0, 1fr) 20px; }
  .sp-choice-ico { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .port-screen * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.sp-os { margin-bottom: 18px; }
.sp-step h2 + .sp-os { margin-top: 8px; }
.sp-os button { gap: 1px; line-height: 1.1; }
.sp-nav button { gap: 8px; line-height: 1; }
.sp-nav button > span { display: block; line-height: 1; }
.port-screen .sp-nav .sp-nav-arrow {
  width: 7px;
  height: 12px;
  flex: none;
  stroke-width: 2.6 !important;
  transform: translateY(1.5px);
}
.sp-nav #setup-next:active .sp-next-go { transform: translate(3px, 1.5px); }

/* ChatGPT: шире и выше на любом экране */
body.is-chat main {
  padding-left: calc(clamp(6px, 2.2vw, 12px) + var(--safe-l));
  padding-right: calc(clamp(6px, 2.2vw, 12px) + var(--safe-r));
  padding-top: 0;
  padding-bottom: 4px;
  margin-bottom: calc(92px + var(--safe-b));
}
body.is-chat.is-typing main { margin-bottom: calc(6px + var(--safe-b)); }
.gpt-down { bottom: 84px; }
.gpt-top {
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  margin-bottom: clamp(4px, 1dvh, 8px);
  padding: 0 2px;
}
.gpt-top .gpt-icon-btn { width: 38px; height: 38px; border-radius: 12px; }
.gpt-top .gpt-icon-btn svg { width: 19px; height: 19px; }
.gpt-log {
  padding: clamp(10px, 3vw, 14px) clamp(10px, 3.2vw, 16px) 10px;
  border-radius: clamp(18px, 5vw, 24px);
}
.gpt-composer { padding-top: clamp(6px, 1dvh, 8px); }
.gpt-box { padding: 4px 5px 5px clamp(12px, 3.6vw, 16px); border-radius: 24px; }
.gpt-box textarea { min-height: 36px; padding-top: 8px; }
.gpt-hero { padding-top: clamp(8px, 3dvh, 18px); }
.gpt-orb { width: clamp(58px, 9dvh, 76px); height: clamp(58px, 9dvh, 76px); margin-bottom: clamp(10px, 2dvh, 16px); }
@media (max-height: 740px) {
  body.is-chat main { margin-bottom: calc(80px + var(--safe-b)); }
  body.is-chat.is-typing main { margin-bottom: calc(6px + var(--safe-b)); }
}
@media (max-height: 700px) {
  .gpt-prompt { min-height: 46px; padding: 7px 10px; grid-template-rows: auto; }
  .gpt-prompt small { display: none; }
  .gpt-prompt-ico { grid-row: auto; width: 28px; height: 28px; }
  .gpt-hero p { display: none; }
  .gpt-hero h2 { font-size: 20px; margin-bottom: 0; }
  .gpt-empty { gap: 12px; }
}

/* ChatGPT: одна цельная карточка — шапка, сообщения и ввод внутри */
.screen.gpt.on {
  overflow: hidden;
  border: 1px solid rgba(255, 206, 120, 0.16);
  border-radius: clamp(20px, 5.5vw, 26px);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 190, 90, 0.08), transparent 60%),
    rgba(12, 9, 28, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.gpt .gpt-top {
  position: relative;
  z-index: 3;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  margin: 0;
  padding: 8px 8px 6px;
  border-bottom: 1px solid rgba(255, 214, 140, 0.07);
}
.gpt .gpt-top .gpt-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #e9dfca;
}
.gpt .gpt-top .gpt-icon-btn:active { background: rgba(255, 196, 90, 0.14); }
.gpt .gpt-title strong { font-size: 17px; }
.gpt .gpt-title small {
  display: block;
  max-width: 100%;
  margin-top: 1px;
  overflow: hidden;
  color: #9b927e;
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gpt .gpt-title small[hidden] { display: none; }
.gpt .gpt-log {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 14px clamp(12px, 3.6vw, 16px) 8px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 10px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 10px), transparent 100%);
}
.gpt .gpt-composer { padding: 4px 8px 8px; }
.gpt .gpt-box {
  border-color: rgba(255, 206, 120, 0.18);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.gpt .gpt-box.is-focus {
  border-color: rgba(255, 214, 140, 0.5);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 196, 90, 0.1);
}
.gpt .gpt-down { bottom: 76px; }

/* ChatGPT: весь экран, клавиатура, файлы, широкая лента */
.gpt .gpt-top {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.gpt-side {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}
.gpt-side-end { justify-content: flex-end; }
.gpt .gpt-title strong {
  display: block;
  font-size: 15px;
  white-space: nowrap;
}
.gpt-full-exit { display: none; }
body.is-gpt-full .gpt-full-enter { display: none; }
body.is-gpt-full .gpt-full-exit { display: block; }
.screen.chat-screen.gpt { width: 100%; max-width: none; }
.gpt-log,
.gpt-msg,
.gpt-bot,
.gpt-md { width: 100%; max-width: 100%; min-width: 0; }
.gpt-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 8px 8px 12px;
  border: 1px solid rgba(255, 206, 120, 0.28);
  border-radius: 14px;
  background: rgba(255, 196, 90, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.gpt-file b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gpt-file button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}
html.tg-full body.is-chat.is-kb .stage,
body.is-chat.is-kb .stage {
  top: var(--vvt, 0px);
  bottom: auto;
  height: var(--vvh, calc(var(--tg-h, 100dvh) - var(--kb, 0px)));
}
html.tg-full body.is-picking .stage,
html.tg-full.tg-fullscreen body.is-picking .stage {
  height: var(--pick-h, 100dvh) !important;
  min-height: var(--pick-h, 100dvh) !important;
  max-height: var(--pick-h, 100dvh) !important;
}
body.is-chat.is-kb .dock,
body.is-chat.is-typing .dock {
  display: none;
}
body.is-chat.is-kb main,
body.is-chat.is-typing main {
  margin-bottom: 0;
  padding-bottom: 0;
}
body.is-chat.is-kb .gpt-composer,
body.is-chat.is-typing .gpt-composer {
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
body.is-gpt-full .top,
body.is-gpt-full .dock { display: none; }
body.is-gpt-full main {
  margin: 0;
  padding: 0;
}
body.is-gpt-full .screen.gpt.on {
  height: 100%;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(255, 190, 90, 0.1), transparent 55%),
    rgba(8, 6, 20, 0.94);
}
body.is-gpt-full .gpt-top { padding-top: calc(10px + var(--bar-t)); }
body.is-gpt-full .gpt-composer { padding-bottom: calc(10px + var(--safe-b)); }
body.is-gpt-full.is-kb .gpt-composer,
body.is-gpt-full.is-typing .gpt-composer { padding-bottom: 8px; }
.dock { transition: none; }
@media (max-width: 360px) {
  .gpt-user { margin-left: 0; width: 100%; }
}
.gpt-drawer svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.is-chat main { padding-bottom: 6px; }

/* ChatGPT: логотип в золотом шаре */
.gpt-orb { overflow: visible; isolation: isolate; }
.gpt-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 255, 255, 0.35) 82%, transparent 92%);
  animation: stSpin 5s linear infinite;
  mix-blend-mode: soft-light;
}
.gpt-knot {
  position: relative;
  z-index: 2;
  display: block;
  width: 56%;
  height: 56%;
  background: linear-gradient(145deg, #3a1d05, #1d0e02);
  -webkit-mask: url("/app/assets/gpt-knot.png") center / contain no-repeat;
  mask: url("/app/assets/gpt-knot.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 240, 200, 0.45));
  animation: gptKnotSpin 16s linear infinite, gptKnotBreath 3.2s ease-in-out infinite;
}
@keyframes gptKnotSpin { to { rotate: 360deg; } }
@keyframes gptKnotBreath {
  0%, 100% { scale: 0.94; }
  50% { scale: 1.06; }
}
.gpt-orb-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: 50%;
  pointer-events: none;
}
.gpt-orb-shine::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: gptOrbShine 4.2s 1s ease-in-out infinite;
}
@keyframes gptOrbShine {
  0%, 55% { left: -60%; }
  85%, 100% { left: 130%; }
}
.gpt-orb-orbit {
  position: absolute;
  inset: -14px;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
  animation: stSpin 9s linear infinite;
}
.gpt-orb-orbit em {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff3c4;
  box-shadow: 0 0 10px 2px rgba(255, 200, 100, 0.8);
  animation: stTwinkle 1.8s ease-in-out infinite;
}
.gpt-orb-orbit em:nth-child(1) { top: -3px; left: 50%; margin-left: -3px; }
.gpt-orb-orbit em:nth-child(2) { bottom: 12%; right: 2%; width: 4px; height: 4px; animation-delay: 0.6s; }
.gpt-orb-orbit em:nth-child(3) { bottom: 16%; left: 1%; width: 3px; height: 3px; animation-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  .gpt-knot, .gpt-orb::before, .gpt-orb-orbit, .gpt-orb-shine::after { animation: none; }
}

/* Стыковка: спокойная кнопка INCY */
.sp-get .sp-alt,
.sp-final .sp-alt {
  justify-content: flex-start;
  gap: 12px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(90deg, rgba(110, 230, 130, 0.07), transparent 45%),
    rgba(255, 255, 255, 0.03);
  color: #eee6d4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.sp-get .sp-alt,
.sp-final .sp-alt {
  min-height: 50px !important;
  gap: 11px;
  padding: 0 9px 0 7px;
  border-color: rgba(140, 230, 170, 0.15);
  border-radius: 17px;
  background:
    radial-gradient(120px 60px at 0% 50%, rgba(90, 220, 140, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(10, 8, 26, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}
.sp-get .sp-alt:active,
.sp-final .sp-alt:active { border-color: rgba(140, 230, 170, 0.3); background: rgba(110, 230, 130, 0.1); }
.sp-alt .sp-logo-incy {
  box-sizing: content-box;
  width: 40px;
  height: 13px;
  padding: 11px 6px;
  border-radius: 12px;
  background: linear-gradient(160deg, #11261c, #08140f);
  box-shadow: inset 0 0 0 1px rgba(120, 230, 160, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sp-alt-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
}
.sp-alt-text small { margin-top: 2px; color: #9fb0a5; font-size: 11px; font-weight: 600; }
#sp-add-incy .sp-alt-text { gap: 1px; }
#sp-add-incy .sp-alt-text small { margin-top: 0; font-size: 12px; font-weight: 700; }
#sp-add-incy .sp-alt-text strong { font-size: 16px; font-weight: 800; line-height: 1.15; }
@media (max-width: 360px), (max-height: 700px) {
  #sp-add-incy .sp-alt-text strong { font-size: 15px; }
}
.port-screen .sp-alt-go {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #a9c7b3;
  stroke-width: 2 !important;
}
.sp-get { gap: 10px; }
#setup-link-box ~ .sp-hint { margin-top: 6px; }

/* Ракета: мерцание пламени во всех местах, где стоит символ */
.st-rk-flame {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: bxFlame 0.18s ease-in-out infinite alternate;
}
.st-rk-flame-in { animation-duration: 0.13s; animation-delay: 0.05s; }

/* Стыковка: ракета летит по дорожке */
.sp-track { --sp-x: 36px; }
.sp-track[data-step="2"] { --sp-x: calc(50% + 36px); }
.sp-track[data-step="3"] { --sp-x: calc(100% - 38px); }
.sp-rail {
  z-index: 0;
  height: 4px;
  overflow: visible;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0 5px, transparent 5px 10px);
}
.sp-rail i {
  width: var(--sp-x);
  transition: width 0.9s cubic-bezier(0.45, 0, 0.2, 1);
}
.sp-ship-wrap {
  position: absolute;
  top: 50%;
  left: var(--sp-x);
  display: flex;
  align-items: center;
  transform: translate(calc(-100% + 14px), -50%);
  transition: left 0.9s cubic-bezier(0.45, 0, 0.2, 1);
  pointer-events: none;
}
.sp-trail {
  position: relative;
  width: 30px;
  height: 4px;
  margin-right: -8px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 170, 70, 0.55) 55%, #fff1c9);
  filter: blur(0.6px);
  animation: spTrail 0.5s ease-in-out infinite alternate;
}
.sp-trail::before,
.sp-trail::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 6px rgba(255, 190, 90, 0.9);
  animation: spSpark 0.9s linear infinite;
}
.sp-trail::after { animation-delay: 0.45s; margin-top: 0.5px; }
@keyframes spTrail {
  from { transform: scaleX(0.8); opacity: 0.75; transform-origin: right; }
  to { transform: scaleX(1.1); opacity: 1; transform-origin: right; }
}
@keyframes spSpark {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-30px); opacity: 0; }
}
.port-screen .sp-ship {
  position: static;
  width: 28px;
  height: 28px;
  flex: none;
  overflow: visible;
  filter: drop-shadow(0 2px 6px rgba(255, 150, 50, 0.65));
  transform: rotate(45deg);
  transition: none;
  animation: spShipBob 1.4s ease-in-out infinite;
}
@keyframes spShipBob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(-1px, -1.5px); }
}
@media (max-height: 760px) {
  .port-screen .sp-ship { width: 24px; height: 24px; }
  .sp-track { --sp-x: 30px; }
  .sp-track[data-step="2"] { --sp-x: calc(50% + 30px); }
  .sp-track[data-step="3"] { --sp-x: calc(100% - 32px); }
  .sp-ship-wrap { transform: translate(calc(-100% + 12px), -50%); }
}

/* Стыковка: пройденный шаг — золотой круг с галочкой */
.sp-dot > svg { transition: opacity 0.25s ease, transform 0.35s ease; }
.sp-station.is-done .sp-dot {
  border-color: transparent;
  background: linear-gradient(140deg, #fff0c2, #ffc15c 50%, #f08a28);
  color: #2a1604;
  box-shadow: none;
}
.sp-station.is-done .sp-dot::before,
.sp-station.is-done .sp-dot::after { content: none; }
.sp-station.is-done .sp-dot > svg { opacity: 0; transform: scale(0.4) rotate(-20deg); }
.sp-done {
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  border: 0;
  background: none;
  color: #2a1604;
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.4s cubic-bezier(0.3, 1.7, 0.5, 1), opacity 0.2s ease;
}
.sp-station.is-done .sp-done { opacity: 1; transform: none; }
.sp-done svg {
  width: 52%;
  height: 52%;
  stroke-width: 2.8 !important;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}
.sp-station.is-done .sp-done svg { animation: siDraw 0.45s 0.15s ease forwards; }
.sp-station.is-done strong { color: #ffe08a; }

/* Стыковка: крупные иконки по центру, пульс уходит на фон */
.port-screen.on { overflow: visible; }
body.is-dock main { overflow: visible; padding-bottom: 0; }
.sp-track {
  --sp-dot: 58px;
  --sp-pad: 8px;
  overflow: visible;
  padding: var(--sp-pad) 0 8px;
}
.sp-track { --sp-x: 0px; }
.sp-track[data-step="2"] { --sp-x: 31%; }
.sp-track[data-step="3"] { --sp-x: calc(83.333% - 6px); }
.sp-station,
.sp-dot { overflow: visible; }
.sp-dot {
  width: var(--sp-dot);
  height: var(--sp-dot);
}
.sp-dot > svg {
  display: block;
  width: 32px;
  height: 32px;
  margin: auto;
}
.sp-rail {
  top: calc(var(--sp-pad) + var(--sp-dot) / 2);
  left: 16.666%;
  right: 16.666%;
  transform: translateY(-50%);
  overflow: visible;
}
.sp-station.is-on { z-index: 3; }
.sp-station.is-on .sp-dot { transform: none; }
.sp-station.is-on .sp-dot > svg { animation: spIconFloat 2.4s ease-in-out infinite; }
.sp-station.is-on .sp-dot::before,
.sp-station.is-on .sp-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border: 1.5px solid rgba(255, 220, 150, 0.65);
  border-radius: 50%;
  pointer-events: none;
  animation: spPulse 2.1s ease-out infinite;
}
.sp-station.is-on .sp-dot::before { animation-delay: 1.05s; }
@keyframes spIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes spPulse {
  0% { transform: scale(0.96); opacity: 0.75; }
  100% { transform: scale(1.28); opacity: 0; }
}
@media (max-height: 760px) {
  .sp-track { --sp-dot: 52px; --sp-pad: 6px; }
  .sp-dot > svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-station.is-on .sp-dot::before,
  .sp-station.is-on .sp-dot::after,
  .sp-station.is-on .sp-dot > svg { animation: none; }
}
@keyframes stRise {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes stLive {
  0%, 100% { box-shadow: 0 0 0 3px rgba(125, 240, 164, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(125, 240, 164, 0); }
}
@keyframes stSpin { to { transform: rotate(360deg); } }
@keyframes stTwinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

#pane-connect.port-screen {
  max-width: 480px;
  margin-inline: auto;
}
#pane-connect .sp-step.is-on { flex: none; overflow: visible; }
#pane-connect .sp-card { overflow: visible; }
#pane-connect .sp-os .vf-ico [fill="currentColor"] { fill: currentColor; stroke: none; }
