/* Shared return control for every Splendable concept. */
.sp-frame,
.sp-frame * {
  box-sizing: border-box;
}

.sp-frame {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  border: 1px solid rgba(49, 130, 206, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(17, 24, 42, 0.97), rgba(8, 13, 24, 0.98));
  box-shadow:
    0 10px 32px rgba(30, 90, 156, 0.34),
    0 4px 14px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 500 13px/1 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-style: normal;
  letter-spacing: 0.005em;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  isolation: isolate;
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  transition:
    transform 220ms cubic-bezier(.2, .7, .2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
  animation: sp-concept-frame-in 600ms cubic-bezier(.2, .7, .2, 1) 400ms both;
}

.sp-frame--right {
  right: max(18px, env(safe-area-inset-right));
  left: auto;
}

.sp-frame-text {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.sp-frame-arrow {
  color: #8cc1ee;
  font-size: 14px;
  line-height: 1;
  transition: transform 220ms cubic-bezier(.2, .7, .2, 1);
}

.sp-frame-brand {
  color: #fff;
  font: 600 13px/1 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-style: normal;
  letter-spacing: 0.005em;
}

.sp-frame-label {
  padding: 3px 7px;
  border: 1px solid rgba(49, 130, 206, 0.4);
  border-radius: 999px;
  background: rgba(49, 130, 206, 0.22);
  color: #b8d2ee;
  font: 500 10px/1 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sp-frame:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 163, 230, 0.75);
  box-shadow:
    0 14px 38px rgba(30, 90, 156, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sp-frame:hover .sp-frame-arrow {
  transform: translateX(-3px);
}

.sp-frame:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-color: #8cc1ee;
}

@keyframes sp-concept-frame-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
  .sp-frame {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 44px;
    gap: 8px;
    padding: 8px 13px 8px 11px;
    font-size: 12px;
  }

  .sp-frame--right {
    right: max(12px, env(safe-area-inset-right));
    left: auto;
  }

  .sp-frame-label {
    display: none;
  }

  .sp-frame-brand {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-frame,
  .sp-frame-arrow {
    animation: none;
    transition: none;
  }
}

:root[data-motion="reduced"] .sp-frame,
:root[data-motion="reduced"] .sp-frame-arrow {
  animation: none;
  transition: none;
}
